From 98ff47a1380d760cf92ba49b05df33ba45623152 Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Thu, 8 May 2025 21:09:41 +0300 Subject: [PATCH 01/15] use new openapiv1 --- openapi-v1.yaml | 1571 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 1318 insertions(+), 253 deletions(-) diff --git a/openapi-v1.yaml b/openapi-v1.yaml index c764327..f5db8cc 100644 --- a/openapi-v1.yaml +++ b/openapi-v1.yaml @@ -2,7 +2,7 @@ swagger: "2.0" info: description: TileDB Storage Platform REST API title: TileDB Storage Platform API - version: 2.2.19 + version: 2.17.51 produces: - application/json @@ -89,6 +89,54 @@ definitions: - STRING_UCS4 # This can be any datatype. Must store (type tag, value) pairs. - ANY + # Datetime with year resolution + - DATETIME_YEAR + # Datetime with month resolution + - DATETIME_MONTH + # Datetime with week resolution + - DATETIME_WEEK + # Datetime with day resolution + - DATETIME_DAY + # Datetime with hour resolution + - DATETIME_HR + # Datetime with minute resolution + - DATETIME_MIN + # Datetime with second resolution + - DATETIME_SEC + # Datetime with millisecond resolution + - DATETIME_MS + # Datetime with microsecond resolution + - DATETIME_US + # Datetime with nanosecond resolution + - DATETIME_NS + # Datetime with picosecond resolution + - DATETIME_PS + # Datetime with femtosecond resolution + - DATETIME_FS + # Datetime with attosecond resolution + - DATETIME_AS + # Time with hour resolution + - TIME_HR + # Time with minute resolution + - TIME_MIN + # Time with second resolution + - TIME_SEC + # Time with millisecond resolution + - TIME_MS + # Time with microsecond resolution + - TIME_US + # Time with nanosecond resolution + - TIME_NS + # Time with picosecond resolution + - TIME_PS + # Time with femtosecond resolution + - TIME_FS + # Time with attosecond resolution + - TIME_AS + # 8-bit unsigned integer + - BLOB + # Boolean + - BOOL ActivityEventType: description: Type of activity logged @@ -124,7 +172,10 @@ definitions: - estimated_result_sizes # read_fragment_info - read_fragment_info - + # read_enumerations + - read_enumerations + # nextflow + - nextflow UDFLanguage: description: UDF Type type: string @@ -246,6 +297,8 @@ definitions: - owner # Admin almost all rights but can't delete organization - admin + # Read, write, and delete User + - read_write_delete # Read and write User - read_write # Read Only User @@ -625,6 +678,7 @@ definitions: package: "github.com/TileDB-Inc/TileDB-Go" alias: "tiledb" type: "ArraySchema" + embedded: true AttributeBufferHeader: description: Represents an attribute buffer header information @@ -913,6 +967,24 @@ definitions: items: $ref: "#/definitions/ArrayMetadataEntry" + MetadataStringifiedEntry: + type: object + description: key/value pair representing an asset metadata map entry + properties: + key: + description: The metadata key + type: string + x-omitempty: false + value: + description: The metadata value + type: string + x-omitempty: false + type: + description: The metadata type + type: string + x-omitempty: false + example: array_metadata + TileDBConfig: description: TileDB config used for interaction with the embedded library type: object @@ -1068,6 +1140,7 @@ definitions: description: Start time RFC3339 for job type: string format: date-time + x-nullable: true finish_time: description: Finish time RFC3339 for job type: string @@ -1141,6 +1214,14 @@ definitions: x-omitempty: true description: > If set, the client-defined ID of the node within this task's graph. + cloud_provider: + type: string + x-omitempty: true + description: The name of the cloud provider where this task executed. + cloud_region: + type: string + x-omitempty: true + description: The region of the cloud provider where this task executed. PaginationMetadata: properties: @@ -1391,6 +1472,11 @@ definitions: default_namespace_charged: description: Override the default namespace charged for actions when no namespace is specified type: string + default_region: + description: > + The default region to use for notebooks and other operations. It must be a region supported by TileDB, + see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration + type: string OrganizationUser: description: user in an organization @@ -1408,6 +1494,14 @@ definitions: description: username for user type: string example: "username" + user_full_name: + description: full name of the user; available to organization admins + type: string + example: "Alice Hanna" + user_email: + description: email address of the user; available to organization admins + type: string + example: alice@example.com organization_name: description: name of organization type: string @@ -1606,6 +1700,47 @@ definitions: type: boolean readOnly: true example: false + assume_role_arn: + description: > + A AWS Role that will be first assumed before assuming the organization's AWS Role. + Visible to owners and admins. + type: string + x-omitempty: true + + OrganizationUpdate: + description: OrganizationUpdate + type: object + properties: + name: + type: string + minLength: 1 + maxLength: 63 + pattern: "^[\\w.\\-]+$" # only allows alphanumeric characters + description: organization name must be unique + x-nullable: true + logo: + description: Organization logo + type: string + x-nullable: true + description: + description: Organization description + type: string + x-nullable: true + default_s3_path: + description: > + The default location to store newly-created notebooks and other assets + like UDFs. The name `default_s3_path` is a legacy holdover; it may + refer to any supported storage location. + type: string + x-nullable: true + default_s3_path_credentials_name: + description: > + The name of the credentials used to create and access files in the + `default_s3_path`, if needed. + type: string + x-nullable: true + asset_locations: + $ref: "#/definitions/AssetLocations" AssetLocations: description: > @@ -1743,7 +1878,7 @@ definitions: # Raster - raster # Vector search - - vector_search + - vector_search FilePropertyName: description: File property assigned to a specific file (array) @@ -1884,6 +2019,10 @@ definitions: description: unique ID of registered array type: string example: "00000000-0000-0000-0000-000000000000" + asset_id: + type: string + description: The asset id of the created array + x-omitempty: false file_type: description: File type stored /wrapped by this array x-omitempty: true @@ -1992,6 +2131,22 @@ definitions: type: boolean x-omitempty: true example: true + created_at: + description: Datetime array was registered with tiledb + type: string + format: date-time + created_by: + description: The user who created the array, if known. + type: string + x-omitempty: true + metadata: + description: | + Contains the metadata of the array. + **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" ArrayInfoUpdate: description: metadata of an array @@ -2140,6 +2295,10 @@ definitions: - stripe # Okta - okta + # perdomain + - perdomain + # SCIM + - scim PublicShareFilter: description: Query parameter to get array metadatas @@ -2708,12 +2867,28 @@ definitions: format: uint64 example: 4000 cost: - description: cost in USD for the current notebook session + description: cost in USD for the current notebook session x-omitempty: true x-nullable: true type: number format: double example: 0.27 + pod_status: + description: Status of the pod + $ref: "#/definitions/PodStatus" + example: RUNNING + x-omitempty: true + + PodStatus: + description: List of all available pod statuses + type: string + enum: + # Terminating + - TERMINATING + # Running + - RUNNING + # Launching + - LAUNCHING ArrayFavorite: description: A user-favorite array item @@ -2833,6 +3008,8 @@ definitions: - GROUP_SHARE # Join Organization - JOIN_ORGANIZATION + # Allow a child namespace to use a payment instrument + - PAYMENT_SHARE InvitationStatus: description: List of values that InvitationStatus can take @@ -3089,6 +3266,7 @@ definitions: type: object required: - id + - asset_id properties: output_uri: type: string @@ -3096,6 +3274,10 @@ definitions: file_name: type: string description: name of the file uploaded + asset_id: + type: string + description: The asset id of the created Group + x-omitempty: false id: description: unique ID of the uploaded file type: string @@ -3316,6 +3498,22 @@ definitions: type: string x-omitempty: true description: License text + created_at: + description: Datetime the group was registered with tiledb + type: string + format: date-time + created_by: + description: The username of the group's creator, if known. + type: string + x-omitempty: true + metadata: + description: | + Contains metadata of the group. + **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" GroupEntry: description: Object describing a single member of a group, which can be an array or a group @@ -3625,7 +3823,7 @@ definitions: type: string example: "MyOrganization" - GroupActivity: + GroupContentActivity: description: Object containing activity of an asset of a group type: object properties: @@ -3649,7 +3847,7 @@ definitions: description: Object containing the activity log $ref: "#/definitions/ArrayActivityLog" - GroupActivityResponse: + GroupContentActivityResponse: description: Object containing activity logs of group content along with the pagination metadata type: object properties: @@ -3659,7 +3857,7 @@ definitions: x-omitempty: false x-nullable: false items: - $ref: "#/definitions/GroupActivity" + $ref: "#/definitions/GroupContentActivity" pagination_metadata: x-omitempty: false x-nullable: false @@ -3719,6 +3917,7 @@ definitions: enum: - batch - realtime + - nextflow TaskGraphLog: description: Logging information about the execution of a task graph. @@ -3815,6 +4014,28 @@ definitions: task_graph_id: type: string description: The UUID of the task graph. + cloud_provider: + type: string + x-omitempty: true + description: The name of the cloud provider where this task graph executed. + cloud_region: + type: string + x-omitempty: true + description: The region of the cloud provider where this task graph executed. + root_task_graph_uuid: + type: string + x-omitempty: true + description: > + The UUID of the root taskgraph that this taskgraph is related to. + This is used to provide consistent tracking and UI view for graphs that + are executed by a set of taskgraphs. + children_task_graph_uuids: + description: > + If this is a root taskgraph, this contains the list of all its children + taskgraph UUIDs. + type: array + items: + type: string TaskGraphNodeMetadata: description: Metadata about an individual node in a task graph. @@ -3825,6 +4046,7 @@ definitions: description: The client-generated UUID of the given graph node. name: type: string + maxLength: 255 description: > The client-generated name of the node. This is not guaranteed to be unique. @@ -3908,6 +4130,7 @@ definitions: description: The name of the user who created this task graph log. name: type: string + maxLength: 255 description: > A name for this task graph, displayed in the UI. Does not need to be unique. @@ -3923,7 +4146,7 @@ definitions: $ref: "#/definitions/TaskGraphNode" description: > The structure of the graph. This is provided by the client - when first setting up the task graph. + when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. parallelism: @@ -3943,7 +4166,7 @@ definitions: x-omitempty: true description: > Duration in seconds relative to the workflow start time which the - workflow is allowed to run before it gets terminated. + workflow is allowed to run before it gets terminated. Defaults to 24h when unset task_graph_type: $ref: "#/definitions/TaskGraphType" @@ -3974,6 +4197,7 @@ definitions: description: The namespace that owns this task graph log. name: type: string + maxLength: 255 description: > The name of this graph, to appear in URLs. Must be unique per-namespace. @@ -4049,6 +4273,7 @@ definitions: description: The client-generated UUID of the given graph node. name: type: string + maxLength: 255 x-nullable: true description: > A client-specified name for the node. If provided, this must be @@ -4363,8 +4588,8 @@ definitions: resources: type: object description: > - The resources requested for this particular node. If resources are not - specified resource_class is used, if it is not set the standard resource + The resources requested for this particular node. If resources are not + specified resource_class is used, if it is not set the standard resource // defaults are used properties: cpu: @@ -4393,6 +4618,38 @@ definitions: allowed to run indefinitely (subject to the server’s global limits). type: number x-nullable: true + storage: + description: > + Storage options for mounting persistent volumes. + type: array + x-omitempty: true + items: + $ref: "#/definitions/TGUDFStorage" + + TGUDFStorage: + description: Storage options for mounting persistent volumes. + type: object + properties: + path: + description: > + Mount path for the attached volume. + type: string + tiledb_uri: + description: > + TileDB filesystem to mount + type: string + example: tiledb:/// + size: + description: > + Storage size. + type: string + example: 8Gi + storage_class: + description: > + Storage class to use for creating the volume. + type: string + example: gp2 + FragmentMetadata: description: Fragment Metadata @@ -4591,6 +4848,12 @@ definitions: type: object description: config to use to retrieve the contents $ref: "#/definitions/TileDBConfig" + fragments: + description: list of fragments in the array to consolidate + type: array + x-omitempty: true + items: + type: string ArrayVacuumRequest: description: Request to consolidate an array @@ -4601,6 +4864,75 @@ definitions: description: config to use to retrieve the contents $ref: "#/definitions/TileDBConfig" + Enumeration: + description: The enumerations of a single attribute + type: object + properties: + name: + type: string + path_name: + type: string + type: + type: string + cell_val_num: + type: integer + format: uint32 + ordered: + type: boolean + data: + type: array + items: + type: integer + format: uint8 + offsets: + type: array + items: + type: integer + format: uint8 + + LoadEnumerationsRequest: + description: Request to return enumerations for attributes + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + enumerations: + type: array + items: + type: string + + LoadEnumerationsResponse: + description: Contains the enumerations of the array's attributes + type: object + properties: + enumerations: + type: array + items: + $ref: '#/definitions/Enumeration' + + LoadArraySchemaRequest: + description: Request to load an array schema + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + + LoadArraySchemaResponse: + description: Contains the latest schema and all schemas for the opened array + type: object + properties: + latest_array_schema: + $ref: "#/definitions/ArraySchema" + all_array_schemas: + description: map of all array schemas + type: object + additionalProperties: + $ref: "#/definitions/ArraySchema" + RetryStrategy: description: RetryStrategy provides controls on how to retry a taskgraph node type: object @@ -4647,6 +4979,108 @@ definitions: # Retry task transient errors - OnTransientError + AssetBackingType: + description: The technology that an asset is backed by + type: string + enum: + # Array + - array + # Groups + - group + + AssetOwnershipLevel: + description: The ownership level of the asset + type: string + enum: + # Owned + - owned + # Shared + - shared + + MetadataStringified: + type: object + description: The user's TileDB metadata + properties: + entries: + description: List of metadata entries + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" + + AssetInfo: + description: metadata of an asset + type: object + properties: + uuid: + description: unique ID of a registered asset + type: string + example: "00000000-0000-0000-0000-000000000000" + asset_type: + description: Asset type of an asset + $ref: "#/definitions/AssetType" + asset_backing_type: + description: Asset type of an asset + $ref: "#/definitions/AssetBackingType" + asset_ownership_level: + description: Ownership level of the asset + $ref: "#/definitions/AssetOwnershipLevel" + namespace_name: + description: namespace_name that the asset is registered to + type: string + example: "user1" + namespace_uuid: + description: namespace_uuid that the asset is registered to + type: string + example: "00000000-0000-0000-0000-000000000000" + name: + description: name of asset + type: string + example: myarray1 + mime_type: + description: mime type of the asset + type: string + example: application/vnd.tiledb.v1.array + created_at: + description: "Time when the asset was created (rfc3339)" + type: string + format: date-time + readOnly: true + metadata: + description: metadata for the asset, only included when expanded + $ref: "#/definitions/MetadataStringified" + + AssetListResponse: + description: Asset associated with a TileDB Cloud account + type: object + properties: + data: + description: asset information for each asset + type: array + x-omitempty: true + items: + $ref: "#/definitions/AssetInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + ChangeAssetCredentialsRequest: + description: Request body to change the credentials of the given assets + type: object + required: + - access_credentials + - asset_uuids + properties: + access_credentials: + description: The name or uuid of the access credentials + type: string + x-nullable: false + asset_uuids: + description: The list of asset uuids to have their credentials changed + type: array + items: + type: string + x-nullable: false + paths: /.stats: get: @@ -4700,13 +5134,23 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}: + /arrays/{workspace}/{teamspace}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true + - name: with_metadata + in: query + description: include the metadata of the arrays + type: boolean + required: false get: description: get metadata on all arrays in a namespace tags: @@ -4727,11 +5171,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}: + /arrays/{workspace}/{teamspace}/{array}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4808,11 +5257,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/activity: + /arrays/{workspace}/{teamspace}/{array}/activity: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4864,11 +5318,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/activity/{id}: + /arrays/{workspace}/{teamspace}/{array}/activity/{id}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4898,11 +5357,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/deregister: + /arrays/{workspace}/{teamspace}/{array}/deregister: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4925,11 +5389,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/array_metadata: + /arrays/{workspace}/{teamspace}/{array}/array_metadata: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4987,11 +5456,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/fragment_info: + /arrays/{workspace}/{teamspace}/{array}/fragment_info: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5027,11 +5501,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/metadata: + /arrays/{workspace}/{teamspace}/{array}/metadata: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5077,11 +5556,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/fragment_end_timestamp: + /arrays/{workspace}/{teamspace}/{array}/fragment_end_timestamp: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5114,11 +5598,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/register: + /arrays/{workspace}/{teamspace}/{array}/register: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5150,11 +5639,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/consolidate: + /arrays/{workspace}/{teamspace}/{array}/consolidate: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5184,11 +5678,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/vacuum: + /arrays/{workspace}/{teamspace}/{array}/vacuum: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5218,11 +5717,102 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/share: + /arrays/{workspace}/{teamspace}/{array}/enumerations: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: request to get the enumerations of the arrays' attributes + tags: + - array + operationId: loadEnumerations + parameters: + - name: load_enumerations_request + in: body + description: Load Enumerations Request + schema: + $ref: "#/definitions/LoadEnumerationsRequest" + required: true + responses: + 200: + description: enumerations returned successfully + schema: + $ref: "#/definitions/LoadEnumerationsResponse" + 404: + description: Array does not exist or user does not have permissions to access it + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{workspace}/{teamspace}/{array}/schema: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: request to get the array schema + tags: + - array + operationId: loadArraySchema + parameters: + - name: load_array_schema_request + in: body + description: Load Array Schema Request + schema: + $ref: "#/definitions/LoadArraySchemaRequest" + required: true + responses: + 200: + description: array schemas returned successfully + schema: + $ref: "#/definitions/LoadArraySchemaResponse" + 404: + description: Array does not exist or user does not have permissions to access it + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{workspace}/{teamspace}/{array}/share: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5275,11 +5865,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/non_empty_domain: + /arrays/{workspace}/{teamspace}/{array}/non_empty_domain: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5314,11 +5909,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/max_buffer_sizes: + /arrays/{workspace}/{teamspace}/{array}/max_buffer_sizes: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5358,11 +5958,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/udf/submit: + /arrays/{workspace}/{teamspace}/{array}/udf/submit: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5421,11 +6026,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/submit: + /arrays/{workspace}/{teamspace}/{array}/query/submit: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5489,11 +6099,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/submit_query_json: + /arrays/{workspace}/{teamspace}/{array}/query/submit_query_json: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5547,11 +6162,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/get_file: + /arrays/{workspace}/{teamspace}/{array}/query/get_file: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5597,11 +6217,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/finalize: + /arrays/{workspace}/{teamspace}/{array}/query/finalize: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5665,11 +6290,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/est_result_sizes: + /arrays/{workspace}/{teamspace}/{array}/query/est_result_sizes: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5733,11 +6363,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/sample: + /arrays/{workspace}/{teamspace}/{array}/sample: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5798,11 +6433,16 @@ paths: message: "Error try again" code: 1 - /arrays/{namespace}/{array}/metadata_json: + /arrays/{workspace}/{teamspace}/{array}/metadata_json: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5857,11 +6497,16 @@ paths: message: "Error try again" code: 1 - /arrays/{namespace}/{array}/non_empty_domain_json: + /arrays/{workspace}/{teamspace}/{array}/non_empty_domain_json: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5898,11 +6543,16 @@ paths: message: "Error try again" code: 1 - /arrays/{namespace}/{array}/end_timestamps: + /arrays/{workspace}/{teamspace}/{array}/end_timestamps: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -6113,13 +6763,18 @@ paths: schema: $ref: "#/definitions/Error" - /credentials/{namespace}/aws: + /credentials/{workspace}/{teamspace}/aws: parameters: - - name: namespace + - name: workspace in: path - description: namespace + description: the workspace containing the teamspace the array belongs to + type: string required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string + required: true get: tags: - user @@ -6162,13 +6817,18 @@ paths: schema: $ref: "#/definitions/Error" - /credentials/{namespace}/aws/{name}: + /credentials/{workspace}/{teamspace}/aws/{name}: parameters: - - name: namespace + - name: workspace in: path - description: namespace + description: the workspace containing the teamspace the array belongs to + type: string required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string + required: true - name: name in: path description: name @@ -6326,7 +6986,7 @@ paths: in: body description: organization details to update schema: - $ref: "#/definitions/Organization" + $ref: "#/definitions/OrganizationUpdate" required: true responses: 204: @@ -6588,6 +7248,12 @@ paths: description: flag to create a token with expiration of 30 days, default is false type: string required: false + - name: expires + in: query + description: Expiration date for token, if empty token defaults to 30 minutes + type: string + format: date-time + required: false get: tags: - user @@ -6918,11 +7584,16 @@ paths: schema: $ref: "#/definitions/Error" - /sql/{namespace}: + /sql/{workspace}/{teamspace}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace to run task under is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: Accept-Encoding @@ -6967,11 +7638,11 @@ paths: schema: $ref: "#/definitions/Error" - /udfs/generic/{namespace}: + /udfs/generic/{workspace}: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: Accept-Encoding @@ -7016,11 +7687,11 @@ paths: schema: $ref: "#/definitions/Error" - /udfs/arrays/{namespace}: + /udfs/arrays/{workspace}: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: Accept-Encoding @@ -7065,11 +7736,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{name}: + /udf/{workspace}/{name}: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -7152,11 +7823,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{name}/share: + /udf/{workspace}/{name}/share: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -7209,11 +7880,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{name}/copy: + /udf/{workspace}/{name}/copy: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -7256,11 +7927,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{array}/end_timestamps: + /udf/{workspace}/{array}/end_timestamps: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: array @@ -7296,11 +7967,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/server/{namespace}/status: + /notebooks/server/{workspace}/{teamspace}/status: parameters: - - name: namespace + - name: workspace in: path - description: namespace notebook is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true get: @@ -7313,8 +7989,6 @@ paths: description: status of running notebook schema: $ref: "#/definitions/NotebookStatus" - 202: - description: Notebook server is pending 402: description: Payment required schema: @@ -7328,11 +8002,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/server/{namespace}: + /notebooks/server/{workspace}/{teamspace}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace notebook is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true delete: @@ -7352,11 +8031,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/rename: + /notebooks/{workspace}/{teamspace}/{array}/rename: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -7386,13 +8070,18 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/copy: + /notebooks/{workspace}/{teamspace}/{array}/copy: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the notebook - type: string name: array in: path @@ -7432,13 +8121,18 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/upload: + /notebooks/{workspace}/{teamspace}/upload: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the notebook - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME in: header description: Optional registered access credentials to use for creation @@ -7477,11 +8171,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/end_timestamps: + /notebooks/{workspace}/{teamspace}/{array}/end_timestamps: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -7517,11 +8216,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/prune: + /notebooks/{workspace}/{teamspace}/{array}/prune: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -7644,11 +8348,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/{invitation}/{namespace}/{array}/share: + /invitations/{invitation}/{workspace}/{teamspace}/{array}/share: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: invitation @@ -7678,11 +8387,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/group/{invitation}/{namespace}/{group_name}/share: + /invitations/group/{invitation}/{workspace}/{teamspace}/{group_name}/share: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace group is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: invitation @@ -7741,11 +8455,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/{namespace}/{array}/share: + /invitations/{workspace}/{teamspace}/{array}/share: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -7783,11 +8502,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/group/{namespace}/{group}/share: + /invitations/group/{workspace}/{teamspace}/{group}/share: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace group is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: group @@ -7862,6 +8586,88 @@ paths: schema: $ref: "#/definitions/Error" + /invitations/share_payment/{workspace}/{teamspace}: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + post: + tags: + - invitation + description: | + Sends email to multiple recipients allowing them to use the payment + instrument provided by the source namespace. + operationId: sharePayment + parameters: + - name: email_invite + in: body + description: | + Recipients of the invitation. These may only be namespaces, + not email addresses. + schema: + type: object + properties: + namespaces: + type: array + items: + type: string + responses: + 204: + description: Email sent successfully to user for email confirmation link + 207: + description: Only a portion of the invitations succeeded, some failed + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 500: + description: Could not reach any recipients + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/share_payment/{workspace}/{teamspace}/{target}: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: target + in: path + description: name or UUID of recipient namespace + type: string + required: true + delete: + tags: + - invitation + description: Revokes invitation from the source namespace to the target. + operationId: cancelSharePayment + responses: + 204: + description: Invitation cancelled successfully + 404: + description: No invitation was found to cancel + default: + description: error response + schema: + $ref: "#/definitions/Error" + /arrays/browser/shared: parameters: - name: page @@ -7886,7 +8692,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -7942,6 +8748,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8032,7 +8843,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -8080,6 +8891,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8162,7 +8978,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -8210,6 +9026,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8318,13 +9139,18 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/favorites/{namespace}/{name}: + /arrays/favorites/{workspace}/{teamspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the array - type: string name: name in: path @@ -8430,13 +9256,18 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/favorites/{namespace}/{name}: + /notebooks/favorites/{workspace}/{teamspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the notebook - type: string name: name in: path @@ -8537,13 +9368,18 @@ paths: schema: $ref: "#/definitions/Error" - /ml_models/favorites/{namespace}/{name}: + /ml_models/favorites/{workspace}/{teamspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the ML model - type: string name: name in: path @@ -8644,13 +9480,13 @@ paths: schema: $ref: "#/definitions/Error" - /udfs/favorites/{namespace}/{name}: + /udfs/favorites/{workspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string required: true - description: The namespace of the UDF - type: string name: name in: path @@ -8701,13 +9537,18 @@ paths: schema: $ref: "#/definitions/Error" - /files/{namespace}: + /files/{workspace}/{teamspace}: parameters: - - type: string - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the file - name: FileCreate in: body description: Input/Output information to create a new TileDB file @@ -8736,13 +9577,18 @@ paths: schema: $ref: "#/definitions/Error" - /files/{namespace}/upload: + /files/{workspace}/{teamspace}/upload: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the file - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME in: header description: Optional registered access credentials to use for creation @@ -8781,13 +9627,18 @@ paths: schema: $ref: "#/definitions/Error" - /files/{namespace}/{file}/export: + /files/{workspace}/{teamspace}/{file}/export: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the file - type: string name: file in: path @@ -8906,6 +9757,11 @@ paths: description: search only the children of the groups with this uuid type: string required: false + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9016,6 +9872,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9112,6 +9973,11 @@ paths: description: search only the children of the groups with this uuid type: string required: false + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9124,13 +9990,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/contents/filters: + /groups/{workspace}/{teamspace}/{group_name}/contents/filters: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9152,13 +10023,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/contents: + /groups/{workspace}/{teamspace}/{group_name}/contents: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9258,13 +10134,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{namespace}/{array}/register: + /groups/{workspace}/{teamspace}/{array}/register: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: array type: string in: path @@ -9290,13 +10171,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{namespace}/create: + /groups/{workspace}/{teamspace}/create: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group post: description: Creates a new group in the namespace. operationId: createGroup @@ -9317,13 +10203,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/share: + /groups/{workspace}/{teamspace}/{group_name}/share: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9374,13 +10265,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}: + /groups/{workspace}/{teamspace}/{group_name}: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9436,13 +10332,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/content_activity: + /groups/{workspace}/{teamspace}/{group_name}/content_activity: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9467,7 +10368,7 @@ paths: 200: description: Activity logs of group contents along with the pagination metadata schema: - $ref: "#/definitions/GroupActivityResponse" + $ref: "#/definitions/GroupContentActivityResponse" 502: description: Bad Gateway default: @@ -9475,18 +10376,19 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/log: + /taskgraphs/{workspace}/log: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true post: description: Create a task graph log. operationId: createTaskGraphLog tags: - task_graph_logs parameters: - - name: namespace - in: path - description: The namespace that will own this task graph log. - type: string - required: true - name: log in: body required: true @@ -9520,6 +10422,11 @@ paths: description: Include logs from only this user. type: string required: false + - name: status + in: query + description: Filter to only return these statuses + type: string + required: false - name: search in: query description: search string that will look at name. @@ -9572,11 +10479,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/logs/{id}: + /taskgraphs/{workspace}/logs/{id}: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph log. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9627,11 +10534,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/logs/{id}/report_client_node: + /taskgraphs/{workspace}/logs/{id}/report_client_node: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph log. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9660,11 +10567,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/executions/{id}/resubmit: + /taskgraphs/{workspace}/executions/{id}/resubmit: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph execution. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9689,11 +10596,11 @@ paths: schema: $ref: '#/definitions/Error' - /taskgraphs/{namespace}/executions/{id}/retry: + /taskgraphs/{workspace}/executions/{id}/retry: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph execution. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9718,11 +10625,11 @@ paths: schema: $ref: '#/definitions/Error' - /taskgraphs/{namespace}/executions/{id}/stop: + /taskgraphs/{workspace}/executions/{id}/stop: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph execution. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9736,10 +10643,8 @@ paths: tags: - task_graph_logs responses: - 202: - description: Information about the task graph execution. - schema: - $ref: "#/definitions/TaskGraphLog" + 204: + description: Graph stopped successfully 502: description: Bad Gateway default: @@ -9748,7 +10653,13 @@ paths: $ref: '#/definitions/Error' # Task graphs - /taskgraphs/{namespace}/graphs: + /taskgraphs/{workspace}/graphs: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true get: description: > Fetch the task graphs of a namespace the user has access to. The @@ -9759,12 +10670,6 @@ paths: Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. operationId: listTaskGraphs - parameters: - - name: namespace - in: path - description: Namespace for graphs - type: string - required: true tags: - task_graphs responses: @@ -9785,11 +10690,6 @@ paths: tags: - task_graphs parameters: - - name: namespace - in: path - description: Include graphs for this namespace. - type: string - required: true - name: graph in: body description: Create the task graph. @@ -9808,11 +10708,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/graphs/{id}: + /taskgraphs/{workspace}/graphs/{id}: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9860,11 +10760,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/graphs/{id}/submit: + /taskgraphs/{workspace}/graphs/{id}/submit: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9872,6 +10772,11 @@ paths: description: The UUID of the task graph entry. type: string required: true + - name: root_task_graph_uuid + in: query + description: UUID of the root taskgraph that this graph is assosiated with + type: string + required: false post: description: > Submit a single task graph for execution. @@ -9893,11 +10798,11 @@ paths: # Task graphs: Registration - /taskgraphs/{namespace}/registered/{name}: + /taskgraphs/{workspace}/registered/{name}: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this registered UDF. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -9980,11 +10885,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/registered/{name}/share: + /taskgraphs/{workspace}/registered/{name}/share: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns the registered task graph. + description: The workspace that owns the registered task graph. type: string required: true - name: name @@ -10048,3 +10953,163 @@ paths: description: error response schema: $ref: "#/definitions/Error" + + /assets/{workspace}/{teamspace}: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: asset_type + in: query + description: asset_type to filter to + type: string + required: false + - name: ownership_level + in: query + description: ownership_level to filter to (owned, shared) + type: string + required: false + - name: depth + in: query + description: depth of assets to be returned + type: string + required: false + - name: search + in: query + description: search string + type: string + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: order_by + in: query + description: | + order by a specific property, defaults to `created_at desc` + supported values are created_at, name, asset_type + can also include the order type (asc or desc) separated by space + i.e. `name asc` `name desc` etc. + type: string + required: false + - name: expand + in: query + description: expansion option for the AssetInfo object to be added to the response + type: string + required: false + get: + tags: + - assets + description: List assets in a namespace + operationId: listAssets + responses: + 200: + description: Successful list of assets + schema: + $ref: "#/definitions/AssetListResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /public_assets: + parameters: + - name: asset_type + in: query + description: asset_type to filter to + type: string + required: false + - name: depth + in: query + description: depth of assets to be returned + type: string + required: false + - name: search + in: query + description: search string + type: string + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: order_by + in: query + description: | + order by a specific property, defaults to `created_at desc` + supported values are created_at, name, asset_type + can also include the order type (asc or desc) separated by space + i.e. `name asc` `name desc` etc. + type: string + required: false + get: + tags: + - assets + description: List public assets + operationId: listPublicAssets + responses: + 200: + description: Successful list of assets + schema: + $ref: "#/definitions/AssetListResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /assets/{workspace}/{teamspace}/change_credentials: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + post: + tags: + - assets + description: Changes the access credentials to the given assets + operationId: changeAssetCredentials + parameters: + - name: changeCredentialsRequest + in: body + description: aws access credentials to store for a namespace + schema: + $ref: "#/definitions/ChangeAssetCredentialsRequest" + required: true + responses: + 204: + description: Credentials changed successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" From 1f39345151d4ee39d825547a3a44074d6352e1a2 Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Thu, 8 May 2025 22:26:32 +0300 Subject: [PATCH 02/15] refresh with new spec --- .openapi-generator/FILES | 899 +++--- .openapi-generator/VERSION | 2 +- docs/ActivityEventType.md | 2 + docs/ArrayApi.md | 2808 +++++++++-------- docs/ArrayInfo.md | 1 + docs/ArrayTasksApi.md | 73 +- docs/AssetsApi.md | 257 +- docs/FavoritesApi.md | 1520 ++++----- docs/FileUploaded.md | 1 + docs/FilesApi.md | 253 +- docs/GroupsApi.md | 1403 ++++---- docs/InvitationApi.md | 782 ++--- docs/NotebookApi.md | 411 +-- docs/NotebooksApi.md | 170 +- docs/OrganizationApi.md | 1472 ++++----- docs/OrganizationRoles.md | 2 + docs/QueryApi.md | 445 +-- docs/RegisteredTaskGraphsApi.md | 472 +-- docs/RetryPolicy.md | 6 +- docs/SqlApi.md | 85 +- docs/StatsApi.md | 69 +- docs/TGUDFEnvironment.md | 2 +- docs/TGUDFStorage.md | 9 +- docs/TaskGraphLog.md | 2 + docs/TaskGraphLogsApi.md | 717 ++--- docs/TaskGraphType.md | 2 + docs/TaskGraphsApi.md | 395 +-- docs/TasksApi.md | 326 +- docs/UdfApi.md | 897 +++--- docs/UserApi.md | 1582 +++++----- gradle/wrapper/gradle-wrapper.jar | Bin 43453 -> 59536 bytes gradle/wrapper/gradle-wrapper.properties | 2 - gradlew | 189 +- gradlew.bat | 37 +- src/main/AndroidManifest.xml | 3 - src/main/java/io/tiledb/cloud/TileDBSQL.java | 128 - src/main/java/io/tiledb/cloud/TileDBUDF.java | 529 ---- .../io/tiledb/cloud/rest_api/ApiClient.java | 177 +- .../tiledb/cloud/rest_api/ApiException.java | 9 +- .../tiledb/cloud/rest_api/Configuration.java | 4 +- .../java/io/tiledb/cloud/rest_api/JSON.java | 4 +- .../java/io/tiledb/cloud/rest_api/Pair.java | 2 +- .../cloud/rest_api/ServerConfiguration.java | 3 +- .../tiledb/cloud/rest_api/ServerVariable.java | 1 - .../io/tiledb/cloud/rest_api/StringUtil.java | 2 +- .../tiledb/cloud/rest_api/api/ArrayApi.java | 1630 ++++++---- .../cloud/rest_api/api/ArrayTasksApi.java | 11 +- .../tiledb/cloud/rest_api/api/AssetsApi.java | 214 +- .../cloud/rest_api/api/FavoritesApi.java | 727 +++-- .../tiledb/cloud/rest_api/api/FilesApi.java | 166 +- .../tiledb/cloud/rest_api/api/GroupsApi.java | 684 ++-- .../cloud/rest_api/api/InvitationApi.java | 388 ++- .../cloud/rest_api/api/NotebookApi.java | 275 +- .../cloud/rest_api/api/NotebooksApi.java | 123 +- .../cloud/rest_api/api/OrganizationApi.java | 463 ++- .../tiledb/cloud/rest_api/api/QueryApi.java | 321 +- .../rest_api/api/RegisteredTaskGraphsApi.java | 278 +- .../io/tiledb/cloud/rest_api/api/SqlApi.java | 107 +- .../tiledb/cloud/rest_api/api/StatsApi.java | 11 +- .../cloud/rest_api/api/TaskGraphLogsApi.java | 386 ++- .../cloud/rest_api/api/TaskGraphsApi.java | 235 +- .../tiledb/cloud/rest_api/api/TasksApi.java | 94 +- .../io/tiledb/cloud/rest_api/api/UdfApi.java | 824 ++--- .../io/tiledb/cloud/rest_api/api/UserApi.java | 475 ++- .../cloud/rest_api/auth/ApiKeyAuth.java | 2 +- .../cloud/rest_api/auth/HttpBasicAuth.java | 2 + .../cloud/rest_api/auth/HttpBearerAuth.java | 22 +- .../io/tiledb/cloud/rest_api/auth/OAuth.java | 2 +- .../tiledb/cloud/rest_api/auth/OAuthFlow.java | 2 +- .../cloud/rest_api/auth/RetryingOAuth.java | 8 +- .../rest_api/model/AWSAccessCredentials.java | 172 +- .../rest_api/model/AbstractOpenApiSchema.java | 8 +- .../rest_api/model/ActivityEventType.java | 12 +- .../io/tiledb/cloud/rest_api/model/Array.java | 128 +- .../cloud/rest_api/model/ArrayActions.java | 8 +- .../rest_api/model/ArrayActivityLog.java | 211 +- .../rest_api/model/ArrayBrowserData.java | 140 +- .../rest_api/model/ArrayBrowserSidebar.java | 125 +- .../model/ArrayConsolidationRequest.java | 122 +- .../rest_api/model/ArrayEndTimestampData.java | 122 +- .../cloud/rest_api/model/ArrayFavorite.java | 125 +- .../rest_api/model/ArrayFavoritesData.java | 143 +- .../cloud/rest_api/model/ArrayInfo.java | 468 +-- .../cloud/rest_api/model/ArrayInfoUpdate.java | 213 +- .../cloud/rest_api/model/ArrayMetadata.java | 127 +- .../rest_api/model/ArrayMetadataEntry.java | 145 +- .../cloud/rest_api/model/ArraySample.java | 106 +- .../cloud/rest_api/model/ArraySchema.java | 247 +- .../cloud/rest_api/model/ArraySharing.java | 130 +- .../cloud/rest_api/model/ArrayTask.java | 438 +-- .../model/ArrayTaskBrowserSidebar.java | 125 +- .../cloud/rest_api/model/ArrayTaskData.java | 140 +- .../cloud/rest_api/model/ArrayTaskLog.java | 118 +- .../cloud/rest_api/model/ArrayTaskStatus.java | 8 +- .../cloud/rest_api/model/ArrayTaskType.java | 8 +- .../cloud/rest_api/model/ArrayType.java | 8 +- .../rest_api/model/ArrayVacuumRequest.java | 108 +- .../rest_api/model/AssetBackingType.java | 8 +- .../cloud/rest_api/model/AssetInfo.java | 205 +- .../rest_api/model/AssetListResponse.java | 140 +- .../cloud/rest_api/model/AssetLocations.java | 180 +- .../rest_api/model/AssetOwnershipLevel.java | 8 +- .../cloud/rest_api/model/AssetType.java | 8 +- .../cloud/rest_api/model/Attribute.java | 165 +- .../rest_api/model/AttributeBufferHeader.java | 125 +- .../rest_api/model/AttributeBufferSize.java | 125 +- .../tiledb/cloud/rest_api/model/Backoff.java | 123 +- .../ChangeAssetCredentialsRequest.java} | 185 +- .../tiledb/cloud/rest_api/model/Datatype.java | 8 +- .../cloud/rest_api/model/Dimension.java | 169 +- .../rest_api/model/DimensionCoordinate.java | 175 +- .../rest_api/model/DimensionTileExtent.java | 175 +- .../tiledb/cloud/rest_api/model/Domain.java | 165 +- .../cloud/rest_api/model/DomainArray.java | 235 +- .../rest_api/model/DomainCheckResult.java | 119 +- .../rest_api/model/DomainCheckStatus.java | 8 +- .../model/DomainVerificationStatus.java | 8 +- .../cloud/rest_api/model/Enumeration.java | 169 +- .../io/tiledb/cloud/rest_api/model/Error.java | 124 +- .../cloud/rest_api/model/FileCreate.java | 125 +- .../cloud/rest_api/model/FileCreated.java | 115 +- .../cloud/rest_api/model/FileExport.java | 105 +- .../cloud/rest_api/model/FileExported.java | 105 +- .../rest_api/model/FilePropertyName.java | 8 +- .../tiledb/cloud/rest_api/model/FileType.java | 8 +- .../cloud/rest_api/model/FileUploaded.java | 165 +- .../tiledb/cloud/rest_api/model/Filter.java | 126 +- .../cloud/rest_api/model/FilterData.java | 175 +- .../cloud/rest_api/model/FilterOption.java | 8 +- .../cloud/rest_api/model/FilterPipeline.java | 127 +- .../cloud/rest_api/model/FilterType.java | 30 +- .../cloud/rest_api/model/FragmentInfo.java | 154 +- .../rest_api/model/FragmentInfoRequest.java | 108 +- .../rest_api/model/FragmentMetadata.java | 405 ++- .../cloud/rest_api/model/GenericUDF.java | 269 +- .../model/GetTiledbStats200Response.java | 103 +- .../cloud/rest_api/model/GroupActions.java | 8 +- .../cloud/rest_api/model/GroupActivity.java | 300 -- .../rest_api/model/GroupActivityAsset.java | 361 --- .../rest_api/model/GroupActivityResponse.java | 319 -- .../rest_api/model/GroupBrowserData.java | 143 +- .../model/GroupBrowserFilterData.java | 124 +- .../cloud/rest_api/model/GroupChanges.java | 162 +- .../rest_api/model/GroupContentActivity.java | 121 +- .../model/GroupContentActivityAsset.java | 138 +- .../model/GroupContentActivityResponse.java | 140 +- .../cloud/rest_api/model/GroupContents.java | 140 +- .../model/GroupContentsFilterData.java | 109 +- .../cloud/rest_api/model/GroupCreate.java | 189 +- .../cloud/rest_api/model/GroupEntry.java | 131 +- .../cloud/rest_api/model/GroupInfo.java | 336 +- .../cloud/rest_api/model/GroupMember.java | 128 +- .../rest_api/model/GroupMemberAssetType.java | 8 +- .../cloud/rest_api/model/GroupMemberType.java | 8 +- .../cloud/rest_api/model/GroupRegister.java | 189 +- .../cloud/rest_api/model/GroupSharing.java | 145 +- .../rest_api/model/GroupSharingRequest.java | 135 +- .../cloud/rest_api/model/GroupType.java | 8 +- .../rest_api/model/GroupTypeMetadataKey.java | 8 +- .../cloud/rest_api/model/GroupUpdate.java | 169 +- .../cloud/rest_api/model/Invitation.java | 298 +- .../model/InvitationArrayShareEmail.java | 134 +- .../cloud/rest_api/model/InvitationData.java | 143 +- .../model/InvitationFailedRecipients.java | 116 +- .../model/InvitationGroupShareEmail.java | 152 +- .../InvitationOrganizationJoinEmail.java | 142 +- .../rest_api/model/InvitationStatus.java | 8 +- .../cloud/rest_api/model/InvitationType.java | 8 +- .../rest_api/model/LastAccessedArray.java | 146 +- .../tiledb/cloud/rest_api/model/Layout.java | 8 +- .../model/LoadArraySchemaRequest.java | 108 +- .../model/LoadArraySchemaResponse.java | 124 +- .../model/LoadEnumerationsRequest.java | 122 +- .../model/LoadEnumerationsResponse.java | 130 +- .../cloud/rest_api/model/MLModelFavorite.java | 125 +- .../rest_api/model/MLModelFavoritesData.java | 140 +- .../cloud/rest_api/model/MaxBufferSizes.java | 127 +- .../rest_api/model/MetadataStringified.java | 130 +- .../model/MetadataStringifiedEntry.java | 125 +- .../cloud/rest_api/model/MultiArrayUDF.java | 378 ++- .../rest_api/model/NamespaceActions.java | 8 +- .../cloud/rest_api/model/NonEmptyDomain.java | 122 +- .../cloud/rest_api/model/NotebookCopied.java | 139 +- .../cloud/rest_api/model/NotebookCopy.java | 125 +- .../rest_api/model/NotebookFavorite.java | 125 +- .../rest_api/model/NotebookFavoritesData.java | 140 +- .../cloud/rest_api/model/NotebookStatus.java | 199 +- .../cloud/rest_api/model/Organization.java | 295 +- .../rest_api/model/OrganizationRoles.java | 10 +- .../rest_api/model/OrganizationUpdate.java | 159 +- .../rest_api/model/OrganizationUser.java | 183 +- .../rest_api/model/PaginationMetadata.java | 139 +- .../cloud/rest_api/model/PodStatus.java | 8 +- .../tiledb/cloud/rest_api/model/Pricing.java | 234 +- .../rest_api/model/PricingAggregateUsage.java | 8 +- .../cloud/rest_api/model/PricingCurrency.java | 8 +- .../cloud/rest_api/model/PricingInterval.java | 8 +- .../cloud/rest_api/model/PricingType.java | 8 +- .../rest_api/model/PricingUnitLabel.java | 8 +- .../rest_api/model/PublicShareFilter.java | 8 +- .../io/tiledb/cloud/rest_api/model/Query.java | 217 +- .../cloud/rest_api/model/QueryJson.java | 122 +- .../cloud/rest_api/model/QueryRanges.java | 122 +- .../cloud/rest_api/model/QueryReader.java | 160 +- .../cloud/rest_api/model/Querystatus.java | 8 +- .../cloud/rest_api/model/Querytype.java | 8 +- .../cloud/rest_api/model/ReadState.java | 135 +- .../rest_api/model/RegisteredTaskGraph.java | 202 +- .../model/ResetUserPasswordRequest.java | 105 +- .../cloud/rest_api/model/ResultFormat.java | 8 +- .../cloud/rest_api/model/RetryPolicy.java | 14 +- .../cloud/rest_api/model/RetryStrategy.java | 139 +- .../cloud/rest_api/model/SQLParameters.java | 212 +- .../cloud/rest_api/model/SSODomainConfig.java | 204 +- .../model/SSODomainConfigResponse.java | 127 +- .../cloud/rest_api/model/SSODomainSetup.java | 125 +- .../cloud/rest_api/model/SSOProvider.java | 8 +- .../rest_api/model/SharePaymentRequest.java | 107 +- .../rest_api/model/SingleFragmentInfo.java | 121 +- .../cloud/rest_api/model/StorageLocation.java | 115 +- .../tiledb/cloud/rest_api/model/Subarray.java | 140 +- .../rest_api/model/SubarrayPartitioner.java | 182 +- .../model/SubarrayPartitionerCurrent.java | 132 +- .../model/SubarrayPartitionerState.java | 175 +- .../cloud/rest_api/model/SubarrayRanges.java | 130 +- .../cloud/rest_api/model/Subscription.java | 160 +- .../cloud/rest_api/model/TGArrayNodeData.java | 124 +- .../cloud/rest_api/model/TGInputNodeData.java | 113 +- .../cloud/rest_api/model/TGQueryRanges.java | 124 +- .../cloud/rest_api/model/TGSQLNodeData.java | 157 +- .../cloud/rest_api/model/TGUDFArgument.java | 113 +- .../rest_api/model/TGUDFEnvironment.java | 221 +- .../model/TGUDFEnvironmentResources.java | 123 +- .../cloud/rest_api/model/TGUDFNodeData.java | 187 +- .../cloud/rest_api/model/TGUDFStorage.java | 169 +- .../cloud/rest_api/model/TaskGraph.java | 216 +- .../rest_api/model/TaskGraphActions.java | 8 +- .../model/TaskGraphClientNodeStatus.java | 121 +- .../cloud/rest_api/model/TaskGraphLog.java | 369 ++- .../model/TaskGraphLogRunLocation.java | 8 +- .../rest_api/model/TaskGraphLogStatus.java | 8 +- .../rest_api/model/TaskGraphLogsData.java | 140 +- .../cloud/rest_api/model/TaskGraphNode.java | 219 +- .../rest_api/model/TaskGraphNodeMetadata.java | 193 +- .../rest_api/model/TaskGraphSharing.java | 130 +- .../cloud/rest_api/model/TaskGraphType.java | 12 +- .../cloud/rest_api/model/TaskGraphs.java | 127 +- .../cloud/rest_api/model/TileDBConfig.java | 127 +- .../model/TileDBConfigEntriesInner.java | 116 +- .../io/tiledb/cloud/rest_api/model/Token.java | 146 +- .../cloud/rest_api/model/TokenRequest.java | 128 +- .../cloud/rest_api/model/TokenScope.java | 8 +- .../cloud/rest_api/model/UDFActions.java | 8 +- .../cloud/rest_api/model/UDFArrayDetails.java | 146 +- .../cloud/rest_api/model/UDFCopied.java | 139 +- .../tiledb/cloud/rest_api/model/UDFCopy.java | 125 +- .../cloud/rest_api/model/UDFFavorite.java | 128 +- .../rest_api/model/UDFFavoritesData.java | 143 +- .../tiledb/cloud/rest_api/model/UDFImage.java | 128 +- .../cloud/rest_api/model/UDFImageVersion.java | 159 +- .../tiledb/cloud/rest_api/model/UDFInfo.java | 185 +- .../cloud/rest_api/model/UDFInfoUpdate.java | 215 +- .../cloud/rest_api/model/UDFLanguage.java | 8 +- .../cloud/rest_api/model/UDFSharing.java | 130 +- .../cloud/rest_api/model/UDFSubarray.java | 140 +- .../rest_api/model/UDFSubarrayRange.java | 128 +- .../tiledb/cloud/rest_api/model/UDFType.java | 12 +- .../io/tiledb/cloud/rest_api/model/User.java | 312 +- .../tiledb/cloud/rest_api/model/Writer.java | 130 +- .../tiledb/cloud/rest_api/v2/ApiCallback.java | 60 - .../tiledb/cloud/rest_api/v2/ApiClient.java | 1555 --------- .../cloud/rest_api/v2/ApiException.java | 166 - .../tiledb/cloud/rest_api/v2/ApiResponse.java | 76 - .../cloud/rest_api/v2/Configuration.java | 39 - .../rest_api/v2/GzipRequestInterceptor.java | 85 - .../io/tiledb/cloud/rest_api/v2/JSON.java | 537 ---- .../io/tiledb/cloud/rest_api/v2/Pair.java | 57 - .../rest_api/v2/ProgressRequestBody.java | 73 - .../rest_api/v2/ProgressResponseBody.java | 70 - .../rest_api/v2/ServerConfiguration.java | 58 - .../cloud/rest_api/v2/ServerVariable.java | 23 - .../tiledb/cloud/rest_api/v2/StringUtil.java | 83 - .../cloud/rest_api/v2/api/ArrayApi.java | 440 --- .../cloud/rest_api/v2/api/FilesApi.java | 284 -- .../cloud/rest_api/v2/api/GroupsApi.java | 1593 ---------- .../cloud/rest_api/v2/api/NotebooksApi.java | 255 -- .../rest_api/v2/api/OrganizationApi.java | 847 ----- .../cloud/rest_api/v2/api/QueryApi.java | 280 -- .../tiledb/cloud/rest_api/v2/api/UserApi.java | 847 ----- .../cloud/rest_api/v2/auth/ApiKeyAuth.java | 80 - .../rest_api/v2/auth/Authentication.java | 36 - .../cloud/rest_api/v2/auth/HttpBasicAuth.java | 55 - .../rest_api/v2/auth/HttpBearerAuth.java | 63 - .../tiledb/cloud/rest_api/v2/auth/OAuth.java | 42 - .../cloud/rest_api/v2/auth/OAuthFlow.java | 25 - .../rest_api/v2/auth/OAuthOkHttpClient.java | 68 - .../cloud/rest_api/v2/auth/RetryingOAuth.java | 210 -- .../rest_api/v2/model/AWSCredential.java | 343 -- .../cloud/rest_api/v2/model/AWSRole.java | 343 -- .../v2/model/AbstractOpenApiSchema.java | 147 - .../rest_api/v2/model/AccessCredential.java | 523 --- .../v2/model/AccessCredentialCredential.java | 347 -- .../v2/model/AccessCredentialRole.java | 279 -- .../v2/model/AccessCredentialToken.java | 313 -- .../v2/model/AccessCredentialType.java | 71 - .../v2/model/AccessCredentialsData.java | 319 -- .../rest_api/v2/model/ActivityEventType.java | 97 - .../tiledb/cloud/rest_api/v2/model/Array.java | 618 ---- .../rest_api/v2/model/ArrayActivityLog.java | 518 --- .../v2/model/ArrayActivityLogData.java | 319 -- .../rest_api/v2/model/ArrayDirectory.java | 807 ----- .../cloud/rest_api/v2/model/ArrayFetch.java | 296 -- .../rest_api/v2/model/ArrayMetadata.java | 285 -- .../rest_api/v2/model/ArrayMetadataEntry.java | 402 --- .../cloud/rest_api/v2/model/ArraySchema.java | 731 ----- .../rest_api/v2/model/ArraySchemaEntry.java | 299 -- .../rest_api/v2/model/ArraySchemaMap.java | 285 -- .../cloud/rest_api/v2/model/ArrayType.java | 69 - .../cloud/rest_api/v2/model/AssetType.java | 95 - .../cloud/rest_api/v2/model/Attribute.java | 474 --- .../v2/model/AttributeBufferHeader.java | 455 --- .../v2/model/AttributeBufferSize.java | 335 -- .../rest_api/v2/model/AzureCredential.java | 298 -- .../cloud/rest_api/v2/model/AzureToken.java | 298 -- .../rest_api/v2/model/CloudProvider.java | 71 - .../cloud/rest_api/v2/model/Datatype.java | 149 - .../v2/model/DeleteAndUpdateTileLocation.java | 329 -- .../cloud/rest_api/v2/model/Dimension.java | 437 --- .../v2/model/DimensionTileExtent.java | 532 ---- .../cloud/rest_api/v2/model/Domain.java | 383 --- .../cloud/rest_api/v2/model/DomainArray.java | 654 ---- .../tiledb/cloud/rest_api/v2/model/Error.java | 326 -- .../cloud/rest_api/v2/model/FileUploaded.java | 339 -- .../cloud/rest_api/v2/model/Filter.java | 338 -- .../cloud/rest_api/v2/model/FilterData.java | 609 ---- .../rest_api/v2/model/FilterPipeline.java | 285 -- .../cloud/rest_api/v2/model/FilterType.java | 97 - .../rest_api/v2/model/FloatScaleConfig.java | 322 -- .../rest_api/v2/model/FragmentMetadata.java | 1333 -------- .../model/GCPInteroperabilityCredential.java | 298 -- .../v2/model/GCPServiceAccountKey.java | 331 -- .../rest_api/v2/model/GenericTileOffsets.java | 661 ---- .../v2/model/GroupActivityEventType.java | 99 - .../v2/model/GroupContentActivity.java | 300 -- .../v2/model/GroupContentActivityAsset.java | 361 --- .../model/GroupContentActivityResponse.java | 319 -- .../v2/model/GroupContentsChangesRequest.java | 300 -- ...oupContentsChangesRequestGroupChanges.java | 325 -- .../model/GroupContentsRetrievalRequest.java | 266 -- .../model/GroupContentsRetrievalResponse.java | 319 -- .../v2/model/GroupCreationRequest.java | 308 -- .../GroupCreationRequestGroupDetails.java | 474 --- .../v2/model/GroupCreationResponse.java | 331 -- .../cloud/rest_api/v2/model/GroupMember.java | 328 -- .../v2/model/GroupMemberAssetType.java | 93 - .../rest_api/v2/model/GroupMemberType.java | 69 - .../model/GroupMetadataRetrievalRequest.java | 266 -- .../v2/model/GroupMetadataUpdateRequest.java | 308 -- .../v2/model/GroupRegistrationRequest.java | 308 -- .../GroupRegistrationRequestGroupDetails.java | 573 ---- .../cloud/rest_api/v2/model/Layout.java | 73 - .../cloud/rest_api/v2/model/Metadata.java | 285 -- .../rest_api/v2/model/MetadataEntry.java | 388 --- .../rest_api/v2/model/NonEmptyDomainList.java | 285 -- .../rest_api/v2/model/NotebookUploaded.java | 339 -- .../rest_api/v2/model/PaginationMetadata.java | 351 --- .../tiledb/cloud/rest_api/v2/model/Query.java | 576 ---- .../cloud/rest_api/v2/model/QueryReader.java | 330 -- .../cloud/rest_api/v2/model/Querystatus.java | 75 - .../cloud/rest_api/v2/model/Querytype.java | 69 - .../cloud/rest_api/v2/model/ReadState.java | 356 --- .../cloud/rest_api/v2/model/Subarray.java | 315 -- .../v2/model/SubarrayPartitioner.java | 447 --- .../v2/model/SubarrayPartitionerCurrent.java | 356 --- .../v2/model/SubarrayPartitionerState.java | 395 --- .../rest_api/v2/model/SubarrayRanges.java | 420 --- .../cloud/rest_api/v2/model/TileDBConfig.java | 285 -- .../v2/model/TileDBConfigEntriesInner.java | 296 -- .../rest_api/v2/model/TimestampedURI.java | 326 -- .../cloud/rest_api/v2/model/Writer.java | 388 --- .../cloud/rest_api/api/ArrayApiTest.java | 560 ---- .../cloud/rest_api/api/ArrayTasksApiTest.java | 46 - .../cloud/rest_api/api/AssetsApiTest.java | 72 - .../cloud/rest_api/api/FavoritesApiTest.java | 295 -- .../cloud/rest_api/api/FilesApiTest.java | 84 - .../cloud/rest_api/api/GroupsApiTest.java | 309 -- .../cloud/rest_api/api/InvitationApiTest.java | 181 -- .../cloud/rest_api/api/NotebookApiTest.java | 110 - .../cloud/rest_api/api/NotebooksApiTest.java | 64 - .../rest_api/api/OrganizationApiTest.java | 297 -- .../cloud/rest_api/api/QueryApiTest.java | 122 - .../api/RegisteredTaskGraphsApiTest.java | 117 - .../tiledb/cloud/rest_api/api/SqlApiTest.java | 49 - .../cloud/rest_api/api/StatsApiTest.java | 46 - .../rest_api/api/TaskGraphLogsApiTest.java | 161 - .../cloud/rest_api/api/TaskGraphsApiTest.java | 102 - .../cloud/rest_api/api/TasksApiTest.java | 101 - .../tiledb/cloud/rest_api/api/UdfApiTest.java | 200 -- .../cloud/rest_api/api/UserApiTest.java | 311 -- .../model/AWSAccessCredentialsTest.java | 107 - .../rest_api/model/ActivityEventTypeTest.java | 32 - .../rest_api/model/ArrayActionsTest.java | 32 - .../rest_api/model/ArrayActivityLogTest.java | 114 - .../rest_api/model/ArrayBrowserDataTest.java | 60 - .../model/ArrayBrowserSidebarTest.java | 66 - .../model/ArrayConsolidationRequestTest.java | 59 - .../model/ArrayEndTimestampDataTest.java | 59 - .../rest_api/model/ArrayFavoriteTest.java | 64 - .../model/ArrayFavoritesDataTest.java | 60 - .../cloud/rest_api/model/ArrayInfoTest.java | 269 -- .../rest_api/model/ArrayInfoUpdateTest.java | 134 - .../model/ArrayMetadataEntryTest.java | 82 - .../rest_api/model/ArrayMetadataTest.java | 51 - .../cloud/rest_api/model/ArraySampleTest.java | 48 - .../cloud/rest_api/model/ArraySchemaTest.java | 135 - .../rest_api/model/ArraySharingTest.java | 67 - .../model/ArrayTaskBrowserSidebarTest.java | 66 - .../rest_api/model/ArrayTaskDataTest.java | 60 - .../rest_api/model/ArrayTaskLogTest.java | 56 - .../rest_api/model/ArrayTaskStatusTest.java | 32 - .../cloud/rest_api/model/ArrayTaskTest.java | 300 -- .../rest_api/model/ArrayTaskTypeTest.java | 32 - .../cloud/rest_api/model/ArrayTest.java | 66 - .../cloud/rest_api/model/ArrayTypeTest.java | 32 - .../model/ArrayVacuumRequestTest.java | 49 - .../rest_api/model/AssetBackingTypeTest.java | 32 - .../cloud/rest_api/model/AssetInfoTest.java | 125 - .../rest_api/model/AssetListResponseTest.java | 60 - .../rest_api/model/AssetLocationsTest.java | 97 - .../model/AssetOwnershipLevelTest.java | 32 - .../cloud/rest_api/model/AssetTypeTest.java | 32 - .../model/AttributeBufferHeaderTest.java | 64 - .../model/AttributeBufferSizeTest.java | 64 - .../cloud/rest_api/model/AttributeTest.java | 92 - .../cloud/rest_api/model/BackoffTest.java | 64 - .../cloud/rest_api/model/DatatypeTest.java | 32 - .../model/DimensionCoordinateTest.java | 120 - .../cloud/rest_api/model/DimensionTest.java | 92 - .../model/DimensionTileExtentTest.java | 120 - .../cloud/rest_api/model/DomainArrayTest.java | 122 - .../rest_api/model/DomainCheckResultTest.java | 58 - .../rest_api/model/DomainCheckStatusTest.java | 32 - .../cloud/rest_api/model/DomainTest.java | 77 - .../model/DomainVerificationStatusTest.java | 32 - .../cloud/rest_api/model/EnumerationTest.java | 98 - .../cloud/rest_api/model/ErrorTest.java | 64 - .../cloud/rest_api/model/FileCreateTest.java | 64 - .../cloud/rest_api/model/FileCreatedTest.java | 56 - .../cloud/rest_api/model/FileExportTest.java | 48 - .../rest_api/model/FileExportedTest.java | 48 - .../rest_api/model/FilePropertyNameTest.java | 32 - .../cloud/rest_api/model/FileTypeTest.java | 32 - .../rest_api/model/FileUploadedTest.java | 64 - .../cloud/rest_api/model/FilterDataTest.java | 120 - .../rest_api/model/FilterOptionTest.java | 32 - .../rest_api/model/FilterPipelineTest.java | 51 - .../cloud/rest_api/model/FilterTest.java | 58 - .../cloud/rest_api/model/FilterTypeTest.java | 32 - .../model/FragmentInfoRequestTest.java | 49 - .../rest_api/model/FragmentInfoTest.java | 70 - .../rest_api/model/FragmentMetadataTest.java | 242 -- .../cloud/rest_api/model/GenericUDFTest.java | 180 -- .../model/GetTiledbStats200ResponseTest.java | 48 - .../rest_api/model/GroupActionsTest.java | 32 - .../rest_api/model/GroupBrowserDataTest.java | 60 - .../model/GroupBrowserFilterDataTest.java | 59 - .../rest_api/model/GroupChangesTest.java | 59 - .../model/GroupContentActivityAssetTest.java | 73 - .../GroupContentActivityResponseTest.java | 60 - .../model/GroupContentActivityTest.java | 58 - .../model/GroupContentsFilterDataTest.java | 50 - .../rest_api/model/GroupContentsTest.java | 60 - .../cloud/rest_api/model/GroupCreateTest.java | 114 - .../cloud/rest_api/model/GroupEntryTest.java | 66 - .../cloud/rest_api/model/GroupInfoTest.java | 224 -- .../model/GroupMemberAssetTypeTest.java | 32 - .../cloud/rest_api/model/GroupMemberTest.java | 65 - .../rest_api/model/GroupMemberTypeTest.java | 32 - .../rest_api/model/GroupRegisterTest.java | 114 - .../model/GroupSharingRequestTest.java | 68 - .../rest_api/model/GroupSharingTest.java | 76 - .../model/GroupTypeMetadataKeyTest.java | 32 - .../cloud/rest_api/model/GroupTypeTest.java | 32 - .../cloud/rest_api/model/GroupUpdateTest.java | 99 - .../model/InvitationArrayShareEmailTest.java | 59 - .../rest_api/model/InvitationDataTest.java | 60 - .../model/InvitationFailedRecipientsTest.java | 50 - .../model/InvitationGroupShareEmailTest.java | 68 - .../InvitationOrganizationJoinEmailTest.java | 68 - .../rest_api/model/InvitationStatusTest.java | 32 - .../cloud/rest_api/model/InvitationTest.java | 204 -- .../rest_api/model/InvitationTypeTest.java | 32 - .../rest_api/model/LastAccessedArrayTest.java | 82 - .../cloud/rest_api/model/LayoutTest.java | 32 - .../model/LoadArraySchemaRequestTest.java | 49 - .../model/LoadArraySchemaResponseTest.java | 59 - .../model/LoadEnumerationsRequestTest.java | 59 - .../model/LoadEnumerationsResponseTest.java | 51 - .../rest_api/model/MLModelFavoriteTest.java | 64 - .../model/MLModelFavoritesDataTest.java | 60 - .../rest_api/model/MaxBufferSizesTest.java | 51 - .../model/MetadataStringifiedEntryTest.java | 64 - .../model/MetadataStringifiedTest.java | 51 - .../rest_api/model/MultiArrayUDFTest.java | 225 -- .../rest_api/model/NamespaceActionsTest.java | 32 - .../rest_api/model/NonEmptyDomainTest.java | 57 - .../rest_api/model/NotebookCopiedTest.java | 72 - .../rest_api/model/NotebookCopyTest.java | 64 - .../rest_api/model/NotebookFavoriteTest.java | 64 - .../model/NotebookFavoritesDataTest.java | 60 - .../rest_api/model/NotebookStatusTest.java | 138 - .../rest_api/model/OrganizationRolesTest.java | 32 - .../rest_api/model/OrganizationTest.java | 185 -- .../model/OrganizationUpdateTest.java | 90 - .../rest_api/model/OrganizationUserTest.java | 108 - .../model/PaginationMetadataTest.java | 73 - .../cloud/rest_api/model/PodStatusTest.java | 32 - .../model/PricingAggregateUsageTest.java | 32 - .../rest_api/model/PricingCurrencyTest.java | 32 - .../rest_api/model/PricingIntervalTest.java | 32 - .../cloud/rest_api/model/PricingTest.java | 149 - .../cloud/rest_api/model/PricingTypeTest.java | 32 - .../rest_api/model/PricingUnitLabelTest.java | 32 - .../rest_api/model/PublicShareFilterTest.java | 32 - .../cloud/rest_api/model/QueryJsonTest.java | 59 - .../cloud/rest_api/model/QueryRangesTest.java | 60 - .../cloud/rest_api/model/QueryReaderTest.java | 91 - .../cloud/rest_api/model/QueryTest.java | 120 - .../cloud/rest_api/model/QuerystatusTest.java | 32 - .../cloud/rest_api/model/QuerytypeTest.java | 32 - .../cloud/rest_api/model/ReadStateTest.java | 73 - .../model/RegisteredTaskGraphTest.java | 108 - .../model/ResetUserPasswordRequestTest.java | 48 - .../rest_api/model/ResultFormatTest.java | 32 - .../cloud/rest_api/model/RetryPolicyTest.java | 32 - .../rest_api/model/RetryStrategyTest.java | 74 - .../rest_api/model/SQLParametersTest.java | 131 - .../model/SSODomainConfigResponseTest.java | 51 - .../rest_api/model/SSODomainConfigTest.java | 110 - .../rest_api/model/SSODomainSetupTest.java | 64 - .../cloud/rest_api/model/SSOProviderTest.java | 32 - .../model/SharePaymentRequestTest.java | 50 - .../model/SingleFragmentInfoTest.java | 57 - .../rest_api/model/StorageLocationTest.java | 57 - .../model/SubarrayPartitionerCurrentTest.java | 73 - .../model/SubarrayPartitionerStateTest.java | 75 - .../model/SubarrayPartitionerTest.java | 94 - .../rest_api/model/SubarrayRangesTest.java | 67 - .../cloud/rest_api/model/SubarrayTest.java | 60 - .../rest_api/model/SubscriptionTest.java | 75 - .../rest_api/model/TGArrayNodeDataTest.java | 65 - .../rest_api/model/TGInputNodeDataTest.java | 57 - .../rest_api/model/TGQueryRangesTest.java | 65 - .../rest_api/model/TGSQLNodeDataTest.java | 84 - .../rest_api/model/TGUDFArgumentTest.java | 57 - .../model/TGUDFEnvironmentResourcesTest.java | 64 - .../rest_api/model/TGUDFEnvironmentTest.java | 126 - .../rest_api/model/TGUDFNodeDataTest.java | 94 - .../rest_api/model/TGUDFStorageTest.java | 64 - .../rest_api/model/TaskGraphActionsTest.java | 32 - .../model/TaskGraphClientNodeStatusTest.java | 57 - .../model/TaskGraphLogRunLocationTest.java | 32 - .../model/TaskGraphLogStatusTest.java | 32 - .../rest_api/model/TaskGraphLogTest.java | 194 -- .../rest_api/model/TaskGraphLogsDataTest.java | 60 - .../model/TaskGraphNodeMetadataTest.java | 102 - .../rest_api/model/TaskGraphNodeTest.java | 128 - .../rest_api/model/TaskGraphSharingTest.java | 67 - .../cloud/rest_api/model/TaskGraphTest.java | 127 - .../rest_api/model/TaskGraphTypeTest.java | 32 - .../cloud/rest_api/model/TaskGraphsTest.java | 51 - .../model/TileDBConfigEntriesInnerTest.java | 56 - .../rest_api/model/TileDBConfigTest.java | 51 - .../rest_api/model/TokenRequestTest.java | 68 - .../cloud/rest_api/model/TokenScopeTest.java | 32 - .../cloud/rest_api/model/TokenTest.java | 84 - .../cloud/rest_api/model/UDFActionsTest.java | 32 - .../rest_api/model/UDFArrayDetailsTest.java | 76 - .../cloud/rest_api/model/UDFCopiedTest.java | 72 - .../cloud/rest_api/model/UDFCopyTest.java | 64 - .../cloud/rest_api/model/UDFFavoriteTest.java | 64 - .../rest_api/model/UDFFavoritesDataTest.java | 60 - .../cloud/rest_api/model/UDFImageTest.java | 65 - .../rest_api/model/UDFImageVersionTest.java | 97 - .../cloud/rest_api/model/UDFInfoTest.java | 108 - .../rest_api/model/UDFInfoUpdateTest.java | 132 - .../cloud/rest_api/model/UDFLanguageTest.java | 32 - .../cloud/rest_api/model/UDFSharingTest.java | 67 - .../rest_api/model/UDFSubarrayRangeTest.java | 65 - .../cloud/rest_api/model/UDFSubarrayTest.java | 60 - .../cloud/rest_api/model/UDFTypeTest.java | 32 - .../tiledb/cloud/rest_api/model/UserTest.java | 198 -- .../cloud/rest_api/model/WriterTest.java | 73 - 593 files changed, 23908 insertions(+), 78934 deletions(-) delete mode 100644 src/main/AndroidManifest.xml delete mode 100644 src/main/java/io/tiledb/cloud/TileDBSQL.java delete mode 100644 src/main/java/io/tiledb/cloud/TileDBUDF.java rename src/main/java/io/tiledb/cloud/rest_api/{v2/model/NonEmptyDomain.java => model/ChangeAssetCredentialsRequest.java} (59%) delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ApiCallback.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ApiClient.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ApiResponse.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/Configuration.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/GzipRequestInterceptor.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/JSON.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/Pair.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ProgressRequestBody.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ProgressResponseBody.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ServerConfiguration.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/ServerVariable.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/StringUtil.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/ArrayApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/FilesApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/GroupsApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/NotebooksApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/OrganizationApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/QueryApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/api/UserApi.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/ApiKeyAuth.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/Authentication.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBasicAuth.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBearerAuth.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuth.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthFlow.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthOkHttpClient.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/auth/RetryingOAuth.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSCredential.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSRole.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AbstractOpenApiSchema.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredential.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialCredential.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialRole.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialToken.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialsData.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ActivityEventType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Array.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLog.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLogData.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayDirectory.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayFetch.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadata.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadataEntry.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchema.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaEntry.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaMap.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AssetType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Attribute.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferHeader.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferSize.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureCredential.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureToken.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/CloudProvider.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Datatype.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/DeleteAndUpdateTileLocation.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Dimension.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/DimensionTileExtent.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Domain.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/DomainArray.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Error.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/FileUploaded.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Filter.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterData.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterPipeline.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/FloatScaleConfig.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/FragmentMetadata.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPInteroperabilityCredential.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPServiceAccountKey.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GenericTileOffsets.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupActivityEventType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivity.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityAsset.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityResponse.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequest.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequestGroupChanges.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalRequest.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalResponse.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequest.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequestGroupDetails.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationResponse.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMember.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberAssetType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberType.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataRetrievalRequest.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataUpdateRequest.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequest.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequestGroupDetails.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Layout.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Metadata.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/MetadataEntry.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomainList.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/NotebookUploaded.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/PaginationMetadata.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Query.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/QueryReader.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Querystatus.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Querytype.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/ReadState.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Subarray.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitioner.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerCurrent.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerState.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayRanges.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfig.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfigEntriesInner.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/TimestampedURI.java delete mode 100644 src/main/java/io/tiledb/cloud/rest_api/v2/model/Writer.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java delete mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8fad433..485dc25 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -42,6 +42,7 @@ docs/Attribute.md docs/AttributeBufferHeader.md docs/AttributeBufferSize.md docs/Backoff.md +docs/ChangeAssetCredentialsRequest.md docs/Datatype.md docs/Dimension.md docs/DimensionCoordinate.md @@ -224,451 +225,453 @@ gradlew gradlew.bat pom.xml src/main/AndroidManifest.xml -src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java -src/main/java/io/tiledb/cloud/rest_api/ApiClient.java -src/main/java/io/tiledb/cloud/rest_api/ApiException.java -src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java -src/main/java/io/tiledb/cloud/rest_api/Configuration.java -src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java -src/main/java/io/tiledb/cloud/rest_api/JSON.java -src/main/java/io/tiledb/cloud/rest_api/Pair.java -src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java -src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java -src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java -src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java -src/main/java/io/tiledb/cloud/rest_api/StringUtil.java -src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java -src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java -src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java -src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java -src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java -src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java -src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java -src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java -src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java -src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java -src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java -src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java -src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java -src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java -src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java -src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java -src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java -src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java -src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java -src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java -src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java -src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java -src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java -src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java -src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java -src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java -src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java -src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java -src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java -src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java -src/main/java/io/tiledb/cloud/rest_api/model/Array.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java -src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java -src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java -src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java -src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java -src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java -src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java -src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java -src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java -src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java -src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java -src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java -src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java -src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java -src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java -src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java -src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java -src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java -src/main/java/io/tiledb/cloud/rest_api/model/Domain.java -src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java -src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java -src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java -src/main/java/io/tiledb/cloud/rest_api/model/Error.java -src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java -src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java -src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java -src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java -src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java -src/main/java/io/tiledb/cloud/rest_api/model/FileType.java -src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java -src/main/java/io/tiledb/cloud/rest_api/model/Filter.java -src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java -src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java -src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java -src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java -src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java -src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java -src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java -src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java -src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java -src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java -src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java -src/main/java/io/tiledb/cloud/rest_api/model/Layout.java -src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java -src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java -src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java -src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java -src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java -src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java -src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java -src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java -src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java -src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java -src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java -src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java -src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java -src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java -src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/Organization.java -src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java -src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java -src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java -src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java -src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java -src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java -src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java -src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java -src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java -src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java -src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java -src/main/java/io/tiledb/cloud/rest_api/model/Query.java -src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java -src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java -src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java -src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java -src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java -src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java -src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java -src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java -src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java -src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java -src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java -src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java -src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java -src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java -src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java -src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java -src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java -src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java -src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java -src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java -src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java -src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java -src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java -src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java -src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java -src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java -src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java -src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java -src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java -src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java -src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java -src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java -src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java -src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java -src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java -src/main/java/io/tiledb/cloud/rest_api/model/Token.java -src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java -src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java -src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java -src/main/java/io/tiledb/cloud/rest_api/model/User.java -src/main/java/io/tiledb/cloud/rest_api/model/Writer.java -src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java -src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java -src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java +src/main/java/org/openapitools/client/ApiCallback.java +src/main/java/org/openapitools/client/ApiClient.java +src/main/java/org/openapitools/client/ApiException.java +src/main/java/org/openapitools/client/ApiResponse.java +src/main/java/org/openapitools/client/Configuration.java +src/main/java/org/openapitools/client/GzipRequestInterceptor.java +src/main/java/org/openapitools/client/JSON.java +src/main/java/org/openapitools/client/Pair.java +src/main/java/org/openapitools/client/ProgressRequestBody.java +src/main/java/org/openapitools/client/ProgressResponseBody.java +src/main/java/org/openapitools/client/ServerConfiguration.java +src/main/java/org/openapitools/client/ServerVariable.java +src/main/java/org/openapitools/client/StringUtil.java +src/main/java/org/openapitools/client/api/ArrayApi.java +src/main/java/org/openapitools/client/api/ArrayTasksApi.java +src/main/java/org/openapitools/client/api/AssetsApi.java +src/main/java/org/openapitools/client/api/FavoritesApi.java +src/main/java/org/openapitools/client/api/FilesApi.java +src/main/java/org/openapitools/client/api/GroupsApi.java +src/main/java/org/openapitools/client/api/InvitationApi.java +src/main/java/org/openapitools/client/api/NotebookApi.java +src/main/java/org/openapitools/client/api/NotebooksApi.java +src/main/java/org/openapitools/client/api/OrganizationApi.java +src/main/java/org/openapitools/client/api/QueryApi.java +src/main/java/org/openapitools/client/api/RegisteredTaskGraphsApi.java +src/main/java/org/openapitools/client/api/SqlApi.java +src/main/java/org/openapitools/client/api/StatsApi.java +src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java +src/main/java/org/openapitools/client/api/TaskGraphsApi.java +src/main/java/org/openapitools/client/api/TasksApi.java +src/main/java/org/openapitools/client/api/UdfApi.java +src/main/java/org/openapitools/client/api/UserApi.java +src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +src/main/java/org/openapitools/client/auth/Authentication.java +src/main/java/org/openapitools/client/auth/HttpBasicAuth.java +src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +src/main/java/org/openapitools/client/auth/OAuth.java +src/main/java/org/openapitools/client/auth/OAuthFlow.java +src/main/java/org/openapitools/client/auth/OAuthOkHttpClient.java +src/main/java/org/openapitools/client/auth/RetryingOAuth.java +src/main/java/org/openapitools/client/model/AWSAccessCredentials.java +src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +src/main/java/org/openapitools/client/model/ActivityEventType.java +src/main/java/org/openapitools/client/model/Array.java +src/main/java/org/openapitools/client/model/ArrayActions.java +src/main/java/org/openapitools/client/model/ArrayActivityLog.java +src/main/java/org/openapitools/client/model/ArrayBrowserData.java +src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java +src/main/java/org/openapitools/client/model/ArrayConsolidationRequest.java +src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java +src/main/java/org/openapitools/client/model/ArrayFavorite.java +src/main/java/org/openapitools/client/model/ArrayFavoritesData.java +src/main/java/org/openapitools/client/model/ArrayInfo.java +src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java +src/main/java/org/openapitools/client/model/ArrayMetadata.java +src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java +src/main/java/org/openapitools/client/model/ArraySample.java +src/main/java/org/openapitools/client/model/ArraySchema.java +src/main/java/org/openapitools/client/model/ArraySharing.java +src/main/java/org/openapitools/client/model/ArrayTask.java +src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java +src/main/java/org/openapitools/client/model/ArrayTaskData.java +src/main/java/org/openapitools/client/model/ArrayTaskLog.java +src/main/java/org/openapitools/client/model/ArrayTaskStatus.java +src/main/java/org/openapitools/client/model/ArrayTaskType.java +src/main/java/org/openapitools/client/model/ArrayType.java +src/main/java/org/openapitools/client/model/ArrayVacuumRequest.java +src/main/java/org/openapitools/client/model/AssetBackingType.java +src/main/java/org/openapitools/client/model/AssetInfo.java +src/main/java/org/openapitools/client/model/AssetListResponse.java +src/main/java/org/openapitools/client/model/AssetLocations.java +src/main/java/org/openapitools/client/model/AssetOwnershipLevel.java +src/main/java/org/openapitools/client/model/AssetType.java +src/main/java/org/openapitools/client/model/Attribute.java +src/main/java/org/openapitools/client/model/AttributeBufferHeader.java +src/main/java/org/openapitools/client/model/AttributeBufferSize.java +src/main/java/org/openapitools/client/model/Backoff.java +src/main/java/org/openapitools/client/model/ChangeAssetCredentialsRequest.java +src/main/java/org/openapitools/client/model/Datatype.java +src/main/java/org/openapitools/client/model/Dimension.java +src/main/java/org/openapitools/client/model/DimensionCoordinate.java +src/main/java/org/openapitools/client/model/DimensionTileExtent.java +src/main/java/org/openapitools/client/model/Domain.java +src/main/java/org/openapitools/client/model/DomainArray.java +src/main/java/org/openapitools/client/model/DomainCheckResult.java +src/main/java/org/openapitools/client/model/DomainCheckStatus.java +src/main/java/org/openapitools/client/model/DomainVerificationStatus.java +src/main/java/org/openapitools/client/model/Enumeration.java +src/main/java/org/openapitools/client/model/Error.java +src/main/java/org/openapitools/client/model/FileCreate.java +src/main/java/org/openapitools/client/model/FileCreated.java +src/main/java/org/openapitools/client/model/FileExport.java +src/main/java/org/openapitools/client/model/FileExported.java +src/main/java/org/openapitools/client/model/FilePropertyName.java +src/main/java/org/openapitools/client/model/FileType.java +src/main/java/org/openapitools/client/model/FileUploaded.java +src/main/java/org/openapitools/client/model/Filter.java +src/main/java/org/openapitools/client/model/FilterData.java +src/main/java/org/openapitools/client/model/FilterOption.java +src/main/java/org/openapitools/client/model/FilterPipeline.java +src/main/java/org/openapitools/client/model/FilterType.java +src/main/java/org/openapitools/client/model/FragmentInfo.java +src/main/java/org/openapitools/client/model/FragmentInfoRequest.java +src/main/java/org/openapitools/client/model/FragmentMetadata.java +src/main/java/org/openapitools/client/model/GenericUDF.java +src/main/java/org/openapitools/client/model/GetTiledbStats200Response.java +src/main/java/org/openapitools/client/model/GroupActions.java +src/main/java/org/openapitools/client/model/GroupBrowserData.java +src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java +src/main/java/org/openapitools/client/model/GroupChanges.java +src/main/java/org/openapitools/client/model/GroupContentActivity.java +src/main/java/org/openapitools/client/model/GroupContentActivityAsset.java +src/main/java/org/openapitools/client/model/GroupContentActivityResponse.java +src/main/java/org/openapitools/client/model/GroupContents.java +src/main/java/org/openapitools/client/model/GroupContentsFilterData.java +src/main/java/org/openapitools/client/model/GroupCreate.java +src/main/java/org/openapitools/client/model/GroupEntry.java +src/main/java/org/openapitools/client/model/GroupInfo.java +src/main/java/org/openapitools/client/model/GroupMember.java +src/main/java/org/openapitools/client/model/GroupMemberAssetType.java +src/main/java/org/openapitools/client/model/GroupMemberType.java +src/main/java/org/openapitools/client/model/GroupRegister.java +src/main/java/org/openapitools/client/model/GroupSharing.java +src/main/java/org/openapitools/client/model/GroupSharingRequest.java +src/main/java/org/openapitools/client/model/GroupType.java +src/main/java/org/openapitools/client/model/GroupTypeMetadataKey.java +src/main/java/org/openapitools/client/model/GroupUpdate.java +src/main/java/org/openapitools/client/model/Invitation.java +src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java +src/main/java/org/openapitools/client/model/InvitationData.java +src/main/java/org/openapitools/client/model/InvitationFailedRecipients.java +src/main/java/org/openapitools/client/model/InvitationGroupShareEmail.java +src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java +src/main/java/org/openapitools/client/model/InvitationStatus.java +src/main/java/org/openapitools/client/model/InvitationType.java +src/main/java/org/openapitools/client/model/LastAccessedArray.java +src/main/java/org/openapitools/client/model/Layout.java +src/main/java/org/openapitools/client/model/LoadArraySchemaRequest.java +src/main/java/org/openapitools/client/model/LoadArraySchemaResponse.java +src/main/java/org/openapitools/client/model/LoadEnumerationsRequest.java +src/main/java/org/openapitools/client/model/LoadEnumerationsResponse.java +src/main/java/org/openapitools/client/model/MLModelFavorite.java +src/main/java/org/openapitools/client/model/MLModelFavoritesData.java +src/main/java/org/openapitools/client/model/MaxBufferSizes.java +src/main/java/org/openapitools/client/model/MetadataStringified.java +src/main/java/org/openapitools/client/model/MetadataStringifiedEntry.java +src/main/java/org/openapitools/client/model/MultiArrayUDF.java +src/main/java/org/openapitools/client/model/NamespaceActions.java +src/main/java/org/openapitools/client/model/NonEmptyDomain.java +src/main/java/org/openapitools/client/model/NotebookCopied.java +src/main/java/org/openapitools/client/model/NotebookCopy.java +src/main/java/org/openapitools/client/model/NotebookFavorite.java +src/main/java/org/openapitools/client/model/NotebookFavoritesData.java +src/main/java/org/openapitools/client/model/NotebookStatus.java +src/main/java/org/openapitools/client/model/Organization.java +src/main/java/org/openapitools/client/model/OrganizationRoles.java +src/main/java/org/openapitools/client/model/OrganizationUpdate.java +src/main/java/org/openapitools/client/model/OrganizationUser.java +src/main/java/org/openapitools/client/model/PaginationMetadata.java +src/main/java/org/openapitools/client/model/PodStatus.java +src/main/java/org/openapitools/client/model/Pricing.java +src/main/java/org/openapitools/client/model/PricingAggregateUsage.java +src/main/java/org/openapitools/client/model/PricingCurrency.java +src/main/java/org/openapitools/client/model/PricingInterval.java +src/main/java/org/openapitools/client/model/PricingType.java +src/main/java/org/openapitools/client/model/PricingUnitLabel.java +src/main/java/org/openapitools/client/model/PublicShareFilter.java +src/main/java/org/openapitools/client/model/Query.java +src/main/java/org/openapitools/client/model/QueryJson.java +src/main/java/org/openapitools/client/model/QueryRanges.java +src/main/java/org/openapitools/client/model/QueryReader.java +src/main/java/org/openapitools/client/model/Querystatus.java +src/main/java/org/openapitools/client/model/Querytype.java +src/main/java/org/openapitools/client/model/ReadState.java +src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java +src/main/java/org/openapitools/client/model/ResetUserPasswordRequest.java +src/main/java/org/openapitools/client/model/ResultFormat.java +src/main/java/org/openapitools/client/model/RetryPolicy.java +src/main/java/org/openapitools/client/model/RetryStrategy.java +src/main/java/org/openapitools/client/model/SQLParameters.java +src/main/java/org/openapitools/client/model/SSODomainConfig.java +src/main/java/org/openapitools/client/model/SSODomainConfigResponse.java +src/main/java/org/openapitools/client/model/SSODomainSetup.java +src/main/java/org/openapitools/client/model/SSOProvider.java +src/main/java/org/openapitools/client/model/SharePaymentRequest.java +src/main/java/org/openapitools/client/model/SingleFragmentInfo.java +src/main/java/org/openapitools/client/model/StorageLocation.java +src/main/java/org/openapitools/client/model/Subarray.java +src/main/java/org/openapitools/client/model/SubarrayPartitioner.java +src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java +src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java +src/main/java/org/openapitools/client/model/SubarrayRanges.java +src/main/java/org/openapitools/client/model/Subscription.java +src/main/java/org/openapitools/client/model/TGArrayNodeData.java +src/main/java/org/openapitools/client/model/TGInputNodeData.java +src/main/java/org/openapitools/client/model/TGQueryRanges.java +src/main/java/org/openapitools/client/model/TGSQLNodeData.java +src/main/java/org/openapitools/client/model/TGUDFArgument.java +src/main/java/org/openapitools/client/model/TGUDFEnvironment.java +src/main/java/org/openapitools/client/model/TGUDFEnvironmentResources.java +src/main/java/org/openapitools/client/model/TGUDFNodeData.java +src/main/java/org/openapitools/client/model/TGUDFStorage.java +src/main/java/org/openapitools/client/model/TaskGraph.java +src/main/java/org/openapitools/client/model/TaskGraphActions.java +src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java +src/main/java/org/openapitools/client/model/TaskGraphLog.java +src/main/java/org/openapitools/client/model/TaskGraphLogRunLocation.java +src/main/java/org/openapitools/client/model/TaskGraphLogStatus.java +src/main/java/org/openapitools/client/model/TaskGraphLogsData.java +src/main/java/org/openapitools/client/model/TaskGraphNode.java +src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java +src/main/java/org/openapitools/client/model/TaskGraphSharing.java +src/main/java/org/openapitools/client/model/TaskGraphType.java +src/main/java/org/openapitools/client/model/TaskGraphs.java +src/main/java/org/openapitools/client/model/TileDBConfig.java +src/main/java/org/openapitools/client/model/TileDBConfigEntriesInner.java +src/main/java/org/openapitools/client/model/Token.java +src/main/java/org/openapitools/client/model/TokenRequest.java +src/main/java/org/openapitools/client/model/TokenScope.java +src/main/java/org/openapitools/client/model/UDFActions.java +src/main/java/org/openapitools/client/model/UDFArrayDetails.java +src/main/java/org/openapitools/client/model/UDFCopied.java +src/main/java/org/openapitools/client/model/UDFCopy.java +src/main/java/org/openapitools/client/model/UDFFavorite.java +src/main/java/org/openapitools/client/model/UDFFavoritesData.java +src/main/java/org/openapitools/client/model/UDFImage.java +src/main/java/org/openapitools/client/model/UDFImageVersion.java +src/main/java/org/openapitools/client/model/UDFInfo.java +src/main/java/org/openapitools/client/model/UDFInfoUpdate.java +src/main/java/org/openapitools/client/model/UDFLanguage.java +src/main/java/org/openapitools/client/model/UDFSharing.java +src/main/java/org/openapitools/client/model/UDFSubarray.java +src/main/java/org/openapitools/client/model/UDFSubarrayRange.java +src/main/java/org/openapitools/client/model/UDFType.java +src/main/java/org/openapitools/client/model/User.java +src/main/java/org/openapitools/client/model/Writer.java +src/test/java/org/openapitools/client/api/ArrayApiTest.java +src/test/java/org/openapitools/client/api/ArrayTasksApiTest.java +src/test/java/org/openapitools/client/api/AssetsApiTest.java +src/test/java/org/openapitools/client/api/FavoritesApiTest.java +src/test/java/org/openapitools/client/api/FilesApiTest.java +src/test/java/org/openapitools/client/api/GroupsApiTest.java +src/test/java/org/openapitools/client/api/InvitationApiTest.java +src/test/java/org/openapitools/client/api/NotebookApiTest.java +src/test/java/org/openapitools/client/api/NotebooksApiTest.java +src/test/java/org/openapitools/client/api/OrganizationApiTest.java +src/test/java/org/openapitools/client/api/QueryApiTest.java +src/test/java/org/openapitools/client/api/RegisteredTaskGraphsApiTest.java +src/test/java/org/openapitools/client/api/SqlApiTest.java +src/test/java/org/openapitools/client/api/StatsApiTest.java +src/test/java/org/openapitools/client/api/TaskGraphLogsApiTest.java +src/test/java/org/openapitools/client/api/TaskGraphsApiTest.java +src/test/java/org/openapitools/client/api/TasksApiTest.java +src/test/java/org/openapitools/client/api/UdfApiTest.java +src/test/java/org/openapitools/client/api/UserApiTest.java +src/test/java/org/openapitools/client/model/AWSAccessCredentialsTest.java +src/test/java/org/openapitools/client/model/ActivityEventTypeTest.java +src/test/java/org/openapitools/client/model/ArrayActionsTest.java +src/test/java/org/openapitools/client/model/ArrayActivityLogTest.java +src/test/java/org/openapitools/client/model/ArrayBrowserDataTest.java +src/test/java/org/openapitools/client/model/ArrayBrowserSidebarTest.java +src/test/java/org/openapitools/client/model/ArrayConsolidationRequestTest.java +src/test/java/org/openapitools/client/model/ArrayEndTimestampDataTest.java +src/test/java/org/openapitools/client/model/ArrayFavoriteTest.java +src/test/java/org/openapitools/client/model/ArrayFavoritesDataTest.java +src/test/java/org/openapitools/client/model/ArrayInfoTest.java +src/test/java/org/openapitools/client/model/ArrayInfoUpdateTest.java +src/test/java/org/openapitools/client/model/ArrayMetadataEntryTest.java +src/test/java/org/openapitools/client/model/ArrayMetadataTest.java +src/test/java/org/openapitools/client/model/ArraySampleTest.java +src/test/java/org/openapitools/client/model/ArraySchemaTest.java +src/test/java/org/openapitools/client/model/ArraySharingTest.java +src/test/java/org/openapitools/client/model/ArrayTaskBrowserSidebarTest.java +src/test/java/org/openapitools/client/model/ArrayTaskDataTest.java +src/test/java/org/openapitools/client/model/ArrayTaskLogTest.java +src/test/java/org/openapitools/client/model/ArrayTaskStatusTest.java +src/test/java/org/openapitools/client/model/ArrayTaskTest.java +src/test/java/org/openapitools/client/model/ArrayTaskTypeTest.java +src/test/java/org/openapitools/client/model/ArrayTest.java +src/test/java/org/openapitools/client/model/ArrayTypeTest.java +src/test/java/org/openapitools/client/model/ArrayVacuumRequestTest.java +src/test/java/org/openapitools/client/model/AssetBackingTypeTest.java +src/test/java/org/openapitools/client/model/AssetInfoTest.java +src/test/java/org/openapitools/client/model/AssetListResponseTest.java +src/test/java/org/openapitools/client/model/AssetLocationsTest.java +src/test/java/org/openapitools/client/model/AssetOwnershipLevelTest.java +src/test/java/org/openapitools/client/model/AssetTypeTest.java +src/test/java/org/openapitools/client/model/AttributeBufferHeaderTest.java +src/test/java/org/openapitools/client/model/AttributeBufferSizeTest.java +src/test/java/org/openapitools/client/model/AttributeTest.java +src/test/java/org/openapitools/client/model/BackoffTest.java +src/test/java/org/openapitools/client/model/ChangeAssetCredentialsRequestTest.java +src/test/java/org/openapitools/client/model/DatatypeTest.java +src/test/java/org/openapitools/client/model/DimensionCoordinateTest.java +src/test/java/org/openapitools/client/model/DimensionTest.java +src/test/java/org/openapitools/client/model/DimensionTileExtentTest.java +src/test/java/org/openapitools/client/model/DomainArrayTest.java +src/test/java/org/openapitools/client/model/DomainCheckResultTest.java +src/test/java/org/openapitools/client/model/DomainCheckStatusTest.java +src/test/java/org/openapitools/client/model/DomainTest.java +src/test/java/org/openapitools/client/model/DomainVerificationStatusTest.java +src/test/java/org/openapitools/client/model/EnumerationTest.java +src/test/java/org/openapitools/client/model/ErrorTest.java +src/test/java/org/openapitools/client/model/FileCreateTest.java +src/test/java/org/openapitools/client/model/FileCreatedTest.java +src/test/java/org/openapitools/client/model/FileExportTest.java +src/test/java/org/openapitools/client/model/FileExportedTest.java +src/test/java/org/openapitools/client/model/FilePropertyNameTest.java +src/test/java/org/openapitools/client/model/FileTypeTest.java +src/test/java/org/openapitools/client/model/FileUploadedTest.java +src/test/java/org/openapitools/client/model/FilterDataTest.java +src/test/java/org/openapitools/client/model/FilterOptionTest.java +src/test/java/org/openapitools/client/model/FilterPipelineTest.java +src/test/java/org/openapitools/client/model/FilterTest.java +src/test/java/org/openapitools/client/model/FilterTypeTest.java +src/test/java/org/openapitools/client/model/FragmentInfoRequestTest.java +src/test/java/org/openapitools/client/model/FragmentInfoTest.java +src/test/java/org/openapitools/client/model/FragmentMetadataTest.java +src/test/java/org/openapitools/client/model/GenericUDFTest.java +src/test/java/org/openapitools/client/model/GetTiledbStats200ResponseTest.java +src/test/java/org/openapitools/client/model/GroupActionsTest.java +src/test/java/org/openapitools/client/model/GroupBrowserDataTest.java +src/test/java/org/openapitools/client/model/GroupBrowserFilterDataTest.java +src/test/java/org/openapitools/client/model/GroupChangesTest.java +src/test/java/org/openapitools/client/model/GroupContentActivityAssetTest.java +src/test/java/org/openapitools/client/model/GroupContentActivityResponseTest.java +src/test/java/org/openapitools/client/model/GroupContentActivityTest.java +src/test/java/org/openapitools/client/model/GroupContentsFilterDataTest.java +src/test/java/org/openapitools/client/model/GroupContentsTest.java +src/test/java/org/openapitools/client/model/GroupCreateTest.java +src/test/java/org/openapitools/client/model/GroupEntryTest.java +src/test/java/org/openapitools/client/model/GroupInfoTest.java +src/test/java/org/openapitools/client/model/GroupMemberAssetTypeTest.java +src/test/java/org/openapitools/client/model/GroupMemberTest.java +src/test/java/org/openapitools/client/model/GroupMemberTypeTest.java +src/test/java/org/openapitools/client/model/GroupRegisterTest.java +src/test/java/org/openapitools/client/model/GroupSharingRequestTest.java +src/test/java/org/openapitools/client/model/GroupSharingTest.java +src/test/java/org/openapitools/client/model/GroupTypeMetadataKeyTest.java +src/test/java/org/openapitools/client/model/GroupTypeTest.java +src/test/java/org/openapitools/client/model/GroupUpdateTest.java +src/test/java/org/openapitools/client/model/InvitationArrayShareEmailTest.java +src/test/java/org/openapitools/client/model/InvitationDataTest.java +src/test/java/org/openapitools/client/model/InvitationFailedRecipientsTest.java +src/test/java/org/openapitools/client/model/InvitationGroupShareEmailTest.java +src/test/java/org/openapitools/client/model/InvitationOrganizationJoinEmailTest.java +src/test/java/org/openapitools/client/model/InvitationStatusTest.java +src/test/java/org/openapitools/client/model/InvitationTest.java +src/test/java/org/openapitools/client/model/InvitationTypeTest.java +src/test/java/org/openapitools/client/model/LastAccessedArrayTest.java +src/test/java/org/openapitools/client/model/LayoutTest.java +src/test/java/org/openapitools/client/model/LoadArraySchemaRequestTest.java +src/test/java/org/openapitools/client/model/LoadArraySchemaResponseTest.java +src/test/java/org/openapitools/client/model/LoadEnumerationsRequestTest.java +src/test/java/org/openapitools/client/model/LoadEnumerationsResponseTest.java +src/test/java/org/openapitools/client/model/MLModelFavoriteTest.java +src/test/java/org/openapitools/client/model/MLModelFavoritesDataTest.java +src/test/java/org/openapitools/client/model/MaxBufferSizesTest.java +src/test/java/org/openapitools/client/model/MetadataStringifiedEntryTest.java +src/test/java/org/openapitools/client/model/MetadataStringifiedTest.java +src/test/java/org/openapitools/client/model/MultiArrayUDFTest.java +src/test/java/org/openapitools/client/model/NamespaceActionsTest.java +src/test/java/org/openapitools/client/model/NonEmptyDomainTest.java +src/test/java/org/openapitools/client/model/NotebookCopiedTest.java +src/test/java/org/openapitools/client/model/NotebookCopyTest.java +src/test/java/org/openapitools/client/model/NotebookFavoriteTest.java +src/test/java/org/openapitools/client/model/NotebookFavoritesDataTest.java +src/test/java/org/openapitools/client/model/NotebookStatusTest.java +src/test/java/org/openapitools/client/model/OrganizationRolesTest.java +src/test/java/org/openapitools/client/model/OrganizationTest.java +src/test/java/org/openapitools/client/model/OrganizationUpdateTest.java +src/test/java/org/openapitools/client/model/OrganizationUserTest.java +src/test/java/org/openapitools/client/model/PaginationMetadataTest.java +src/test/java/org/openapitools/client/model/PodStatusTest.java +src/test/java/org/openapitools/client/model/PricingAggregateUsageTest.java +src/test/java/org/openapitools/client/model/PricingCurrencyTest.java +src/test/java/org/openapitools/client/model/PricingIntervalTest.java +src/test/java/org/openapitools/client/model/PricingTest.java +src/test/java/org/openapitools/client/model/PricingTypeTest.java +src/test/java/org/openapitools/client/model/PricingUnitLabelTest.java +src/test/java/org/openapitools/client/model/PublicShareFilterTest.java +src/test/java/org/openapitools/client/model/QueryJsonTest.java +src/test/java/org/openapitools/client/model/QueryRangesTest.java +src/test/java/org/openapitools/client/model/QueryReaderTest.java +src/test/java/org/openapitools/client/model/QueryTest.java +src/test/java/org/openapitools/client/model/QuerystatusTest.java +src/test/java/org/openapitools/client/model/QuerytypeTest.java +src/test/java/org/openapitools/client/model/ReadStateTest.java +src/test/java/org/openapitools/client/model/RegisteredTaskGraphTest.java +src/test/java/org/openapitools/client/model/ResetUserPasswordRequestTest.java +src/test/java/org/openapitools/client/model/ResultFormatTest.java +src/test/java/org/openapitools/client/model/RetryPolicyTest.java +src/test/java/org/openapitools/client/model/RetryStrategyTest.java +src/test/java/org/openapitools/client/model/SQLParametersTest.java +src/test/java/org/openapitools/client/model/SSODomainConfigResponseTest.java +src/test/java/org/openapitools/client/model/SSODomainConfigTest.java +src/test/java/org/openapitools/client/model/SSODomainSetupTest.java +src/test/java/org/openapitools/client/model/SSOProviderTest.java +src/test/java/org/openapitools/client/model/SharePaymentRequestTest.java +src/test/java/org/openapitools/client/model/SingleFragmentInfoTest.java +src/test/java/org/openapitools/client/model/StorageLocationTest.java +src/test/java/org/openapitools/client/model/SubarrayPartitionerCurrentTest.java +src/test/java/org/openapitools/client/model/SubarrayPartitionerStateTest.java +src/test/java/org/openapitools/client/model/SubarrayPartitionerTest.java +src/test/java/org/openapitools/client/model/SubarrayRangesTest.java +src/test/java/org/openapitools/client/model/SubarrayTest.java +src/test/java/org/openapitools/client/model/SubscriptionTest.java +src/test/java/org/openapitools/client/model/TGArrayNodeDataTest.java +src/test/java/org/openapitools/client/model/TGInputNodeDataTest.java +src/test/java/org/openapitools/client/model/TGQueryRangesTest.java +src/test/java/org/openapitools/client/model/TGSQLNodeDataTest.java +src/test/java/org/openapitools/client/model/TGUDFArgumentTest.java +src/test/java/org/openapitools/client/model/TGUDFEnvironmentResourcesTest.java +src/test/java/org/openapitools/client/model/TGUDFEnvironmentTest.java +src/test/java/org/openapitools/client/model/TGUDFNodeDataTest.java +src/test/java/org/openapitools/client/model/TGUDFStorageTest.java +src/test/java/org/openapitools/client/model/TaskGraphActionsTest.java +src/test/java/org/openapitools/client/model/TaskGraphClientNodeStatusTest.java +src/test/java/org/openapitools/client/model/TaskGraphLogRunLocationTest.java +src/test/java/org/openapitools/client/model/TaskGraphLogStatusTest.java +src/test/java/org/openapitools/client/model/TaskGraphLogTest.java +src/test/java/org/openapitools/client/model/TaskGraphLogsDataTest.java +src/test/java/org/openapitools/client/model/TaskGraphNodeMetadataTest.java +src/test/java/org/openapitools/client/model/TaskGraphNodeTest.java +src/test/java/org/openapitools/client/model/TaskGraphSharingTest.java +src/test/java/org/openapitools/client/model/TaskGraphTest.java +src/test/java/org/openapitools/client/model/TaskGraphTypeTest.java +src/test/java/org/openapitools/client/model/TaskGraphsTest.java +src/test/java/org/openapitools/client/model/TileDBConfigEntriesInnerTest.java +src/test/java/org/openapitools/client/model/TileDBConfigTest.java +src/test/java/org/openapitools/client/model/TokenRequestTest.java +src/test/java/org/openapitools/client/model/TokenScopeTest.java +src/test/java/org/openapitools/client/model/TokenTest.java +src/test/java/org/openapitools/client/model/UDFActionsTest.java +src/test/java/org/openapitools/client/model/UDFArrayDetailsTest.java +src/test/java/org/openapitools/client/model/UDFCopiedTest.java +src/test/java/org/openapitools/client/model/UDFCopyTest.java +src/test/java/org/openapitools/client/model/UDFFavoriteTest.java +src/test/java/org/openapitools/client/model/UDFFavoritesDataTest.java +src/test/java/org/openapitools/client/model/UDFImageTest.java +src/test/java/org/openapitools/client/model/UDFImageVersionTest.java +src/test/java/org/openapitools/client/model/UDFInfoTest.java +src/test/java/org/openapitools/client/model/UDFInfoUpdateTest.java +src/test/java/org/openapitools/client/model/UDFLanguageTest.java +src/test/java/org/openapitools/client/model/UDFSharingTest.java +src/test/java/org/openapitools/client/model/UDFSubarrayRangeTest.java +src/test/java/org/openapitools/client/model/UDFSubarrayTest.java +src/test/java/org/openapitools/client/model/UDFTypeTest.java +src/test/java/org/openapitools/client/model/UserTest.java +src/test/java/org/openapitools/client/model/WriterTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 1985849..6d54bbd 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.7.0 +6.0.1 \ No newline at end of file diff --git a/docs/ActivityEventType.md b/docs/ActivityEventType.md index d8562a3..2890d0e 100644 --- a/docs/ActivityEventType.md +++ b/docs/ActivityEventType.md @@ -37,5 +37,7 @@ * `READ_ENUMERATIONS` (value: `"read_enumerations"`) +* `NEXTFLOW` (value: `"nextflow"`) + diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index dad6d50..65a299f 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -4,95 +4,97 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**arrayActivityLog**](ArrayApi.md#arrayActivityLog) | **GET** /arrays/{namespace}/{array}/activity | | +| [**arrayActivityLog**](ArrayApi.md#arrayActivityLog) | **GET** /arrays/{workspace}/{teamspace}/{array}/activity | | | [**arraysBrowserOwnedGet**](ArrayApi.md#arraysBrowserOwnedGet) | **GET** /arrays/browser/owned | | | [**arraysBrowserOwnedSidebarGet**](ArrayApi.md#arraysBrowserOwnedSidebarGet) | **GET** /arrays/browser/owned/sidebar | | | [**arraysBrowserPublicGet**](ArrayApi.md#arraysBrowserPublicGet) | **GET** /arrays/browser/public | | | [**arraysBrowserPublicSidebarGet**](ArrayApi.md#arraysBrowserPublicSidebarGet) | **GET** /arrays/browser/public/sidebar | | | [**arraysBrowserSharedGet**](ArrayApi.md#arraysBrowserSharedGet) | **GET** /arrays/browser/shared | | | [**arraysBrowserSharedSidebarGet**](ArrayApi.md#arraysBrowserSharedSidebarGet) | **GET** /arrays/browser/shared/sidebar | | -| [**arraysNamespaceArrayEndTimestampsGet**](ArrayApi.md#arraysNamespaceArrayEndTimestampsGet) | **GET** /arrays/{namespace}/{array}/end_timestamps | | -| [**consolidateArray**](ArrayApi.md#consolidateArray) | **POST** /arrays/{namespace}/{array}/consolidate | | -| [**createArray**](ArrayApi.md#createArray) | **POST** /arrays/{namespace}/{array} | | -| [**deleteArray**](ArrayApi.md#deleteArray) | **DELETE** /arrays/{namespace}/{array} | | -| [**deregisterArray**](ArrayApi.md#deregisterArray) | **DELETE** /arrays/{namespace}/{array}/deregister | | -| [**fragmentInfo**](ArrayApi.md#fragmentInfo) | **POST** /arrays/{namespace}/{array}/fragment_info | | -| [**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | | +| [**arraysWorkspaceTeamspaceArrayEndTimestampsGet**](ArrayApi.md#arraysWorkspaceTeamspaceArrayEndTimestampsGet) | **GET** /arrays/{workspace}/{teamspace}/{array}/end_timestamps | | +| [**consolidateArray**](ArrayApi.md#consolidateArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/consolidate | | +| [**createArray**](ArrayApi.md#createArray) | **POST** /arrays/{workspace}/{teamspace}/{array} | | +| [**deleteArray**](ArrayApi.md#deleteArray) | **DELETE** /arrays/{workspace}/{teamspace}/{array} | | +| [**deregisterArray**](ArrayApi.md#deregisterArray) | **DELETE** /arrays/{workspace}/{teamspace}/{array}/deregister | | +| [**fragmentInfo**](ArrayApi.md#fragmentInfo) | **POST** /arrays/{workspace}/{teamspace}/{array}/fragment_info | | +| [**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{workspace}/{teamspace}/{array}/activity/{id} | | | [**getAllArrayMetadata**](ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | | -| [**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | | -| [**getArrayMaxBufferSizes**](ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{namespace}/{array}/max_buffer_sizes | | -| [**getArrayMetaDataJson**](ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{namespace}/{array}/metadata_json | | -| [**getArrayMetadata**](ArrayApi.md#getArrayMetadata) | **GET** /arrays/{namespace}/{array}/metadata | | -| [**getArrayMetadataCapnp**](ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{namespace}/{array}/array_metadata | | -| [**getArrayNonEmptyDomain**](ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{namespace}/{array}/non_empty_domain | | -| [**getArrayNonEmptyDomainJson**](ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{namespace}/{array}/non_empty_domain_json | | -| [**getArraySampleData**](ArrayApi.md#getArraySampleData) | **GET** /arrays/{namespace}/{array}/sample | | -| [**getArraySharingPolicies**](ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{namespace}/{array}/share | | -| [**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | | -| [**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | | +| [**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{workspace}/{teamspace}/{array} | | +| [**getArrayMaxBufferSizes**](ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{workspace}/{teamspace}/{array}/max_buffer_sizes | | +| [**getArrayMetaDataJson**](ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{workspace}/{teamspace}/{array}/metadata_json | | +| [**getArrayMetadata**](ArrayApi.md#getArrayMetadata) | **GET** /arrays/{workspace}/{teamspace}/{array}/metadata | | +| [**getArrayMetadataCapnp**](ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{workspace}/{teamspace}/{array}/array_metadata | | +| [**getArrayNonEmptyDomain**](ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{workspace}/{teamspace}/{array}/non_empty_domain | | +| [**getArrayNonEmptyDomainJson**](ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{workspace}/{teamspace}/{array}/non_empty_domain_json | | +| [**getArraySampleData**](ArrayApi.md#getArraySampleData) | **GET** /arrays/{workspace}/{teamspace}/{array}/sample | | +| [**getArraySharingPolicies**](ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{workspace}/{teamspace}/{array}/share | | +| [**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{workspace}/{teamspace} | | +| [**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{workspace}/{teamspace}/{array}/fragment_end_timestamp | | | [**getLastAccessedArrays**](ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | | -| [**loadArraySchema**](ArrayApi.md#loadArraySchema) | **POST** /arrays/{namespace}/{array}/schema | | -| [**loadEnumerations**](ArrayApi.md#loadEnumerations) | **POST** /arrays/{namespace}/{array}/enumerations | | -| [**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | | -| [**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | | -| [**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | | -| [**updateArrayMetadataCapnp**](ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{namespace}/{array}/array_metadata | | -| [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | | +| [**loadArraySchema**](ArrayApi.md#loadArraySchema) | **POST** /arrays/{workspace}/{teamspace}/{array}/schema | | +| [**loadEnumerations**](ArrayApi.md#loadEnumerations) | **POST** /arrays/{workspace}/{teamspace}/{array}/enumerations | | +| [**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/register | | +| [**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{workspace}/{teamspace}/{array}/share | | +| [**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{workspace}/{teamspace}/{array}/metadata | | +| [**updateArrayMetadataCapnp**](ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{workspace}/{teamspace}/{array}/array_metadata | | +| [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/vacuum | | - + # **arrayActivityLog** -> List<ArrayActivityLog> arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId) +> List<ArrayActivityLog> arrayActivityLog(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer start = 56; // Integer | Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) - Integer end = 56; // Integer | End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) - String eventTypes = "eventTypes_example"; // String | Refer to ActivityEventType for possible values - String taskId = "taskId_example"; // String | Array task ID To filter activity to - Boolean hasTaskId = true; // Boolean | Excludes activity log results that do not contain an array task UUID - try { - List result = apiInstance.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arrayActivityLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -100,7 +102,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **start** | **Integer**| Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) | [optional] | | **end** | **Integer**| End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) | [optional] | @@ -114,7 +117,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -128,7 +131,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) @@ -137,55 +140,56 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -212,7 +216,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -226,7 +230,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserOwnedSidebarGet** > ArrayBrowserSidebar arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty) @@ -235,46 +239,47 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -292,7 +297,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -306,7 +311,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) @@ -315,55 +320,56 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -390,7 +396,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -404,7 +410,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserPublicSidebarGet** > ArrayBrowserSidebar arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty) @@ -413,46 +419,47 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -470,7 +477,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -484,7 +491,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) @@ -493,56 +500,57 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -570,7 +578,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -584,7 +592,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserSharedSidebarGet** > ArrayBrowserSidebar arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo) @@ -593,47 +601,48 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -652,7 +661,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -666,56 +675,58 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - -# **arraysNamespaceArrayEndTimestampsGet** -> ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) + +# **arraysWorkspaceTeamspaceArrayEndTimestampsGet** +> ArrayEndTimestampData arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysNamespaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -723,7 +734,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -734,7 +746,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -748,54 +760,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **consolidateArray** -> consolidateArray(namespace, array, consolidateRequest) +> consolidateArray(workspace, teamspace, array, consolidateRequest) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayConsolidationRequest consolidateRequest = new ArrayConsolidationRequest(); // ArrayConsolidationRequest | Consolidate Request - try { - apiInstance.consolidateArray(namespace, array, consolidateRequest); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#consolidateArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -803,7 +817,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **consolidateRequest** | [**ArrayConsolidationRequest**](ArrayConsolidationRequest.md)| Consolidate Request | | @@ -813,7 +828,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -827,56 +842,58 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createArray** -> createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) +> createArray(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArraySchema arraySchema = new ArraySchema(); // ArraySchema | ArraySchema being created - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - try { - apiInstance.createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#createArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -884,7 +901,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **arraySchema** | [**ArraySchema**](ArraySchema.md)| ArraySchema being created | | @@ -896,7 +914,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -910,54 +928,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteArray** -> deleteArray(namespace, array, contentType) +> deleteArray(workspace, teamspace, array, contentType) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - try { - apiInstance.deleteArray(namespace, array, contentType); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deleteArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -965,7 +985,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -975,7 +996,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -989,53 +1010,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deregisterArray** -> deregisterArray(namespace, array) +> deregisterArray(workspace, teamspace, array) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - apiInstance.deregisterArray(namespace, array); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deregisterArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1043,7 +1066,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1052,7 +1076,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1066,56 +1090,58 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **fragmentInfo** -> FragmentInfo fragmentInfo(namespace, array, contentType, fragmentInfoRequest) +> FragmentInfo fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - FragmentInfoRequest fragmentInfoRequest = new FragmentInfoRequest(); // FragmentInfoRequest | ArraySchema being created - try { - FragmentInfo result = apiInstance.fragmentInfo(namespace, array, contentType, fragmentInfoRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#fragmentInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1123,7 +1149,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **fragmentInfoRequest** | [**FragmentInfoRequest**](FragmentInfoRequest.md)| ArraySchema being created | | @@ -1134,7 +1161,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1147,55 +1174,57 @@ public class Example { | **200** | fragment info | - | | **0** | error response | - | - + # **getActivityLogById** -> ArrayActivityLog getActivityLogById(namespace, array, id) +> ArrayActivityLog getActivityLogById(workspace, teamspace, array, id) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String id = "id_example"; // String | ID of the activity - try { - ArrayActivityLog result = apiInstance.getActivityLogById(namespace, array, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getActivityLogById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1203,7 +1232,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **id** | **String**| ID of the activity | | @@ -1213,7 +1243,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1227,7 +1257,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getAllArrayMetadata** > List<ArrayInfo> getAllArrayMetadata(publicShare) @@ -1236,44 +1266,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String publicShare = "publicShare_example"; // String | Public share values can be one of exclude, only - try { - List result = apiInstance.getAllArrayMetadata(publicShare); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getAllArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String publicShare = "publicShare_example"; // String | Public share values can be one of exclude, only + try { + List result = apiInstance.getAllArrayMetadata(publicShare); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getAllArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1289,7 +1320,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1303,55 +1334,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArray** -> ArraySchema getArray(namespace, array, contentType) +> ArraySchema getArray(workspace, teamspace, array, contentType) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - try { - ArraySchema result = apiInstance.getArray(namespace, array, contentType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1359,7 +1392,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -1369,7 +1403,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1383,57 +1417,59 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMaxBufferSizes** -> MaxBufferSizes getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer) +> MaxBufferSizes getArrayMaxBufferSizes(workspace, teamspace, array, subarray, contentType, xPayer) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String subarray = "subarray_example"; // String | CSV string of subarray to get max buffer sizes for - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - MaxBufferSizes result = apiInstance.getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMaxBufferSizes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1441,7 +1477,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **subarray** | **String**| CSV string of subarray to get max buffer sizes for | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -1453,7 +1490,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1467,56 +1504,58 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetaDataJson** -> Map<String, Object> getArrayMetaDataJson(namespace, array, length, endTimestamp) +> 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer length = 56; // Integer | (optional) limit character length of returned values - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp - try { - Map result = apiInstance.getArrayMetaDataJson(namespace, array, length, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetaDataJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -1524,18 +1563,19 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **length** | **Integer**| (optional) limit character length of returned values | [optional] | | **endTimestamp** | **Integer**| Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp | [optional] | ### Return type -**Map<String, Object>** +**Object** ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1549,54 +1589,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetadata** -> ArrayInfo getArrayMetadata(namespace, array) +> ArrayInfo getArrayMetadata(workspace, teamspace, array) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - ArrayInfo result = apiInstance.getArrayMetadata(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1604,7 +1646,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1613,7 +1656,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1627,54 +1670,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetadataCapnp** -> ArrayMetadata getArrayMetadataCapnp(namespace, array) +> ArrayMetadata getArrayMetadataCapnp(workspace, teamspace, array) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - ArrayMetadata result = apiInstance.getArrayMetadataCapnp(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetadataCapnp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1682,7 +1727,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1691,7 +1737,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1705,56 +1751,58 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayNonEmptyDomain** -> NonEmptyDomain getArrayNonEmptyDomain(namespace, array, contentType, xPayer) +> NonEmptyDomain getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - NonEmptyDomain result = apiInstance.getArrayNonEmptyDomain(namespace, array, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1762,7 +1810,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | @@ -1773,7 +1822,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1787,54 +1836,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayNonEmptyDomainJson** -> Map<String, Object> getArrayNonEmptyDomainJson(namespace, array) +> 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - Map result = apiInstance.getArrayNonEmptyDomainJson(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomainJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -1842,16 +1893,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type -**Map<String, Object>** +**Object** ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1865,55 +1917,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraySampleData** -> ArraySample getArraySampleData(namespace, array, samples) +> ArraySample getArraySampleData(workspace, teamspace, array, samples) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - BigDecimal samples = new BigDecimal("5.0"); // BigDecimal | Number of sample results to return - try { - ArraySample result = apiInstance.getArraySampleData(namespace, array, samples); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraySampleData"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -1921,7 +1975,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **samples** | **BigDecimal**| Number of sample results to return | [optional] [default to 5.0] | @@ -1931,7 +1986,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1945,54 +2000,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraySharingPolicies** -> List<ArraySharing> getArraySharingPolicies(namespace, array) +> List<ArraySharing> getArraySharingPolicies(workspace, teamspace, array) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - List result = apiInstance.getArraySharingPolicies(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraySharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2000,7 +2057,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -2009,7 +2067,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2024,54 +2082,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraysInNamespace** -> List<ArrayInfo> getArraysInNamespace(namespace, withMetadata) +> List<ArrayInfo> getArraysInNamespace(workspace, teamspace, withMetadata) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - Boolean withMetadata = true; // Boolean | include the metadata of the arrays - try { - List result = apiInstance.getArraysInNamespace(namespace, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -2079,7 +2139,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **withMetadata** | **Boolean**| include the metadata of the arrays | [optional] | ### Return type @@ -2088,7 +2149,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2102,55 +2163,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getFragmentEndTimestamp** -> Integer getFragmentEndTimestamp(namespace, array, endTimestamp) +> Integer getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch - try { - Integer result = apiInstance.getFragmentEndTimestamp(namespace, array, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getFragmentEndTimestamp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2158,7 +2221,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **endTimestamp** | **Integer**| Milliseconds since Unix epoch | [optional] | @@ -2168,7 +2232,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2182,50 +2246,51 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - try { - List result = apiInstance.getLastAccessedArrays(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getLastAccessedArrays"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + try { + List result = apiInstance.getLastAccessedArrays(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getLastAccessedArrays"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -2238,7 +2303,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2252,55 +2317,57 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **loadArraySchema** -> LoadArraySchemaResponse loadArraySchema(namespace, array, loadArraySchemaRequest) +> LoadArraySchemaResponse loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest) request to get the array schema ### Example + ```java // Import classes: -import io.tiledb.cloud.rest_api.ApiClient; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - LoadArraySchemaRequest loadArraySchemaRequest = new LoadArraySchemaRequest(); // LoadArraySchemaRequest | Load Array Schema Request - try { - LoadArraySchemaResponse result = apiInstance.loadArraySchema(namespace, array, loadArraySchemaRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#loadArraySchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -2308,7 +2375,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **loadArraySchemaRequest** | [**LoadArraySchemaRequest**](LoadArraySchemaRequest.md)| Load Array Schema Request | | @@ -2318,7 +2386,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2333,55 +2401,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **loadEnumerations** -> LoadEnumerationsResponse loadEnumerations(namespace, array, loadEnumerationsRequest) +> LoadEnumerationsResponse loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest) request to get the enumerations of the arrays' attributes ### Example + ```java // Import classes: -import io.tiledb.cloud.rest_api.ApiClient; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - LoadEnumerationsRequest loadEnumerationsRequest = new LoadEnumerationsRequest(); // LoadEnumerationsRequest | Load Enumerations Request - try { - LoadEnumerationsResponse result = apiInstance.loadEnumerations(namespace, array, loadEnumerationsRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#loadEnumerations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -2389,7 +2459,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **loadEnumerationsRequest** | [**LoadEnumerationsRequest**](LoadEnumerationsRequest.md)| Load Enumerations Request | | @@ -2399,7 +2470,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2414,55 +2485,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerArray** -> ArrayInfo registerArray(namespace, array, arrayMetadata) +> ArrayInfo registerArray(workspace, teamspace, array, arrayMetadata) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array - try { - ArrayInfo result = apiInstance.registerArray(namespace, array, arrayMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#registerArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2470,7 +2543,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| metadata associated with array | | @@ -2480,7 +2554,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2494,54 +2568,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareArray** -> shareArray(namespace, array, arraySharing) +> shareArray(workspace, teamspace, array, arraySharing) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArraySharing arraySharing = new ArraySharing(); // ArraySharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. - try { - apiInstance.shareArray(namespace, array, arraySharing); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#shareArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2549,7 +2625,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arraySharing** | [**ArraySharing**](ArraySharing.md)| Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. | | @@ -2559,7 +2636,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2574,54 +2651,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateArrayMetadata** -> updateArrayMetadata(namespace, array, arrayMetadata) +> updateArrayMetadata(workspace, teamspace, array, arrayMetadata) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | array metadata to update - try { - apiInstance.updateArrayMetadata(namespace, array, arrayMetadata); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#updateArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2629,7 +2708,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| array metadata to update | | @@ -2639,7 +2719,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2653,54 +2733,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateArrayMetadataCapnp** -> updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries) +> updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayMetadata arrayMetadataEntries = new ArrayMetadata(); // ArrayMetadata | List of metadata entries - try { - apiInstance.updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#updateArrayMetadataCapnp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2708,7 +2790,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arrayMetadataEntries** | [**ArrayMetadata**](ArrayMetadata.md)| List of metadata entries | | @@ -2718,7 +2801,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -2732,54 +2815,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **vacuumArray** -> vacuumArray(namespace, array, vaccumRequest) +> vacuumArray(workspace, teamspace, array, vaccumRequest) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayVacuumRequest vaccumRequest = new ArrayVacuumRequest(); // ArrayVacuumRequest | Vaccum Request - try { - apiInstance.vacuumArray(namespace, array, vaccumRequest); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#vacuumArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String 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(); + } } - } } ``` @@ -2787,7 +2872,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **vaccumRequest** | [**ArrayVacuumRequest**](ArrayVacuumRequest.md)| Vaccum Request | | @@ -2797,7 +2883,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/ArrayInfo.md b/docs/ArrayInfo.md index 9fae9b7..56c4150 100644 --- a/docs/ArrayInfo.md +++ b/docs/ArrayInfo.md @@ -9,6 +9,7 @@ metadata of an array | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **String** | unique ID of registered array | [optional] | +|**assetId** | **String** | The asset id of the created array | [optional] | |**fileType** | **FileType** | | [optional] | |**fileProperties** | **Map<String, String>** | map of file properties created for this array | [optional] | |**uri** | **String** | uri of array | [optional] | diff --git a/docs/ArrayTasksApi.md b/docs/ArrayTasksApi.md index c2d225f..70b5f97 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -7,52 +7,53 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.ArrayTasksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.ArrayTasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient); - Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago - Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now - try { - ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient); + Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now + try { + ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -69,7 +70,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/AssetsApi.md b/docs/AssetsApi.md index f7ddd98..c3336ae 100644 --- a/docs/AssetsApi.md +++ b/docs/AssetsApi.md @@ -4,65 +4,148 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**listAssets**](AssetsApi.md#listAssets) | **GET** /assets/{namespace} | | +| [**changeAssetCredentials**](AssetsApi.md#changeAssetCredentials) | **POST** /assets/{workspace}/{teamspace}/change_credentials | | +| [**listAssets**](AssetsApi.md#listAssets) | **GET** /assets/{workspace}/{teamspace} | | | [**listPublicAssets**](AssetsApi.md#listPublicAssets) | **GET** /public_assets | | - + +# **changeAssetCredentials** +> changeAssetCredentials(workspace, teamspace, changeCredentialsRequest) + + + +Changes the access credentials to the given assets + +### Example + +```java +// Import classes: + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | +| **changeCredentialsRequest** | [**ChangeAssetCredentialsRequest**](ChangeAssetCredentialsRequest.md)| aws access credentials to store for a namespace | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Credentials changed successfully | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + # **listAssets** -> AssetListResponse listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand) +> AssetListResponse listAssets(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand) List assets in a namespace ### Example + ```java // Import classes: -import io.tiledb.cloud.rest_api.ApiClient; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.AssetsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.AssetsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - AssetsApi apiInstance = new AssetsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String assetType = "assetType_example"; // String | asset_type to filter to - String ownershipLevel = "ownershipLevel_example"; // String | ownership_level to filter to (owned, shared) - String depth = "depth_example"; // String | depth of assets to be returned - String search = "search_example"; // String | search string - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. - String expand = "expand_example"; // String | expansion option for the AssetInfo object to be added to the response - try { - AssetListResponse result = apiInstance.listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AssetsApi#listAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -70,7 +153,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **assetType** | **String**| asset_type to filter to | [optional] | | **ownershipLevel** | **String**| ownership_level to filter to (owned, shared) | [optional] | | **depth** | **String**| depth of assets to be returned | [optional] | @@ -86,7 +170,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -100,7 +184,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listPublicAssets** > AssetListResponse listPublicAssets(assetType, depth, search, page, perPage, orderBy) @@ -109,49 +193,50 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.AssetsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.AssetsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - AssetsApi apiInstance = new AssetsApi(defaultClient); - String assetType = "assetType_example"; // String | asset_type to filter to - String depth = "depth_example"; // String | depth of assets to be returned - String search = "search_example"; // String | search string - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. - try { - AssetListResponse result = apiInstance.listPublicAssets(assetType, depth, search, page, perPage, orderBy); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AssetsApi#listPublicAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -172,7 +257,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index 95fbd64..a494c5d 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -4,18 +4,18 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addArrayFavorite**](FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{namespace}/{name} | | -| [**addMLModelFavorite**](FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{namespace}/{name} | | -| [**addNotebookFavorite**](FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{namespace}/{name} | | -| [**addUDFFavorite**](FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{namespace}/{name} | | -| [**deleteArrayFavorite**](FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{namespace}/{name} | | -| [**deleteMLModelFavorite**](FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{namespace}/{name} | | -| [**deleteNotebookFavorite**](FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{namespace}/{name} | | -| [**deleteUDFFavorite**](FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{namespace}/{name} | | -| [**getArrayFavorite**](FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{namespace}/{name} | | -| [**getMLModelFavorite**](FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{namespace}/{name} | | -| [**getNotebookFavorite**](FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{namespace}/{name} | | -| [**getUDFFavorite**](FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{namespace}/{name} | | +| [**addArrayFavorite**](FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{workspace}/{teamspace}/{name} | | +| [**addMLModelFavorite**](FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{workspace}/{teamspace}/{name} | | +| [**addNotebookFavorite**](FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{workspace}/{teamspace}/{name} | | +| [**addUDFFavorite**](FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{workspace}/{name} | | +| [**deleteArrayFavorite**](FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{workspace}/{teamspace}/{name} | | +| [**deleteMLModelFavorite**](FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{workspace}/{teamspace}/{name} | | +| [**deleteNotebookFavorite**](FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{workspace}/{teamspace}/{name} | | +| [**deleteUDFFavorite**](FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{workspace}/{name} | | +| [**getArrayFavorite**](FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{workspace}/{teamspace}/{name} | | +| [**getMLModelFavorite**](FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{workspace}/{teamspace}/{name} | | +| [**getNotebookFavorite**](FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{workspace}/{teamspace}/{name} | | +| [**getUDFFavorite**](FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{workspace}/{name} | | | [**listArrayFavorites**](FavoritesApi.md#listArrayFavorites) | **GET** /arrays/favorites | | | [**listArrayFavoritesUUIDs**](FavoritesApi.md#listArrayFavoritesUUIDs) | **GET** /arrays/favorites/uuids | | | [**listMLModelFavorites**](FavoritesApi.md#listMLModelFavorites) | **GET** /ml_models/favorites | | @@ -26,53 +26,55 @@ All URIs are relative to */v1* | [**listUDFFavoritesUUIDs**](FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | | - + # **addArrayFavorite** -> addArrayFavorite(namespace, name) +> addArrayFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array - String name = "name_example"; // String | The name of the array - try { - apiInstance.addArrayFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -80,7 +82,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the array | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the array | | ### Return type @@ -89,7 +92,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -103,53 +106,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addMLModelFavorite** -> addMLModelFavorite(namespace, name) +> addMLModelFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model - String name = "name_example"; // String | The name of the ML model - try { - apiInstance.addMLModelFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -157,7 +162,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the ML model | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the ML model | | ### Return type @@ -166,7 +172,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -180,53 +186,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addNotebookFavorite** -> addNotebookFavorite(namespace, name) +> addNotebookFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String name = "name_example"; // String | The name of the notebook - try { - apiInstance.addNotebookFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -234,7 +242,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the notebook | | ### Return type @@ -243,7 +252,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -257,53 +266,54 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUDFFavorite** -> addUDFFavorite(namespace, name) +> addUDFFavorite(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF - String name = "name_example"; // String | The name of the UDF - try { - apiInstance.addUDFFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -311,7 +321,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the UDF | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the UDF | | ### Return type @@ -320,7 +330,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -334,53 +344,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteArrayFavorite** -> deleteArrayFavorite(namespace, name) +> deleteArrayFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array - String name = "name_example"; // String | The name of the array - try { - apiInstance.deleteArrayFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -388,7 +400,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the array | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the array | | ### Return type @@ -397,7 +410,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -411,53 +424,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteMLModelFavorite** -> deleteMLModelFavorite(namespace, name) +> deleteMLModelFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model - String name = "name_example"; // String | The name of the ML model - try { - apiInstance.deleteMLModelFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -465,7 +480,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the ML model | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the ML model | | ### Return type @@ -474,7 +490,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -488,53 +504,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteNotebookFavorite** -> deleteNotebookFavorite(namespace, name) +> deleteNotebookFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String name = "name_example"; // String | The name of the notebook - try { - apiInstance.deleteNotebookFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -542,7 +560,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the notebook | | ### Return type @@ -551,7 +570,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -565,53 +584,54 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUDFFavorite** -> deleteUDFFavorite(namespace, name) +> deleteUDFFavorite(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF - String name = "name_example"; // String | The name of the UDF - try { - apiInstance.deleteUDFFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -619,7 +639,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the UDF | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the UDF | | ### Return type @@ -628,7 +648,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -642,54 +662,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayFavorite** -> ArrayFavorite getArrayFavorite(namespace, name) +> ArrayFavorite getArrayFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array - String name = "name_example"; // String | The name of the array - try { - ArrayFavorite result = apiInstance.getArrayFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -697,7 +719,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the array | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the array | | ### Return type @@ -706,7 +729,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -720,54 +743,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getMLModelFavorite** -> MLModelFavorite getMLModelFavorite(namespace, name) +> MLModelFavorite getMLModelFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model - String name = "name_example"; // String | The name of the ML model - try { - MLModelFavorite result = apiInstance.getMLModelFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -775,7 +800,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the ML model | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the ML model | | ### Return type @@ -784,7 +810,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -798,54 +824,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getNotebookFavorite** -> NotebookFavorite getNotebookFavorite(namespace, name) +> NotebookFavorite getNotebookFavorite(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String name = "name_example"; // String | The name of the notebook - try { - NotebookFavorite result = apiInstance.getNotebookFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -853,7 +881,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the notebook | | ### Return type @@ -862,7 +891,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -876,54 +905,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFFavorite** -> UDFFavorite getUDFFavorite(namespace, name) +> UDFFavorite getUDFFavorite(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF - String name = "name_example"; // String | The name of the UDF - try { - UDFFavorite result = apiInstance.getUDFFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String 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(); + } } - } } ``` @@ -931,7 +961,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the UDF | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the UDF | | ### Return type @@ -940,7 +970,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -954,7 +984,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listArrayFavorites** > ArrayFavoritesData listArrayFavorites(page, perPage) @@ -963,45 +993,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayFavoritesData result = apiInstance.listArrayFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listArrayFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayFavoritesData result = apiInstance.listArrayFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listArrayFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1018,7 +1049,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1032,7 +1063,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listArrayFavoritesUUIDs** > List<ArrayFavorite> listArrayFavoritesUUIDs() @@ -1041,43 +1072,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listArrayFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listArrayFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listArrayFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listArrayFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1090,7 +1122,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1104,7 +1136,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listMLModelFavorites** > MLModelFavoritesData listMLModelFavorites(page, perPage) @@ -1113,45 +1145,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - MLModelFavoritesData result = apiInstance.listMLModelFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listMLModelFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + MLModelFavoritesData result = apiInstance.listMLModelFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listMLModelFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1168,7 +1201,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1182,7 +1215,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listMLModelFavoritesUUIDs** > List<MLModelFavorite> listMLModelFavoritesUUIDs() @@ -1191,43 +1224,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listMLModelFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listMLModelFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listMLModelFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listMLModelFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1240,7 +1274,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1254,7 +1288,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listNotebookFavorites** > NotebookFavoritesData listNotebookFavorites(isDashboard, page, perPage) @@ -1263,46 +1297,47 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Boolean isDashboard = true; // Boolean | return only dashboards - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - NotebookFavoritesData result = apiInstance.listNotebookFavorites(isDashboard, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listNotebookFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Boolean isDashboard = true; // Boolean | return only dashboards + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + NotebookFavoritesData result = apiInstance.listNotebookFavorites(isDashboard, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listNotebookFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1320,7 +1355,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1334,7 +1369,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listNotebookFavoritesUUIDs** > List<NotebookFavorite> listNotebookFavoritesUUIDs() @@ -1343,43 +1378,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listNotebookFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listNotebookFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listNotebookFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listNotebookFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1392,7 +1428,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1406,7 +1442,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listUDFFavorites** > UDFFavoritesData listUDFFavorites(page, perPage) @@ -1415,45 +1451,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - UDFFavoritesData result = apiInstance.listUDFFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listUDFFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + UDFFavoritesData result = apiInstance.listUDFFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listUDFFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1470,7 +1507,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1484,7 +1521,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listUDFFavoritesUUIDs** > List<UDFFavorite> listUDFFavoritesUUIDs() @@ -1493,43 +1530,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listUDFFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listUDFFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listUDFFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listUDFFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1542,7 +1580,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/FileUploaded.md b/docs/FileUploaded.md index 43308c9..3993003 100644 --- a/docs/FileUploaded.md +++ b/docs/FileUploaded.md @@ -10,6 +10,7 @@ Uploaded file name and information |------------ | ------------- | ------------- | -------------| |**outputUri** | **String** | output location of the TileDB File | [optional] | |**fileName** | **String** | name of the file uploaded | [optional] | +|**assetId** | **String** | The asset id of the created Group | | |**id** | **String** | unique ID of the uploaded file | | diff --git a/docs/FilesApi.md b/docs/FilesApi.md index c2e9765..bc37659 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -4,60 +4,62 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**handleCreateFile**](FilesApi.md#handleCreateFile) | **POST** /files/{namespace} | | -| [**handleExportFile**](FilesApi.md#handleExportFile) | **POST** /files/{namespace}/{file}/export | | -| [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | | +| [**handleCreateFile**](FilesApi.md#handleCreateFile) | **POST** /files/{workspace}/{teamspace} | | +| [**handleExportFile**](FilesApi.md#handleExportFile) | **POST** /files/{workspace}/{teamspace}/{file}/export | | +| [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{workspace}/{teamspace}/upload | | - + # **handleCreateFile** -> FileCreated handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) +> FileCreated handleCreateFile(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FilesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file - FileCreate fileCreate = new FileCreate(); // FileCreate | Input/Output information to create a new TileDB file - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - try { - FileCreated result = apiInstance.handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleCreateFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String 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(); + } } - } } ``` @@ -65,7 +67,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the file | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **fileCreate** | [**FileCreate**](FileCreate.md)| Input/Output information to create a new TileDB file | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | @@ -75,7 +78,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -89,55 +92,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleExportFile** -> FileExported handleExportFile(namespace, _file, fileExport) +> FileExported handleExportFile(workspace, teamspace, _file, fileExport) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FilesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file - String _file = "_file_example"; // String | The file identifier - FileExport fileExport = new FileExport(); // FileExport | Export configuration information - try { - FileExported result = apiInstance.handleExportFile(namespace, _file, fileExport); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleExportFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String 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(); + } } - } } ``` @@ -145,7 +150,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the file | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **_file** | **String**| The file identifier | | | **fileExport** | [**FileExport**](FileExport.md)| Export configuration information | | @@ -155,7 +161,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -169,57 +175,59 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleUploadFile** -> FileUploaded handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) +> FileUploaded handleUploadFile(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.FilesApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file - File inputFile = new File("/path/to/file"); // File | the file to upload - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - String outputUri = "outputUri_example"; // String | output location of the TileDB File - String name = "name_example"; // String | name to set for registered file - try { - FileUploaded result = apiInstance.handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleUploadFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String 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(); + } } - } } ``` @@ -227,7 +235,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the file | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **inputFile** | **File**| the file to upload | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | | **outputUri** | **String**| output location of the TileDB File | [optional] | @@ -239,7 +248,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 5e2a015..96d7d4c 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -4,73 +4,75 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**changeGroupContents**](GroupsApi.md#changeGroupContents) | **POST** /groups/{group_namespace}/{group_name}/contents | | -| [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups/{namespace}/create | | -| [**deleteGroup**](GroupsApi.md#deleteGroup) | **DELETE** /groups/{group_namespace}/{group_name} | | -| [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{group_namespace}/{group_name} | | -| [**getGroupActivity**](GroupsApi.md#getGroupActivity) | **GET** /groups/{group_namespace}/{group_name}/content_activity | | -| [**getGroupContents**](GroupsApi.md#getGroupContents) | **GET** /groups/{group_namespace}/{group_name}/contents | | -| [**getGroupSharingPolicies**](GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{group_namespace}/{group_name}/share | | +| [**changeGroupContents**](GroupsApi.md#changeGroupContents) | **POST** /groups/{workspace}/{teamspace}/{group_name}/contents | | +| [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups/{workspace}/{teamspace}/create | | +| [**deleteGroup**](GroupsApi.md#deleteGroup) | **DELETE** /groups/{workspace}/{teamspace}/{group_name} | | +| [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{workspace}/{teamspace}/{group_name} | | +| [**getGroupActivity**](GroupsApi.md#getGroupActivity) | **GET** /groups/{workspace}/{teamspace}/{group_name}/content_activity | | +| [**getGroupContents**](GroupsApi.md#getGroupContents) | **GET** /groups/{workspace}/{teamspace}/{group_name}/contents | | +| [**getGroupSharingPolicies**](GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{workspace}/{teamspace}/{group_name}/share | | | [**groupsBrowserOwnedFiltersGet**](GroupsApi.md#groupsBrowserOwnedFiltersGet) | **GET** /groups/browser/owned/filters | | | [**groupsBrowserPublicFiltersGet**](GroupsApi.md#groupsBrowserPublicFiltersGet) | **GET** /groups/browser/public/filters | | | [**groupsBrowserSharedFiltersGet**](GroupsApi.md#groupsBrowserSharedFiltersGet) | **GET** /groups/browser/shared/filters | | -| [**groupsGroupNamespaceGroupNameContentsFiltersGet**](GroupsApi.md#groupsGroupNamespaceGroupNameContentsFiltersGet) | **GET** /groups/{group_namespace}/{group_name}/contents/filters | | +| [**groupsWorkspaceTeamspaceGroupNameContentsFiltersGet**](GroupsApi.md#groupsWorkspaceTeamspaceGroupNameContentsFiltersGet) | **GET** /groups/{workspace}/{teamspace}/{group_name}/contents/filters | | | [**listOwnedGroups**](GroupsApi.md#listOwnedGroups) | **GET** /groups/browser/owned | | | [**listPublicGroups**](GroupsApi.md#listPublicGroups) | **GET** /groups/browser/public | | | [**listSharedGroups**](GroupsApi.md#listSharedGroups) | **GET** /groups/browser/shared | | -| [**registerGroup**](GroupsApi.md#registerGroup) | **POST** /groups/{namespace}/{array}/register | | -| [**shareGroup**](GroupsApi.md#shareGroup) | **PATCH** /groups/{group_namespace}/{group_name}/share | | -| [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | | +| [**registerGroup**](GroupsApi.md#registerGroup) | **POST** /groups/{workspace}/{teamspace}/{array}/register | | +| [**shareGroup**](GroupsApi.md#shareGroup) | **PATCH** /groups/{workspace}/{teamspace}/{group_name}/share | | +| [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{workspace}/{teamspace}/{group_name} | | - + # **changeGroupContents** -> changeGroupContents(groupNamespace, groupName, groupChanges) +> changeGroupContents(workspace, teamspace, groupName, groupChanges) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupChanges groupChanges = new GroupChanges(); // GroupChanges | - try { - apiInstance.changeGroupContents(groupNamespace, groupName, groupChanges); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#changeGroupContents"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -78,7 +80,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **groupChanges** | [**GroupChanges**](GroupChanges.md)| | [optional] | @@ -88,7 +91,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -102,53 +105,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createGroup** -> createGroup(namespace, groupCreate) +> createGroup(workspace, teamspace, groupCreate) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the group - GroupCreate groupCreate = new GroupCreate(); // GroupCreate | - try { - apiInstance.createGroup(namespace, groupCreate); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#createGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -156,7 +161,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupCreate** | [**GroupCreate**](GroupCreate.md)| | [optional] | ### Return type @@ -165,7 +171,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -179,53 +185,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteGroup** -> deleteGroup(groupNamespace, groupName) +> deleteGroup(workspace, teamspace, groupName) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - apiInstance.deleteGroup(groupNamespace, groupName); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#deleteGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -233,7 +241,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -242,7 +251,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -256,54 +265,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroup** -> GroupInfo getGroup(groupNamespace, groupName) +> GroupInfo getGroup(workspace, teamspace, groupName) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - GroupInfo result = apiInstance.getGroup(groupNamespace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -311,7 +322,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -320,7 +332,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -334,56 +346,58 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupActivity** -> GroupContentActivityResponse getGroupActivity(groupNamespace, groupName, page, perPage) +> GroupContentActivityResponse getGroupActivity(workspace, teamspace, groupName, page, perPage) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - GroupContentActivityResponse result = apiInstance.getGroupActivity(groupNamespace, groupName, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupActivity"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -391,7 +405,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -402,7 +417,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -416,63 +431,65 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupContents** -> GroupContents getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType) +> GroupContents getGroupContents(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - Integer page = 56; // Integer | pagination offset for assets - Integer perPage = 56; // Integer | pagination limit for assets - String namespace = "namespace_example"; // String | namespace to search for - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List memberType = Arrays.asList(); // List | member type to search for, more than one can be included - List excludeMemberType = Arrays.asList(); // List | member type to exclude matching groups in results, more than one can be included - try { - GroupContents result = apiInstance.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupContents"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -480,7 +497,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **page** | **Integer**| pagination offset for assets | [optional] | | **perPage** | **Integer**| pagination limit for assets | [optional] | @@ -498,7 +516,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -512,54 +530,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupSharingPolicies** -> List<GroupSharing> getGroupSharingPolicies(groupNamespace, groupName) +> List<GroupSharing> getGroupSharingPolicies(workspace, teamspace, groupName) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - List result = apiInstance.getGroupSharingPolicies(groupNamespace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -567,7 +587,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -576,7 +597,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -591,7 +612,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserOwnedFiltersGet** > GroupBrowserFilterData groupsBrowserOwnedFiltersGet(namespace) @@ -600,44 +621,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -653,7 +675,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -667,7 +689,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserPublicFiltersGet** > GroupBrowserFilterData groupsBrowserPublicFiltersGet() @@ -676,43 +698,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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserPublicFiltersGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserPublicFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserPublicFiltersGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserPublicFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -725,7 +748,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -739,7 +762,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserSharedFiltersGet** > GroupBrowserFilterData groupsBrowserSharedFiltersGet(namespace) @@ -748,44 +771,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -801,7 +825,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -815,54 +839,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - -# **groupsGroupNamespaceGroupNameContentsFiltersGet** -> GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName) + +# **groupsWorkspaceTeamspaceGroupNameContentsFiltersGet** +> GroupContentsFilterData groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - GroupContentsFilterData result = apiInstance.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsGroupNamespaceGroupNameContentsFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -870,7 +896,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -879,7 +906,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -893,7 +920,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) @@ -902,55 +929,56 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -977,7 +1005,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -991,7 +1019,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) @@ -1000,55 +1028,56 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -1075,7 +1104,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1089,7 +1118,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) @@ -1098,56 +1127,57 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -1175,7 +1205,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1189,54 +1219,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerGroup** -> registerGroup(namespace, array, groupRegister) +> registerGroup(workspace, teamspace, array, groupRegister) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the group - String array = "array_example"; // String | The unique name or id of the group - GroupRegister groupRegister = new GroupRegister(); // GroupRegister | - try { - apiInstance.registerGroup(namespace, array, groupRegister); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#registerGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -1244,7 +1276,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **array** | **String**| The unique name or id of the group | | | **groupRegister** | [**GroupRegister**](GroupRegister.md)| | [optional] | @@ -1254,7 +1287,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1268,54 +1301,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareGroup** -> shareGroup(groupNamespace, groupName, groupSharingRequest) +> shareGroup(workspace, teamspace, groupName, groupSharingRequest) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupSharingRequest groupSharingRequest = new GroupSharingRequest(); // GroupSharingRequest | Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. - try { - apiInstance.shareGroup(groupNamespace, groupName, groupSharingRequest); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#shareGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -1323,7 +1358,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **groupSharingRequest** | [**GroupSharingRequest**](GroupSharingRequest.md)| Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. | | @@ -1333,7 +1369,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1348,54 +1384,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateGroup** -> updateGroup(groupNamespace, groupName, groupUpdate) +> updateGroup(workspace, teamspace, groupName, groupUpdate) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupUpdate groupUpdate = new GroupUpdate(); // GroupUpdate | - try { - apiInstance.updateGroup(groupNamespace, groupName, groupUpdate); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#updateGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String 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(); + } } - } } ``` @@ -1403,7 +1441,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **groupUpdate** | [**GroupUpdate**](GroupUpdate.md)| | [optional] | @@ -1413,7 +1452,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index 0e605d0..fdef385 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -6,17 +6,17 @@ All URIs are relative to */v1* |------------- | ------------- | -------------| | [**acceptInvitation**](InvitationApi.md#acceptInvitation) | **POST** /invitations/{invitation} | | | [**cancelJoinOrganization**](InvitationApi.md#cancelJoinOrganization) | **DELETE** /invitations/{invitation}/{organization}/join | | -| [**cancelShareArrayByInvite**](InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{namespace}/{array}/share | | -| [**cancelShareGroupByInvite**](InvitationApi.md#cancelShareGroupByInvite) | **DELETE** /invitations/group/{invitation}/{namespace}/{group_name}/share | | -| [**cancelSharePayment**](InvitationApi.md#cancelSharePayment) | **DELETE** /invitations/share_payment/{namespace}/{target} | | +| [**cancelShareArrayByInvite**](InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{workspace}/{teamspace}/{array}/share | | +| [**cancelShareGroupByInvite**](InvitationApi.md#cancelShareGroupByInvite) | **DELETE** /invitations/group/{invitation}/{workspace}/{teamspace}/{group_name}/share | | +| [**cancelSharePayment**](InvitationApi.md#cancelSharePayment) | **DELETE** /invitations/share_payment/{workspace}/{teamspace}/{target} | | | [**fetchInvitations**](InvitationApi.md#fetchInvitations) | **GET** /invitations | | | [**joinOrganization**](InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | | -| [**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | | -| [**shareGroupByInvite**](InvitationApi.md#shareGroupByInvite) | **POST** /invitations/group/{namespace}/{group}/share | | -| [**sharePayment**](InvitationApi.md#sharePayment) | **POST** /invitations/share_payment/{namespace} | | +| [**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{workspace}/{teamspace}/{array}/share | | +| [**shareGroupByInvite**](InvitationApi.md#shareGroupByInvite) | **POST** /invitations/group/{workspace}/{teamspace}/{group}/share | | +| [**sharePayment**](InvitationApi.md#sharePayment) | **POST** /invitations/share_payment/{workspace}/{teamspace} | | - + # **acceptInvitation** > acceptInvitation(invitation) @@ -25,43 +25,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String invitation = "invitation_example"; // String | the ID of invitation about to be accepted - try { - apiInstance.acceptInvitation(invitation); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#acceptInvitation"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String invitation = "invitation_example"; // String | the ID of invitation about to be accepted + try { + apiInstance.acceptInvitation(invitation); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#acceptInvitation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -77,7 +78,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -92,7 +93,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelJoinOrganization** > cancelJoinOrganization(invitation, organization) @@ -101,44 +102,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String organization = "organization_example"; // String | name or UUID of organization - try { - apiInstance.cancelJoinOrganization(invitation, organization); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelJoinOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String organization = "organization_example"; // String | name or UUID of organization + try { + apiInstance.cancelJoinOrganization(invitation, organization); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelJoinOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -155,7 +157,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -170,54 +172,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelShareArrayByInvite** -> cancelShareArrayByInvite(namespace, invitation, array) +> cancelShareArrayByInvite(workspace, teamspace, invitation, array) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - apiInstance.cancelShareArrayByInvite(namespace, invitation, array); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelShareArrayByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String 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(); + } } - } } ``` @@ -225,7 +229,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **invitation** | **String**| the ID of invitation about to be cancelled | | | **array** | **String**| name/uri of array that is url-encoded | | @@ -235,7 +240,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -250,54 +255,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelShareGroupByInvite** -> cancelShareGroupByInvite(namespace, invitation, groupName) +> cancelShareGroupByInvite(workspace, teamspace, invitation, groupName) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String groupName = "groupName_example"; // String | name/uuid of group that is url-encoded - try { - apiInstance.cancelShareGroupByInvite(namespace, invitation, groupName); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelShareGroupByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String 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(); + } } - } } ``` @@ -305,7 +312,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace group is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **invitation** | **String**| the ID of invitation about to be cancelled | | | **groupName** | **String**| name/uuid of group that is url-encoded | | @@ -315,7 +323,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -330,53 +338,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelSharePayment** -> cancelSharePayment(namespace, target) +> cancelSharePayment(workspace, teamspace, target) Revokes invitation from the source namespace to the target. ### Example + ```java // Import classes: -import io.tiledb.cloud.rest_api.ApiClient; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | name or UUID of namespace sharing their payment info - String target = "target_example"; // String | name or UUID of recipient namespace - try { - apiInstance.cancelSharePayment(namespace, target); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelSharePayment"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -384,7 +394,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| name or UUID of namespace sharing their payment info | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **target** | **String**| name or UUID of recipient namespace | | ### Return type @@ -393,7 +404,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -407,7 +418,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) @@ -416,53 +427,54 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String organization = "organization_example"; // String | name or ID of organization to filter - String array = "array_example"; // String | name/uri of array that is url-encoded to filter - String group = "group_example"; // String | name or ID of group to filter - Integer start = 56; // Integer | start time for tasks to filter by - Integer end = 56; // Integer | end time for tasks to filter by - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String type = "type_example"; // String | invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" - String status = "status_example"; // String | Filter to only return \"PENDING\", \"ACCEPTED\" - String orderby = "orderby_example"; // String | sort by which field valid values include timestamp, array_name, organization_name - try { - InvitationData result = apiInstance.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#fetchInvitations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String organization = "organization_example"; // String | name or ID of organization to filter + String array = "array_example"; // String | name/uri of array that is url-encoded to filter + String group = "group_example"; // String | name or ID of group to filter + Integer start = 56; // Integer | start time for tasks to filter by + Integer end = 56; // Integer | end time for tasks to filter by + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String type = "type_example"; // String | invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + String status = "status_example"; // String | Filter to only return \"PENDING\", \"ACCEPTED\" + String orderby = "orderby_example"; // String | sort by which field valid values include timestamp, array_name, organization_name + try { + InvitationData result = apiInstance.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#fetchInvitations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -487,7 +499,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -501,7 +513,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **joinOrganization** > joinOrganization(organization, emailInvite) @@ -510,44 +522,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String organization = "organization_example"; // String | name or UUID of organization - InvitationOrganizationJoinEmail emailInvite = new InvitationOrganizationJoinEmail(); // InvitationOrganizationJoinEmail | list of email recipients - try { - apiInstance.joinOrganization(organization, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#joinOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String organization = "organization_example"; // String | name or UUID of organization + InvitationOrganizationJoinEmail emailInvite = new InvitationOrganizationJoinEmail(); // InvitationOrganizationJoinEmail | list of email recipients + try { + apiInstance.joinOrganization(organization, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#joinOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -564,7 +577,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -580,54 +593,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareArrayByInvite** -> shareArrayByInvite(namespace, array, emailInvite) +> shareArrayByInvite(workspace, teamspace, array, emailInvite) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - InvitationArrayShareEmail emailInvite = new InvitationArrayShareEmail(); // InvitationArrayShareEmail | list of email recipients - try { - apiInstance.shareArrayByInvite(namespace, array, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#shareArrayByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String 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(); + } } - } } ``` @@ -635,7 +650,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **emailInvite** | [**InvitationArrayShareEmail**](InvitationArrayShareEmail.md)| list of email recipients | | @@ -645,7 +661,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -661,54 +677,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareGroupByInvite** -> shareGroupByInvite(namespace, group, emailInvite) +> shareGroupByInvite(workspace, teamspace, group, emailInvite) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) - String group = "group_example"; // String | name/uri of group that is url-encoded - InvitationGroupShareEmail emailInvite = new InvitationGroupShareEmail(); // InvitationGroupShareEmail | list of email/namespace recipients - try { - apiInstance.shareGroupByInvite(namespace, group, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#shareGroupByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String 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(); + } } - } } ``` @@ -716,7 +734,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace group is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **group** | **String**| name/uri of group that is url-encoded | | | **emailInvite** | [**InvitationGroupShareEmail**](InvitationGroupShareEmail.md)| list of email/namespace recipients | | @@ -726,7 +745,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -742,53 +761,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **sharePayment** -> sharePayment(namespace, emailInvite) +> sharePayment(workspace, teamspace, emailInvite) Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. ### Example + ```java // Import classes: -import io.tiledb.cloud.rest_api.ApiClient; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | name or UUID of namespace sharing their payment info - SharePaymentRequest emailInvite = new SharePaymentRequest(); // SharePaymentRequest | Recipients of the invitation. These may only be namespaces, not email addresses. - try { - apiInstance.sharePayment(namespace, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#sharePayment"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -796,7 +817,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| name or UUID of namespace sharing their payment info | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **emailInvite** | [**SharePaymentRequest**](SharePaymentRequest.md)| Recipients of the invitation. These may only be namespaces, not email addresses. | [optional] | ### Return type @@ -805,7 +827,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 6c4a51f..6e1d219 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -4,60 +4,62 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getNotebookServerStatus**](NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{namespace}/status | | -| [**handleCopyNotebook**](NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{namespace}/{array}/copy | | -| [**handleUploadNotebook**](NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{namespace}/upload | | -| [**shutdownNotebookServer**](NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{namespace} | | -| [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | | +| [**getNotebookServerStatus**](NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{workspace}/{teamspace}/status | | +| [**handleCopyNotebook**](NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{workspace}/{teamspace}/{array}/copy | | +| [**handleUploadNotebook**](NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{workspace}/{teamspace}/upload | | +| [**shutdownNotebookServer**](NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{workspace}/{teamspace} | | +| [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{workspace}/{teamspace}/{array}/rename | | - + # **getNotebookServerStatus** -> NotebookStatus getNotebookServerStatus(namespace) +> NotebookStatus getNotebookServerStatus(workspace, teamspace) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebookApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) - try { - NotebookStatus result = apiInstance.getNotebookServerStatus(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#getNotebookServerStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String 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(); + } } - } } ``` @@ -65,7 +67,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace notebook is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | ### Return type @@ -73,7 +76,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -89,57 +92,59 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleCopyNotebook** -> NotebookCopied handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) +> NotebookCopied handleCopyNotebook(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebookApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String array = "array_example"; // String | The name of the notebook - NotebookCopy notebookCopy = new NotebookCopy(); // NotebookCopy | Input/Output information to create a new TileDB file - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp - try { - NotebookCopied result = apiInstance.handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#handleCopyNotebook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String 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(); + } } - } } ``` @@ -147,7 +152,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **array** | **String**| The name of the notebook | | | **notebookCopy** | [**NotebookCopy**](NotebookCopy.md)| Input/Output information to create a new TileDB file | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | @@ -159,7 +165,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -173,57 +179,59 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleUploadNotebook** -> FileUploaded handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) +> FileUploaded handleUploadNotebook(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebookApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - File inputFile = new File("/path/to/file"); // File | the notebook to upload - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - String outputUri = "outputUri_example"; // String | output location of the TileDB File - String name = "name_example"; // String | name to set for registered file - try { - FileUploaded result = apiInstance.handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#handleUploadNotebook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String 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(); + } } - } } ``` @@ -231,7 +239,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **inputFile** | **File**| the notebook to upload | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | | **outputUri** | **String**| output location of the TileDB File | [optional] | @@ -243,7 +252,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -257,52 +266,54 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shutdownNotebookServer** -> shutdownNotebookServer(namespace) +> shutdownNotebookServer(workspace, teamspace) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebookApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) - try { - apiInstance.shutdownNotebookServer(namespace); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#shutdownNotebookServer"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String 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(); + } } - } } ``` @@ -310,7 +321,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace notebook is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | ### Return type @@ -318,7 +330,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -333,54 +345,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateNotebookName** -> updateNotebookName(namespace, array, notebookMetadata) +> updateNotebookName(workspace, teamspace, array, notebookMetadata) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebookApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of notebook (array) that is url-encoded - ArrayInfoUpdate notebookMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | notebook (array) metadata to update - try { - apiInstance.updateNotebookName(namespace, array, notebookMetadata); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#updateNotebookName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String 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(); + } } - } } ``` @@ -388,7 +402,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **array** | **String**| name/uri of notebook (array) that is url-encoded | | | **notebookMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| notebook (array) metadata to update | | @@ -398,7 +413,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index 0432197..0a92fd5 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -4,60 +4,62 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**notebooksNamespaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | | -| [**notebooksNamespaceArrayPrunePost**](NotebooksApi.md#notebooksNamespaceArrayPrunePost) | **POST** /notebooks/{namespace}/{array}/prune | | +| [**notebooksWorkspaceTeamspaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksWorkspaceTeamspaceArrayEndTimestampsGet) | **GET** /notebooks/{workspace}/{teamspace}/{array}/end_timestamps | | +| [**notebooksWorkspaceTeamspaceArrayPrunePost**](NotebooksApi.md#notebooksWorkspaceTeamspaceArrayPrunePost) | **POST** /notebooks/{workspace}/{teamspace}/{array}/prune | | - -# **notebooksNamespaceArrayEndTimestampsGet** -> ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) + +# **notebooksWorkspaceTeamspaceArrayEndTimestampsGet** +> ArrayEndTimestampData notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebooksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebooksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebooksApi apiInstance = new NotebooksApi(defaultClient); + String 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(); + } } - } } ``` @@ -65,7 +67,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -76,7 +79,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -90,54 +93,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - -# **notebooksNamespaceArrayPrunePost** -> notebooksNamespaceArrayPrunePost(namespace, array, keepVersions) + +# **notebooksWorkspaceTeamspaceArrayPrunePost** +> notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.NotebooksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.NotebooksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer keepVersions = 56; // Integer | The number of most recents fragment to preserve - try { - apiInstance.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); - } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayPrunePost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebooksApi apiInstance = new NotebooksApi(defaultClient); + String 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(); + } } - } } ``` @@ -145,7 +150,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **keepVersions** | **Integer**| The number of most recents fragment to preserve | [optional] | @@ -155,7 +161,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index e257b59..b9c5ebc 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -4,14 +4,14 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addAWSAccessCredentials**](OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | | +| [**addAWSAccessCredentials**](OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{workspace}/{teamspace}/aws | | | [**addUserToOrganization**](OrganizationApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | | -| [**checkAWSAccessCredentials**](OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | | -| [**checkAWSAccessCredentialsByName**](OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | | +| [**checkAWSAccessCredentials**](OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{workspace}/{teamspace}/aws | | +| [**checkAWSAccessCredentialsByName**](OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**checkSSODomain**](OrganizationApi.md#checkSSODomain) | **POST** /organizations/{organization}/sso_domains/{uuid}/run_check | | | [**createOrganization**](OrganizationApi.md#createOrganization) | **POST** /organization | | | [**createSSODomain**](OrganizationApi.md#createSSODomain) | **POST** /organizations/{organization}/sso_domain | | -| [**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | +| [**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**deleteOrganization**](OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | | | [**deleteSSODomain**](OrganizationApi.md#deleteSSODomain) | **DELETE** /organizations/{organization}/sso_domains/{uuid} | | | [**deleteUserFromOrganization**](OrganizationApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | | @@ -20,59 +20,61 @@ All URIs are relative to */v1* | [**getOrganizationUser**](OrganizationApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | | | [**getSSODomain**](OrganizationApi.md#getSSODomain) | **GET** /organizations/{organization}/sso_domains/{uuid} | | | [**getSSODomains**](OrganizationApi.md#getSSODomains) | **GET** /organizations/{organization}/sso_domains | | -| [**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | +| [**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**updateOrganization**](OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | | | [**updateSSODomain**](OrganizationApi.md#updateSSODomain) | **PATCH** /organizations/{organization}/sso_domains/{uuid} | | | [**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | - + # **addAWSAccessCredentials** -> addAWSAccessCredentials(namespace, awsAccessCredentials) +> addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace - try { - apiInstance.addAWSAccessCredentials(namespace, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#addAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String 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(); + } } - } } ``` @@ -80,7 +82,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | | ### Return type @@ -89,7 +92,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -103,7 +106,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUserToOrganization** > addUserToOrganization(organization, user) @@ -112,44 +115,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add - try { - apiInstance.addUserToOrganization(organization, user); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#addUserToOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add + try { + apiInstance.addUserToOrganization(organization, user); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#addUserToOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -166,7 +170,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -180,53 +184,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentials** -> List<AWSAccessCredentials> checkAWSAccessCredentials(namespace) +> List<AWSAccessCredentials> checkAWSAccessCredentials(workspace, teamspace) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - List result = apiInstance.checkAWSAccessCredentials(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String 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(); + } } - } } ``` @@ -234,7 +240,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | ### Return type @@ -242,7 +249,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -256,54 +263,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentialsByName** -> AWSAccessCredentials checkAWSAccessCredentialsByName(namespace, name) +> AWSAccessCredentials checkAWSAccessCredentialsByName(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentialsByName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String 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(); + } } - } } ``` @@ -311,7 +320,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| name | | ### Return type @@ -320,7 +330,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -334,7 +344,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkSSODomain** > DomainCheckResult checkSSODomain(organization, uuid) @@ -343,45 +353,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - DomainCheckResult result = apiInstance.checkSSODomain(organization, uuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + DomainCheckResult result = apiInstance.checkSSODomain(organization, uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -398,7 +409,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -411,7 +422,7 @@ public class Example { | **200** | The check executed. Detailed results are available in the response. | - | | **0** | error response | - | - + # **createOrganization** > createOrganization(organization) @@ -420,43 +431,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - Organization organization = new Organization(); // Organization | organization to create - try { - apiInstance.createOrganization(organization); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#createOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + Organization organization = new Organization(); // Organization | organization to create + try { + apiInstance.createOrganization(organization); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#createOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -472,7 +484,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -486,7 +498,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createSSODomain** > SSODomainConfig createSSODomain(organization, config) @@ -495,45 +507,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The SSO connection to create. - try { - SSODomainConfig result = apiInstance.createSSODomain(organization, config); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#createSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The SSO connection to create. + try { + SSODomainConfig result = apiInstance.createSSODomain(organization, config); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#createSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -550,7 +563,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -563,53 +576,55 @@ public class Example { | **200** | Claim created successfully. | - | | **0** | error response | - | - + # **deleteAWSAccessCredentials** -> deleteAWSAccessCredentials(namespace, name) +> deleteAWSAccessCredentials(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - apiInstance.deleteAWSAccessCredentials(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String 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(); + } } - } } ``` @@ -617,7 +632,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| name | | ### Return type @@ -626,7 +642,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -640,7 +656,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteOrganization** > deleteOrganization(organization) @@ -649,43 +665,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - try { - apiInstance.deleteOrganization(organization); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + try { + apiInstance.deleteOrganization(organization); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -701,7 +718,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -715,7 +732,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteSSODomain** > deleteSSODomain(organization, uuid) @@ -724,44 +741,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - apiInstance.deleteSSODomain(organization, uuid); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + apiInstance.deleteSSODomain(organization, uuid); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -778,7 +796,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -791,7 +809,7 @@ null (empty response body) | **204** | Deletion successful. | - | | **0** | error response | - | - + # **deleteUserFromOrganization** > deleteUserFromOrganization(organization, username) @@ -800,44 +818,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - apiInstance.deleteUserFromOrganization(organization, username); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteUserFromOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + apiInstance.deleteUserFromOrganization(organization, username); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteUserFromOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -854,7 +873,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -868,7 +887,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getAllOrganizations** > List<Organization> getAllOrganizations() @@ -877,43 +896,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - try { - List result = apiInstance.getAllOrganizations(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getAllOrganizations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + try { + List result = apiInstance.getAllOrganizations(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getAllOrganizations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -926,7 +946,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -942,7 +962,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganization** > Organization getOrganization(organization) @@ -951,44 +971,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - try { - Organization result = apiInstance.getOrganization(organization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + try { + Organization result = apiInstance.getOrganization(organization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1004,7 +1025,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1019,7 +1040,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganizationUser** > OrganizationUser getOrganizationUser(organization, username) @@ -1028,45 +1049,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - OrganizationUser result = apiInstance.getOrganizationUser(organization, username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getOrganizationUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + OrganizationUser result = apiInstance.getOrganizationUser(organization, username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrganizationUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1083,7 +1105,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1098,7 +1120,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getSSODomain** > SSODomainConfig getSSODomain(organization, uuid) @@ -1107,45 +1129,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - SSODomainConfig result = apiInstance.getSSODomain(organization, uuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + SSODomainConfig result = apiInstance.getSSODomain(organization, uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1162,7 +1185,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1175,7 +1198,7 @@ public class Example { | **200** | The details about this domain connection. | - | | **0** | error response | - | - + # **getSSODomains** > SSODomainConfigResponse getSSODomains(organization) @@ -1184,44 +1207,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - try { - SSODomainConfigResponse result = apiInstance.getSSODomains(organization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getSSODomains"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + try { + SSODomainConfigResponse result = apiInstance.getSSODomains(organization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getSSODomains"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1237,7 +1261,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1250,54 +1274,56 @@ public class Example { | **200** | The SSO domains associated with the org. | - | | **0** | error response | - | - + # **updateAWSAccessCredentials** -> updateAWSAccessCredentials(namespace, name, awsAccessCredentials) +> updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update - try { - apiInstance.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String 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(); + } } - } } ``` @@ -1305,7 +1331,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| name | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | | @@ -1315,7 +1342,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1329,7 +1356,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateOrganization** > updateOrganization(organization, organizationDetails) @@ -1338,44 +1365,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -1392,7 +1420,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1406,7 +1434,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateSSODomain** > SSODomainConfig updateSSODomain(organization, uuid, config) @@ -1415,46 +1443,47 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The changes to make to the configuration. - try { - SSODomainConfig result = apiInstance.updateSSODomain(organization, uuid, config); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The changes to make to the configuration. + try { + SSODomainConfig result = apiInstance.updateSSODomain(organization, uuid, config); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1472,7 +1501,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1485,7 +1514,7 @@ public class Example { | **200** | The updated details about the SSO connection. | - | | **0** | error response | - | - + # **updateUserInOrganization** > updateUserInOrganization(organization, username, user) @@ -1494,45 +1523,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update - try { - apiInstance.updateUserInOrganization(organization, username, user); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateUserInOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update + try { + apiInstance.updateUserInOrganization(organization, username, user); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateUserInOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1550,7 +1580,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/OrganizationRoles.md b/docs/OrganizationRoles.md index 764cc4a..e0c6f08 100644 --- a/docs/OrganizationRoles.md +++ b/docs/OrganizationRoles.md @@ -9,6 +9,8 @@ * `ADMIN` (value: `"admin"`) +* `READ_WRITE_DELETE` (value: `"read_write_delete"`) + * `READ_WRITE` (value: `"read_write"`) * `READ_ONLY` (value: `"read_only"`) diff --git a/docs/QueryApi.md b/docs/QueryApi.md index 226e72d..bad6592 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -4,66 +4,68 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**finalizeQuery**](QueryApi.md#finalizeQuery) | **POST** /arrays/{namespace}/{array}/query/finalize | | -| [**getEstResultSizes**](QueryApi.md#getEstResultSizes) | **POST** /arrays/{namespace}/{array}/query/est_result_sizes | | -| [**getFile**](QueryApi.md#getFile) | **GET** /arrays/{namespace}/{array}/query/get_file | | -| [**submitQuery**](QueryApi.md#submitQuery) | **POST** /arrays/{namespace}/{array}/query/submit | | -| [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | | +| [**finalizeQuery**](QueryApi.md#finalizeQuery) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/finalize | | +| [**getEstResultSizes**](QueryApi.md#getEstResultSizes) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/est_result_sizes | | +| [**getFile**](QueryApi.md#getFile) | **GET** /arrays/{workspace}/{teamspace}/{array}/query/get_file | | +| [**submitQuery**](QueryApi.md#submitQuery) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/submit | | +| [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/submit_query_json | | - + # **finalizeQuery** -> Query finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt) +> Query finalizeQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.QueryApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#finalizeQuery"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String 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(); + } } - } } ``` @@ -71,7 +73,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **type** | **String**| type of query | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -85,7 +88,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -100,59 +103,61 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getEstResultSizes** -> Query getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt) +> Query getEstResultSizes(workspace, teamspace, array, type, contentType, query, xPayer, openAt) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.QueryApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#getEstResultSizes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String 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(); + } } - } } ``` @@ -160,7 +165,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **type** | **String**| type of query | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -174,7 +180,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -189,56 +195,58 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getFile** -> File getFile(namespace, array, contentType, xPayer) +> File getFile(workspace, teamspace, array, contentType, xPayer) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.QueryApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - File result = apiInstance.getFile(namespace, array, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#getFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String 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(); + } } - } } ``` @@ -246,7 +254,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | @@ -257,7 +266,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -271,59 +280,61 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitQuery** -> Query submitQuery(namespace, array, type, contentType, query, xPayer, openAt) +> Query submitQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.QueryApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#submitQuery"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String 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(); + } } - } } ``` @@ -331,7 +342,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **type** | **String**| type of query | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -345,7 +357,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -360,57 +372,59 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitQueryJson** -> Object submitQueryJson(namespace, array, contentType, queryJson, xPayer) +> Object submitQueryJson(workspace, teamspace, array, contentType, queryJson, xPayer) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.QueryApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - QueryJson queryJson = new QueryJson(); // QueryJson | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - Object result = apiInstance.submitQueryJson(namespace, array, contentType, queryJson, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#submitQueryJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String 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(); + } } - } } ``` @@ -418,7 +432,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **queryJson** | [**QueryJson**](QueryJson.md)| query to run | | @@ -430,7 +445,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index dbbafb9..5153bfb 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -4,61 +4,62 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**deleteRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{namespace}/registered/{name} | | -| [**getRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{namespace}/registered/{name} | | -| [**getRegisteredTaskGraphSharingPolicies**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{namespace}/registered/{name}/share | | -| [**registerRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{namespace}/registered/{name} | | -| [**shareRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name}/share | | -| [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | | +| [**deleteRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{workspace}/registered/{name} | | +| [**getRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{workspace}/registered/{name} | | +| [**getRegisteredTaskGraphSharingPolicies**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{workspace}/registered/{name}/share | | +| [**registerRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{workspace}/registered/{name} | | +| [**shareRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{workspace}/registered/{name}/share | | +| [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{workspace}/registered/{name} | | - + # **deleteRegisteredTaskGraph** -> deleteRegisteredTaskGraph(namespace, name) +> deleteRegisteredTaskGraph(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - try { - apiInstance.deleteRegisteredTaskGraph(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#deleteRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -66,7 +67,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | ### Return type @@ -75,7 +76,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -89,54 +90,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getRegisteredTaskGraph** -> RegisteredTaskGraph getRegisteredTaskGraph(namespace, name) +> RegisteredTaskGraph getRegisteredTaskGraph(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - try { - RegisteredTaskGraph result = apiInstance.getRegisteredTaskGraph(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -144,7 +146,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | ### Return type @@ -153,7 +155,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -167,54 +169,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getRegisteredTaskGraphSharingPolicies** -> List<TaskGraphSharing> getRegisteredTaskGraphSharingPolicies(namespace, name) +> List<TaskGraphSharing> getRegisteredTaskGraphSharingPolicies(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. - String name = "name_example"; // String | The name of the task graph. - try { - List result = apiInstance.getRegisteredTaskGraphSharingPolicies(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraphSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -222,7 +225,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns the registered task graph. | | +| **workspace** | **String**| The workspace that owns the registered task graph. | | | **name** | **String**| The name of the task graph. | | ### Return type @@ -231,7 +234,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -246,54 +249,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerRegisteredTaskGraph** -> registerRegisteredTaskGraph(namespace, name, graph) +> registerRegisteredTaskGraph(workspace, name, graph) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | Task graph to register. - try { - apiInstance.registerRegisteredTaskGraph(namespace, name, graph); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#registerRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -301,7 +305,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | | **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| Task graph to register. | [optional] | @@ -311,7 +315,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -325,54 +329,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareRegisteredTaskGraph** -> shareRegisteredTaskGraph(namespace, name, taskGraphSharing) +> shareRegisteredTaskGraph(workspace, name, taskGraphSharing) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. - String name = "name_example"; // String | The name of the task graph. - TaskGraphSharing taskGraphSharing = new TaskGraphSharing(); // TaskGraphSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. - try { - apiInstance.shareRegisteredTaskGraph(namespace, name, taskGraphSharing); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#shareRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -380,7 +385,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns the registered task graph. | | +| **workspace** | **String**| The workspace that owns the registered task graph. | | | **name** | **String**| The name of the task graph. | | | **taskGraphSharing** | [**TaskGraphSharing**](TaskGraphSharing.md)| Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. | | @@ -390,7 +395,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -405,54 +410,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateRegisteredTaskGraph** -> updateRegisteredTaskGraph(namespace, name, graph) +> updateRegisteredTaskGraph(workspace, name, graph) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | The new contents of the task graph. - try { - apiInstance.updateRegisteredTaskGraph(namespace, name, graph); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#updateRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -460,7 +466,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | | **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| The new contents of the task graph. | [optional] | @@ -470,7 +476,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/RetryPolicy.md b/docs/RetryPolicy.md index d41a45a..c202480 100644 --- a/docs/RetryPolicy.md +++ b/docs/RetryPolicy.md @@ -7,11 +7,11 @@ * `ALWAYS` (value: `"Always"`) -* `ON_FAILURE` (value: `"OnFailure"`) +* `ONFAILURE` (value: `"OnFailure"`) -* `ON_ERROR` (value: `"OnError"`) +* `ONERROR` (value: `"OnError"`) -* `ON_TRANSIENT_ERROR` (value: `"OnTransientError"`) +* `ONTRANSIENTERROR` (value: `"OnTransientError"`) diff --git a/docs/SqlApi.md b/docs/SqlApi.md index 0f8feeb..f4a7683 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -4,58 +4,60 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{namespace} | | +| [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{workspace}/{teamspace} | | - + # **runSQL** -> List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding) +> List<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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.SqlApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.SqlApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - SqlApi apiInstance = new SqlApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) - SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - List> result = apiInstance.runSQL(namespace, sql, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SqlApi#runSQL"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + SqlApi apiInstance = new SqlApi(defaultClient); + String 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(); + } } - } } ``` @@ -63,17 +65,18 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | | | **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type -[**List<Map<String, Object>>**](Map.md) +**List<Object>** ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 829caeb..b0e4749 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,43 +16,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.StatsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.StatsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - StatsApi apiInstance = new StatsApi(defaultClient); - try { - GetTiledbStats200Response result = apiInstance.getTiledbStats(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StatsApi#getTiledbStats"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + StatsApi apiInstance = new StatsApi(defaultClient); + try { + GetTiledbStats200Response result = apiInstance.getTiledbStats(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StatsApi#getTiledbStats"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -65,7 +66,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/TGUDFEnvironment.md b/docs/TGUDFEnvironment.md index 0d4ed3e..b641109 100644 --- a/docs/TGUDFEnvironment.md +++ b/docs/TGUDFEnvironment.md @@ -17,7 +17,7 @@ Metadata about the environment where we want to execute a UDF. |**resources** | [**TGUDFEnvironmentResources**](TGUDFEnvironmentResources.md) | | [optional] | |**runClientSide** | **Boolean** | A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. | [optional] | |**timeout** | **BigDecimal** | The maximum length of time this UDF is allowed to execute for before it is killed and fails. If not present (or zero), the function is allowed to run indefinitely (subject to the server’s global limits). | [optional] | -|**paths** | **List<Object>** | Mapping for storage paths to mount | [optional] | +|**storage** | [**List<TGUDFStorage>**](TGUDFStorage.md) | Storage options for mounting persistent volumes. | [optional] | diff --git a/docs/TGUDFStorage.md b/docs/TGUDFStorage.md index 0bf99ea..d83b38a 100644 --- a/docs/TGUDFStorage.md +++ b/docs/TGUDFStorage.md @@ -2,15 +2,16 @@ # TGUDFStorage -Storage mount details +Storage options for mounting persistent volumes. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**path** | **String** | mount path | [optional] | -|**size** | **Integer** | storage size in bytes | [optional] | -|**storageClass** | **String** | storage class | [optional] | +|**path** | **String** | Mount path for the attached volume. | [optional] | +|**tiledbUri** | **String** | TileDB filesystem to mount | [optional] | +|**size** | **String** | Storage size. | [optional] | +|**storageClass** | **String** | Storage class to use for creating the volume. | [optional] | diff --git a/docs/TaskGraphLog.md b/docs/TaskGraphLog.md index de630c8..837a039 100644 --- a/docs/TaskGraphLog.md +++ b/docs/TaskGraphLog.md @@ -26,6 +26,8 @@ Logging information about the execution of a task graph. |**taskGraphId** | **String** | The UUID of the task graph. | [optional] | |**cloudProvider** | **String** | The name of the cloud provider where this task graph executed. | [optional] | |**cloudRegion** | **String** | The region of the cloud provider where this task graph executed. | [optional] | +|**rootTaskGraphUuid** | **String** | The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. | [optional] | +|**childrenTaskGraphUuids** | **List<String>** | If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. | [optional] | diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index b32e444..c75d0ce 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -4,65 +4,66 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createTaskGraphLog**](TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{namespace}/log | | -| [**getTaskGraphLog**](TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{namespace}/logs/{id} | | +| [**createTaskGraphLog**](TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{workspace}/log | | +| [**getTaskGraphLog**](TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{workspace}/logs/{id} | | | [**listTaskGraphLogs**](TaskGraphLogsApi.md#listTaskGraphLogs) | **GET** /taskgraphs/logs | | -| [**reportClientNode**](TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{namespace}/logs/{id}/report_client_node | | -| [**resubmitTaskGraphExecution**](TaskGraphLogsApi.md#resubmitTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/resubmit | | -| [**retryTaskGraphExecution**](TaskGraphLogsApi.md#retryTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/retry | | -| [**stopTaskGraphExecution**](TaskGraphLogsApi.md#stopTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/stop | | -| [**submitTaskGraph**](TaskGraphLogsApi.md#submitTaskGraph) | **POST** /taskgraphs/{namespace}/graphs/{id}/submit | | -| [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | | +| [**reportClientNode**](TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{workspace}/logs/{id}/report_client_node | | +| [**resubmitTaskGraphExecution**](TaskGraphLogsApi.md#resubmitTaskGraphExecution) | **POST** /taskgraphs/{workspace}/executions/{id}/resubmit | | +| [**retryTaskGraphExecution**](TaskGraphLogsApi.md#retryTaskGraphExecution) | **POST** /taskgraphs/{workspace}/executions/{id}/retry | | +| [**stopTaskGraphExecution**](TaskGraphLogsApi.md#stopTaskGraphExecution) | **POST** /taskgraphs/{workspace}/executions/{id}/stop | | +| [**submitTaskGraph**](TaskGraphLogsApi.md#submitTaskGraph) | **POST** /taskgraphs/{workspace}/graphs/{id}/submit | | +| [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{workspace}/logs/{id} | | - + # **createTaskGraphLog** -> TaskGraphLog createTaskGraphLog(namespace, log) +> TaskGraphLog createTaskGraphLog(workspace, log) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that will own this task graph log. - TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | - try { - TaskGraphLog result = apiInstance.createTaskGraphLog(namespace, log); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#createTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -70,7 +71,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that will own this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **log** | [**TaskGraphLog**](TaskGraphLog.md)| | | ### Return type @@ -79,7 +80,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -93,54 +94,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTaskGraphLog** -> TaskGraphLog getTaskGraphLog(namespace, id) +> TaskGraphLog getTaskGraphLog(workspace, id) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. - String id = "id_example"; // String | The UUID of the task graph log entry. - try { - TaskGraphLog result = apiInstance.getTaskGraphLog(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#getTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -148,7 +150,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph log entry. | | ### Return type @@ -157,7 +159,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -171,7 +173,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listTaskGraphLogs** > TaskGraphLogsData listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage) @@ -180,51 +182,52 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - 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 API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -247,7 +250,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -261,52 +264,53 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **reportClientNode** -> reportClientNode(namespace, id, report) +> 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. - String id = "id_example"; // String | The UUID of the task graph log entry. - TaskGraphClientNodeStatus report = new TaskGraphClientNodeStatus(); // TaskGraphClientNodeStatus | The node status to report. - try { - apiInstance.reportClientNode(namespace, id, report); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#reportClientNode"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -314,7 +318,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph log entry. | | | **report** | [**TaskGraphClientNodeStatus**](TaskGraphClientNodeStatus.md)| The node status to report. | | @@ -324,7 +328,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -338,54 +342,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **resubmitTaskGraphExecution** -> TaskGraphLog resubmitTaskGraphExecution(namespace, id) +> TaskGraphLog resubmitTaskGraphExecution(workspace, id) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.resubmitTaskGraphExecution(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#resubmitTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -393,7 +398,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | ### Return type @@ -402,7 +407,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -416,54 +421,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **retryTaskGraphExecution** -> TaskGraphLog retryTaskGraphExecution(namespace, id) +> TaskGraphLog retryTaskGraphExecution(workspace, id) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.retryTaskGraphExecution(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#retryTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -471,7 +477,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | ### Return type @@ -480,7 +486,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -494,53 +500,54 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **stopTaskGraphExecution** -> stopTaskGraphExecution(namespace, id) +> stopTaskGraphExecution(workspace, id) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - apiInstance.stopTaskGraphExecution(namespace, id); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#stopTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -548,7 +555,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | ### Return type @@ -557,7 +564,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -571,54 +578,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitTaskGraph** -> TaskGraphLog submitTaskGraph(namespace, id) +> TaskGraphLog submitTaskGraph(workspace, id, rootTaskGraphUuid) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraphLog result = apiInstance.submitTaskGraph(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#submitTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -626,8 +635,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | +| **rootTaskGraphUuid** | **String**| UUID of the root taskgraph that this graph is assosiated with | [optional] | ### Return type @@ -635,7 +645,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -649,54 +659,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateTaskGraphLog** -> updateTaskGraphLog(namespace, id, log) +> updateTaskGraphLog(workspace, id, log) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. - String id = "id_example"; // String | The UUID of the task graph log entry. - TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. - try { - apiInstance.updateTaskGraphLog(namespace, id, log); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#updateTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String 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(); + } } - } } ``` @@ -704,7 +715,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph log entry. | | | **log** | [**TaskGraphLog**](TaskGraphLog.md)| Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. | | @@ -714,7 +725,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/TaskGraphType.md b/docs/TaskGraphType.md index 3632126..6218d10 100644 --- a/docs/TaskGraphType.md +++ b/docs/TaskGraphType.md @@ -9,5 +9,7 @@ * `REALTIME` (value: `"realtime"`) +* `NEXTFLOW` (value: `"nextflow"`) + diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md index cc5f736..76aa4e2 100644 --- a/docs/TaskGraphsApi.md +++ b/docs/TaskGraphsApi.md @@ -4,61 +4,62 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createTaskGraph**](TaskGraphsApi.md#createTaskGraph) | **POST** /taskgraphs/{namespace}/graphs | | -| [**getTaskGraph**](TaskGraphsApi.md#getTaskGraph) | **GET** /taskgraphs/{namespace}/graphs/{id} | | -| [**listTaskGraphs**](TaskGraphsApi.md#listTaskGraphs) | **GET** /taskgraphs/{namespace}/graphs | | -| [**submitTaskGraph**](TaskGraphsApi.md#submitTaskGraph) | **POST** /taskgraphs/{namespace}/graphs/{id}/submit | | -| [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{namespace}/graphs/{id} | | +| [**createTaskGraph**](TaskGraphsApi.md#createTaskGraph) | **POST** /taskgraphs/{workspace}/graphs | | +| [**getTaskGraph**](TaskGraphsApi.md#getTaskGraph) | **GET** /taskgraphs/{workspace}/graphs/{id} | | +| [**listTaskGraphs**](TaskGraphsApi.md#listTaskGraphs) | **GET** /taskgraphs/{workspace}/graphs | | +| [**submitTaskGraph**](TaskGraphsApi.md#submitTaskGraph) | **POST** /taskgraphs/{workspace}/graphs/{id}/submit | | +| [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{workspace}/graphs/{id} | | - + # **createTaskGraph** -> TaskGraph createTaskGraph(namespace, graph) +> TaskGraph createTaskGraph(workspace, graph) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | Include graphs for this namespace. - TaskGraph graph = new TaskGraph(); // TaskGraph | Create the task graph. - try { - TaskGraph result = apiInstance.createTaskGraph(namespace, graph); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#createTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -66,7 +67,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| Include graphs for this namespace. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **graph** | [**TaskGraph**](TaskGraph.md)| Create the task graph. | | ### Return type @@ -75,7 +76,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -89,54 +90,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTaskGraph** -> TaskGraph getTaskGraph(namespace, id) +> TaskGraph getTaskGraph(workspace, id) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraph result = apiInstance.getTaskGraph(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#getTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -144,7 +146,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | ### Return type @@ -153,7 +155,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -167,53 +169,54 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listTaskGraphs** -> TaskGraphs listTaskGraphs(namespace) +> TaskGraphs listTaskGraphs(workspace) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | Namespace for graphs - try { - TaskGraphs result = apiInstance.listTaskGraphs(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#listTaskGraphs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -221,7 +224,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| Namespace for graphs | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | ### Return type @@ -229,7 +232,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -243,54 +246,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitTaskGraph** -> TaskGraphLog submitTaskGraph(namespace, id) +> TaskGraphLog submitTaskGraph(workspace, id, rootTaskGraphUuid) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraphLog result = apiInstance.submitTaskGraph(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#submitTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -298,8 +303,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | +| **rootTaskGraphUuid** | **String**| UUID of the root taskgraph that this graph is assosiated with | [optional] | ### Return type @@ -307,7 +313,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -321,54 +327,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateTaskGraph** -> updateTaskGraph(namespace, id, graph) +> updateTaskGraph(workspace, id, graph) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TaskGraphsApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - TaskGraph graph = new TaskGraph(); // TaskGraph | Updates to make to the task graph. - try { - apiInstance.updateTaskGraph(namespace, id, graph); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#updateTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String 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(); + } } - } } ``` @@ -376,7 +383,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | | **graph** | [**TaskGraph**](TaskGraph.md)| Updates to make to the task graph. | | @@ -386,7 +393,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 61e4e3a..0890e68 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -4,61 +4,63 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**runSQL**](TasksApi.md#runSQL) | **POST** /sql/{namespace} | | +| [**runSQL**](TasksApi.md#runSQL) | **POST** /sql/{workspace}/{teamspace} | | | [**taskIdGet**](TasksApi.md#taskIdGet) | **GET** /task/{id} | | | [**taskIdResultGet**](TasksApi.md#taskIdResultGet) | **GET** /task/{id}/result | | | [**tasksGet**](TasksApi.md#tasksGet) | **GET** /tasks | | - + # **runSQL** -> List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding) +> List<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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TasksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) - SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - List> result = apiInstance.runSQL(namespace, sql, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#runSQL"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String 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(); + } } - } } ``` @@ -66,17 +68,18 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | | | **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type -[**List<Map<String, Object>>**](Map.md) +**List<Object>** ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -91,7 +94,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **taskIdGet** > ArrayTask taskIdGet(id) @@ -100,44 +103,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TasksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String id = "id_example"; // String | task ID to fetch - try { - ArrayTask result = apiInstance.taskIdGet(id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#taskIdGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String id = "id_example"; // String | task ID to fetch + try { + ArrayTask result = apiInstance.taskIdGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#taskIdGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -153,7 +157,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -167,7 +171,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **taskIdResultGet** > String taskIdResultGet(id, acceptEncoding) @@ -176,45 +180,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TasksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String id = "id_example"; // String | task ID to retrieve stored results - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - String result = apiInstance.taskIdResultGet(id, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#taskIdResultGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String id = "id_example"; // String | task ID to retrieve stored results + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + String result = apiInstance.taskIdResultGet(id, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#taskIdResultGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -231,7 +236,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -247,7 +252,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) @@ -256,57 +261,58 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.TasksApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to filter - String createdBy = "createdBy_example"; // String | username to filter - String array = "array_example"; // String | name/uri of array that is url-encoded to filter - Integer start = 56; // Integer | start time for tasks to filter by - Integer end = 56; // Integer | end time for tasks to filter by - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" - List excludeType = Arrays.asList(); // List | task_type to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | match file_type of task array, more than one can be included - List excludeFileType = Arrays.asList(); // List | exclude file_type of task arrays, more than one can be included - String status = "status_example"; // String | Filter to only return these statuses - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name - try { - ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#tasksGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String namespace = "namespace_example"; // String | namespace to filter + String createdBy = "createdBy_example"; // String | username to filter + String array = "array_example"; // String | name/uri of array that is url-encoded to filter + Integer start = 56; // Integer | start time for tasks to filter by + Integer end = 56; // Integer | end time for tasks to filter by + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" + List excludeType = Arrays.asList(); // List | task_type to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | match file_type of task array, more than one can be included + List excludeFileType = Arrays.asList(); // List | exclude file_type of task arrays, more than one can be included + String status = "status_example"; // String | Filter to only return these statuses + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name + try { + ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#tasksGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -335,7 +341,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/UdfApi.md b/docs/UdfApi.md index 88929df..1f73a64 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -4,66 +4,67 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**deleteUDFInfo**](UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{namespace}/{name} | | -| [**getUDFInfo**](UdfApi.md#getUDFInfo) | **GET** /udf/{namespace}/{name} | | -| [**getUDFInfoSharingPolicies**](UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{namespace}/{name}/share | | -| [**handleCopyUDF**](UdfApi.md#handleCopyUDF) | **POST** /udf/{namespace}/{name}/copy | | -| [**registerUDFInfo**](UdfApi.md#registerUDFInfo) | **POST** /udf/{namespace}/{name} | | -| [**shareUDFInfo**](UdfApi.md#shareUDFInfo) | **PATCH** /udf/{namespace}/{name}/share | | -| [**submitGenericUDF**](UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{namespace} | | -| [**submitMultiArrayUDF**](UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{namespace} | | -| [**submitUDF**](UdfApi.md#submitUDF) | **POST** /arrays/{namespace}/{array}/udf/submit | | -| [**udfNamespaceArrayEndTimestampsGet**](UdfApi.md#udfNamespaceArrayEndTimestampsGet) | **GET** /udf/{namespace}/{array}/end_timestamps | | -| [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | | - - - +| [**deleteUDFInfo**](UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{workspace}/{name} | | +| [**getUDFInfo**](UdfApi.md#getUDFInfo) | **GET** /udf/{workspace}/{name} | | +| [**getUDFInfoSharingPolicies**](UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{workspace}/{name}/share | | +| [**handleCopyUDF**](UdfApi.md#handleCopyUDF) | **POST** /udf/{workspace}/{name}/copy | | +| [**registerUDFInfo**](UdfApi.md#registerUDFInfo) | **POST** /udf/{workspace}/{name} | | +| [**shareUDFInfo**](UdfApi.md#shareUDFInfo) | **PATCH** /udf/{workspace}/{name}/share | | +| [**submitGenericUDF**](UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{workspace} | | +| [**submitMultiArrayUDF**](UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{workspace} | | +| [**submitUDF**](UdfApi.md#submitUDF) | **POST** /arrays/{workspace}/{teamspace}/{array}/udf/submit | | +| [**udfWorkspaceArrayEndTimestampsGet**](UdfApi.md#udfWorkspaceArrayEndTimestampsGet) | **GET** /udf/{workspace}/{array}/end_timestamps | | +| [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{workspace}/{name} | | + + + # **deleteUDFInfo** -> deleteUDFInfo(namespace, name) +> deleteUDFInfo(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - try { - apiInstance.deleteUDFInfo(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#deleteUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -71,7 +72,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | ### Return type @@ -80,7 +81,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -94,54 +95,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFInfo** -> UDFInfo getUDFInfo(namespace, name) +> UDFInfo getUDFInfo(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - try { - UDFInfo result = apiInstance.getUDFInfo(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#getUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -149,7 +151,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | ### Return type @@ -158,7 +160,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -173,54 +175,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFInfoSharingPolicies** -> List<UDFSharing> getUDFInfoSharingPolicies(namespace, name) +> List<UDFSharing> getUDFInfoSharingPolicies(workspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name of UDFInfo - try { - List result = apiInstance.getUDFInfoSharingPolicies(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#getUDFInfoSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -228,7 +231,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name of UDFInfo | | ### Return type @@ -237,7 +240,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -252,57 +255,58 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleCopyUDF** -> UDFCopied handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) +> UDFCopied handleCopyUDF(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name of UDFInfo - UDFCopy udFCopy = new UDFCopy(); // UDFCopy | Input/Output information to copy a UDF - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch - try { - UDFCopied result = apiInstance.handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#handleCopyUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -310,7 +314,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name of UDFInfo | | | **udFCopy** | [**UDFCopy**](UDFCopy.md)| Input/Output information to copy a UDF | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | @@ -322,7 +326,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -336,54 +340,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerUDFInfo** -> registerUDFInfo(namespace, name, udf) +> registerUDFInfo(workspace, name, udf) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to register - try { - apiInstance.registerUDFInfo(namespace, name, udf); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#registerUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -391,7 +396,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | | **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to register | | @@ -401,7 +406,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -415,54 +420,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareUDFInfo** -> shareUDFInfo(namespace, name, udfSharing) +> shareUDFInfo(workspace, name, udfSharing) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name of UDFInfo - UDFSharing udfSharing = new UDFSharing(); // UDFSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. - try { - apiInstance.shareUDFInfo(namespace, name, udfSharing); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#shareUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -470,7 +476,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name of UDFInfo | | | **udfSharing** | [**UDFSharing**](UDFSharing.md)| Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. | | @@ -480,7 +486,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -495,55 +501,56 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitGenericUDF** -> File submitGenericUDF(namespace, udf, acceptEncoding) +> File submitGenericUDF(workspace, udf, acceptEncoding) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - GenericUDF udf = new GenericUDF(); // GenericUDF | UDF to run - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - File result = apiInstance.submitGenericUDF(namespace, udf, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitGenericUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -551,7 +558,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **udf** | [**GenericUDF**](GenericUDF.md)| UDF to run | | | **acceptEncoding** | **String**| Encoding to use | [optional] | @@ -561,7 +568,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -575,55 +582,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - + # **submitMultiArrayUDF** -> File submitMultiArrayUDF(namespace, udf, acceptEncoding) +> File submitMultiArrayUDF(workspace, udf, acceptEncoding) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - File result = apiInstance.submitMultiArrayUDF(namespace, udf, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -631,7 +639,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | | | **acceptEncoding** | **String**| Encoding to use | [optional] | @@ -641,7 +649,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -655,58 +663,60 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - + # **submitUDF** -> File submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2) +> File submitUDF(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - String v2 = "v2_example"; // String | flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. - try { - File result = apiInstance.submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -714,7 +724,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | | | **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | @@ -727,7 +738,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -741,56 +752,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - -# **udfNamespaceArrayEndTimestampsGet** -> ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) + +# **udfWorkspaceArrayEndTimestampsGet** +> ArrayEndTimestampData udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#udfNamespaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -798,7 +810,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **array** | **String**| name/uri of array that is url-encoded | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -809,7 +821,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -823,54 +835,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUDFInfo** -> updateUDFInfo(namespace, name, udf) +> updateUDFInfo(workspace, name, udf) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UdfApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to update - try { - apiInstance.updateUDFInfo(namespace, name, udf); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#updateUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String 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(); + } } - } } ``` @@ -878,7 +891,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | | **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to update | | @@ -888,7 +901,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/docs/UserApi.md b/docs/UserApi.md index 35b9dba..dd38f77 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -4,13 +4,13 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addAWSAccessCredentials**](UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | | +| [**addAWSAccessCredentials**](UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{workspace}/{teamspace}/aws | | | [**addUserToOrganization**](UserApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | | -| [**checkAWSAccessCredentials**](UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | | -| [**checkAWSAccessCredentialsByName**](UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | | +| [**checkAWSAccessCredentials**](UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{workspace}/{teamspace}/aws | | +| [**checkAWSAccessCredentialsByName**](UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**confirmEmail**](UserApi.md#confirmEmail) | **POST** /user/confirm_email | | | [**createUser**](UserApi.md#createUser) | **POST** /user | | -| [**deleteAWSAccessCredentials**](UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | +| [**deleteAWSAccessCredentials**](UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /users/{username} | | | [**deleteUserFromOrganization**](UserApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | | | [**getOrganizationUser**](UserApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | | @@ -23,58 +23,60 @@ All URIs are relative to */v1* | [**revokeToken**](UserApi.md#revokeToken) | **DELETE** /tokens/{token} | | | [**tokensGet**](UserApi.md#tokensGet) | **GET** /tokens | | | [**tokensSessionGet**](UserApi.md#tokensSessionGet) | **GET** /tokens/session | | -| [**updateAWSAccessCredentials**](UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | +| [**updateAWSAccessCredentials**](UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**updateUser**](UserApi.md#updateUser) | **PATCH** /users/{username} | | | [**updateUserInOrganization**](UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | - + # **addAWSAccessCredentials** -> addAWSAccessCredentials(namespace, awsAccessCredentials) +> addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace - try { - apiInstance.addAWSAccessCredentials(namespace, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String 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(); + } } - } } ``` @@ -82,7 +84,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | | ### Return type @@ -91,7 +94,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -105,7 +108,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUserToOrganization** > addUserToOrganization(organization, user) @@ -114,44 +117,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add - try { - apiInstance.addUserToOrganization(organization, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addUserToOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add + try { + apiInstance.addUserToOrganization(organization, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#addUserToOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -168,7 +172,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -182,53 +186,55 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentials** -> List<AWSAccessCredentials> checkAWSAccessCredentials(namespace) +> List<AWSAccessCredentials> checkAWSAccessCredentials(workspace, teamspace) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - List result = apiInstance.checkAWSAccessCredentials(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#checkAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String 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(); + } } - } } ``` @@ -236,7 +242,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | ### Return type @@ -244,7 +251,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -258,54 +265,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentialsByName** -> AWSAccessCredentials checkAWSAccessCredentialsByName(namespace, name) +> AWSAccessCredentials checkAWSAccessCredentialsByName(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#checkAWSAccessCredentialsByName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String 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(); + } } - } } ``` @@ -313,7 +322,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| name | | ### Return type @@ -322,7 +332,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -336,7 +346,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **confirmEmail** > confirmEmail() @@ -345,42 +355,43 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - apiInstance.confirmEmail(); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#confirmEmail"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + apiInstance.confirmEmail(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#confirmEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -393,7 +404,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -407,7 +418,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createUser** > createUser(user) @@ -416,31 +427,44 @@ 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.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - 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(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults 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(); + } } - } } ``` @@ -456,7 +480,7 @@ null (empty response body) ### Authorization -No authorization required +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -470,53 +494,55 @@ No authorization required | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteAWSAccessCredentials** -> deleteAWSAccessCredentials(namespace, name) +> deleteAWSAccessCredentials(workspace, teamspace, name) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - apiInstance.deleteAWSAccessCredentials(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String 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(); + } } - } } ``` @@ -524,7 +550,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| name | | ### Return type @@ -533,7 +560,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -547,7 +574,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUser** > deleteUser(username) @@ -556,43 +583,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - try { - apiInstance.deleteUser(username); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + try { + apiInstance.deleteUser(username); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -608,7 +636,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -622,7 +650,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUserFromOrganization** > deleteUserFromOrganization(organization, username) @@ -631,44 +659,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - apiInstance.deleteUserFromOrganization(organization, username); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteUserFromOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + apiInstance.deleteUserFromOrganization(organization, username); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUserFromOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -685,7 +714,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -699,7 +728,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganizationUser** > OrganizationUser getOrganizationUser(organization, username) @@ -708,45 +737,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - OrganizationUser result = apiInstance.getOrganizationUser(organization, username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getOrganizationUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + OrganizationUser result = apiInstance.getOrganizationUser(organization, username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getOrganizationUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -763,7 +793,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -778,53 +808,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getSession** -> Token getSession(rememberMe) +> Token getSession(rememberMe, expires) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String rememberMe = "rememberMe_example"; // String | flag to create a token with expiration of 30 days, default is false - try { - Token result = apiInstance.getSession(rememberMe); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getSession"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String rememberMe = "rememberMe_example"; // String | flag to create a token with expiration of 30 days, default is false + OffsetDateTime expires = OffsetDateTime.now(); // OffsetDateTime | Expiration date for token, if empty token defaults to 30 minutes + try { + Token result = apiInstance.getSession(rememberMe, expires); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getSession"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -833,6 +865,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **rememberMe** | **String**| flag to create a token with expiration of 30 days, default is false | [optional] | +| **expires** | **OffsetDateTime**| Expiration date for token, if empty token defaults to 30 minutes | [optional] | ### Return type @@ -840,7 +873,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -854,7 +887,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTokenScopes** > List<TokenScope> getTokenScopes() @@ -863,43 +896,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.getTokenScopes(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getTokenScopes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.getTokenScopes(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getTokenScopes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -912,7 +946,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -926,7 +960,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUser** > User getUser() @@ -935,43 +969,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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - User result = apiInstance.getUser(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + User result = apiInstance.getUser(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -984,7 +1019,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -998,7 +1033,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUserWithUsername** > User getUserWithUsername(username) @@ -1007,44 +1042,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - try { - User result = apiInstance.getUserWithUsername(username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getUserWithUsername"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + try { + User result = apiInstance.getUserWithUsername(username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUserWithUsername"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1060,7 +1096,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1075,7 +1111,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **requestToken** > Token requestToken(tokenRequest) @@ -1084,44 +1120,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - TokenRequest tokenRequest = new TokenRequest(); // TokenRequest | token request object - try { - Token result = apiInstance.requestToken(tokenRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#requestToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + TokenRequest tokenRequest = new TokenRequest(); // TokenRequest | token request object + try { + Token result = apiInstance.requestToken(tokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#requestToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1137,7 +1174,7 @@ public class Example { ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1151,7 +1188,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **resetUserPassword** > resetUserPassword(user) @@ -1160,43 +1197,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update - try { - apiInstance.resetUserPassword(user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#resetUserPassword"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update + try { + apiInstance.resetUserPassword(user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#resetUserPassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1212,7 +1250,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1227,7 +1265,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **revokeToken** > revokeToken(token) @@ -1236,43 +1274,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String token = "token_example"; // String | token name or token itself - try { - apiInstance.revokeToken(token); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#revokeToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String token = "token_example"; // String | token name or token itself + try { + apiInstance.revokeToken(token); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#revokeToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1288,7 +1327,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1302,7 +1341,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tokensGet** > List<Token> tokensGet() @@ -1311,43 +1350,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.tokensGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#tokensGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.tokensGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#tokensGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1360,7 +1400,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1374,7 +1414,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tokensSessionGet** > List<Token> tokensSessionGet() @@ -1383,43 +1423,44 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.tokensSessionGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#tokensSessionGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.tokensSessionGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#tokensSessionGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1432,7 +1473,7 @@ This endpoint does not need any parameter. ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1446,54 +1487,56 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateAWSAccessCredentials** -> updateAWSAccessCredentials(namespace, name, awsAccessCredentials) +> updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials) 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update - try { - apiInstance.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String 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(); + } } - } } ``` @@ -1501,7 +1544,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| name | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | | @@ -1511,7 +1555,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1525,7 +1569,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUser** > updateUser(username, user) @@ -1534,44 +1578,45 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - User user = new User(); // User | user details to update - try { - apiInstance.updateUser(username, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + User user = new User(); // User | user details to update + try { + apiInstance.updateUser(username, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1588,7 +1633,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers @@ -1602,7 +1647,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUserInOrganization** > updateUserInOrganization(organization, username, user) @@ -1611,45 +1656,46 @@ 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.rest_api.auth.*; -import io.tiledb.cloud.rest_api.models.*; -import io.tiledb.cloud.rest_api.api.UserApi; + +import org.openapitools.client.rest_api.ApiClient; +import org.openapitools.client.rest_api.ApiException; +import org.openapitools.client.rest_api.Configuration; +import org.openapitools.client.models.*; +import org.openapitools.client.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update - try { - apiInstance.updateUserInOrganization(organization, username, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateUserInOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update + try { + apiInstance.updateUserInOrganization(organization, username, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateUserInOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } } - } } ``` @@ -1667,7 +1713,7 @@ null (empty response body) ### Authorization -[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) ### HTTP request headers diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e6441136f3d4ba8a0da8d277868979cfbc8ad796..7454180f2ae8848c63b8b4dea2cb829da983f2fa 100644 GIT binary patch literal 59536 zcma&NbC71ylI~qywr$(CZQJHswz}-9F59+k+g;UV+cs{`J?GrGXYR~=-ydruB3JCa zB64N^cILAcWk5iofq)<(fq;O7{th4@;QxID0)qN`mJ?GIqLY#rX8-|G{5M0pdVW5^ zzXk$-2kQTAC?_N@B`&6-N-rmVFE=$QD?>*=4<|!MJu@}isLc4AW#{m2if&A5T5g&~ ziuMQeS*U5sL6J698wOd)K@oK@1{peP5&Esut<#VH^u)gp`9H4)`uE!2$>RTctN+^u z=ASkePDZA-X8)rp%D;p*~P?*a_=*Kwc<^>QSH|^<0>o37lt^+Mj1;4YvJ(JR-Y+?%Nu}JAYj5 z_Qc5%Ao#F?q32i?ZaN2OSNhWL;2oDEw_({7ZbgUjna!Fqn3NzLM@-EWFPZVmc>(fZ z0&bF-Ch#p9C{YJT9Rcr3+Y_uR^At1^BxZ#eo>$PLJF3=;t_$2|t+_6gg5(j{TmjYU zK12c&lE?Eh+2u2&6Gf*IdKS&6?rYbSEKBN!rv{YCm|Rt=UlPcW9j`0o6{66#y5t9C zruFA2iKd=H%jHf%ypOkxLnO8#H}#Zt{8p!oi6)7#NqoF({t6|J^?1e*oxqng9Q2Cc zg%5Vu!em)}Yuj?kaP!D?b?(C*w!1;>R=j90+RTkyEXz+9CufZ$C^umX^+4|JYaO<5 zmIM3#dv`DGM;@F6;(t!WngZSYzHx?9&$xEF70D1BvfVj<%+b#)vz)2iLCrTeYzUcL z(OBnNoG6Le%M+@2oo)&jdOg=iCszzv59e zDRCeaX8l1hC=8LbBt|k5?CXgep=3r9BXx1uR8!p%Z|0+4Xro=xi0G!e{c4U~1j6!) zH6adq0}#l{%*1U(Cb%4AJ}VLWKBPi0MoKFaQH6x?^hQ!6em@993xdtS%_dmevzeNl z(o?YlOI=jl(`L9^ z0O+H9k$_@`6L13eTT8ci-V0ljDMD|0ifUw|Q-Hep$xYj0hTO@0%IS^TD4b4n6EKDG z??uM;MEx`s98KYN(K0>c!C3HZdZ{+_53DO%9k5W%pr6yJusQAv_;IA}925Y%;+!tY z%2k!YQmLLOr{rF~!s<3-WEUs)`ix_mSU|cNRBIWxOox_Yb7Z=~Q45ZNe*u|m^|)d* zog=i>`=bTe!|;8F+#H>EjIMcgWcG2ORD`w0WD;YZAy5#s{65~qfI6o$+Ty&-hyMyJ z3Ra~t>R!p=5ZpxA;QkDAoPi4sYOP6>LT+}{xp}tk+<0k^CKCFdNYG(Es>p0gqD)jP zWOeX5G;9(m@?GOG7g;e74i_|SmE?`B2i;sLYwRWKLy0RLW!Hx`=!LH3&k=FuCsM=9M4|GqzA)anEHfxkB z?2iK-u(DC_T1};KaUT@3nP~LEcENT^UgPvp!QC@Dw&PVAhaEYrPey{nkcn(ro|r7XUz z%#(=$7D8uP_uU-oPHhd>>^adbCSQetgSG`e$U|7mr!`|bU0aHl_cmL)na-5x1#OsVE#m*+k84Y^+UMeSAa zbrVZHU=mFwXEaGHtXQq`2ZtjfS!B2H{5A<3(nb-6ARVV8kEmOkx6D2x7~-6hl;*-*}2Xz;J#a8Wn;_B5=m zl3dY;%krf?i-Ok^Pal-}4F`{F@TYPTwTEhxpZK5WCpfD^UmM_iYPe}wpE!Djai6_{ z*pGO=WB47#Xjb7!n2Ma)s^yeR*1rTxp`Mt4sfA+`HwZf%!7ZqGosPkw69`Ix5Ku6G z@Pa;pjzV&dn{M=QDx89t?p?d9gna*}jBly*#1!6}5K<*xDPJ{wv4& zM$17DFd~L*Te3A%yD;Dp9UGWTjRxAvMu!j^Tbc}2v~q^59d4bz zvu#!IJCy(BcWTc`;v$9tH;J%oiSJ_i7s;2`JXZF+qd4C)vY!hyCtl)sJIC{ebI*0> z@x>;EzyBv>AI-~{D6l6{ST=em*U( z(r$nuXY-#CCi^8Z2#v#UXOt`dbYN1z5jzNF2 z411?w)whZrfA20;nl&C1Gi+gk<`JSm+{|*2o<< zqM#@z_D`Cn|0H^9$|Tah)0M_X4c37|KQ*PmoT@%xHc3L1ZY6(p(sNXHa&49Frzto& zR`c~ClHpE~4Z=uKa5S(-?M8EJ$zt0&fJk~p$M#fGN1-y$7!37hld`Uw>Urri(DxLa;=#rK0g4J)pXMC zxzraOVw1+kNWpi#P=6(qxf`zSdUC?D$i`8ZI@F>k6k zz21?d+dw7b&i*>Kv5L(LH-?J%@WnqT7j#qZ9B>|Zl+=> z^U-pV@1y_ptHo4hl^cPRWewbLQ#g6XYQ@EkiP z;(=SU!yhjHp%1&MsU`FV1Z_#K1&(|5n(7IHbx&gG28HNT)*~-BQi372@|->2Aw5It z0CBpUcMA*QvsPy)#lr!lIdCi@1k4V2m!NH)%Px(vu-r(Q)HYc!p zJ^$|)j^E#q#QOgcb^pd74^JUi7fUmMiNP_o*lvx*q%_odv49Dsv$NV;6J z9GOXKomA{2Pb{w}&+yHtH?IkJJu~}Z?{Uk++2mB8zyvh*xhHKE``99>y#TdD z&(MH^^JHf;g(Tbb^&8P*;_i*2&fS$7${3WJtV7K&&(MBV2~)2KB3%cWg#1!VE~k#C z!;A;?p$s{ihyojEZz+$I1)L}&G~ml=udD9qh>Tu(ylv)?YcJT3ihapi!zgPtWb*CP zlLLJSRCj-^w?@;RU9aL2zDZY1`I3d<&OMuW=c3$o0#STpv_p3b9Wtbql>w^bBi~u4 z3D8KyF?YE?=HcKk!xcp@Cigvzy=lnFgc^9c%(^F22BWYNAYRSho@~*~S)4%AhEttv zvq>7X!!EWKG?mOd9&n>vvH1p4VzE?HCuxT-u+F&mnsfDI^}*-d00-KAauEaXqg3k@ zy#)MGX!X;&3&0s}F3q40ZmVM$(H3CLfpdL?hB6nVqMxX)q=1b}o_PG%r~hZ4gUfSp zOH4qlEOW4OMUc)_m)fMR_rl^pCfXc{$fQbI*E&mV77}kRF z&{<06AJyJ!e863o-V>FA1a9Eemx6>^F$~9ppt()ZbPGfg_NdRXBWoZnDy2;#ODgf! zgl?iOcF7Meo|{AF>KDwTgYrJLb$L2%%BEtO>T$C?|9bAB&}s;gI?lY#^tttY&hfr# zKhC+&b-rpg_?~uVK%S@mQleU#_xCsvIPK*<`E0fHE1&!J7!xD#IB|SSPW6-PyuqGn3^M^Rz%WT{e?OI^svARX&SAdU77V(C~ zM$H{Kg59op{<|8ry9ecfP%=kFm(-!W&?U0@<%z*+!*<e0XesMxRFu9QnGqun6R_%T+B%&9Dtk?*d$Q zb~>84jEAPi@&F@3wAa^Lzc(AJz5gsfZ7J53;@D<;Klpl?sK&u@gie`~vTsbOE~Cd4 z%kr56mI|#b(Jk&;p6plVwmNB0H@0SmgdmjIn5Ne@)}7Vty(yb2t3ev@22AE^s!KaN zyQ>j+F3w=wnx7w@FVCRe+`vUH)3gW%_72fxzqX!S&!dchdkRiHbXW1FMrIIBwjsai8`CB2r4mAbwp%rrO>3B$Zw;9=%fXI9B{d(UzVap7u z6piC-FQ)>}VOEuPpuqznpY`hN4dGa_1Xz9rVg(;H$5Te^F0dDv*gz9JS<|>>U0J^# z6)(4ICh+N_Q`Ft0hF|3fSHs*?a=XC;e`sJaU9&d>X4l?1W=|fr!5ShD|nv$GK;j46@BV6+{oRbWfqOBRb!ir88XD*SbC(LF}I1h#6@dvK%Toe%@ zhDyG$93H8Eu&gCYddP58iF3oQH*zLbNI;rN@E{T9%A8!=v#JLxKyUe}e}BJpB{~uN zqgxRgo0*-@-iaHPV8bTOH(rS(huwK1Xg0u+e!`(Irzu@Bld&s5&bWgVc@m7;JgELd zimVs`>vQ}B_1(2#rv#N9O`fJpVfPc7V2nv34PC);Dzbb;p!6pqHzvy?2pD&1NE)?A zt(t-ucqy@wn9`^MN5apa7K|L=9>ISC>xoc#>{@e}m#YAAa1*8-RUMKwbm|;5p>T`Z zNf*ph@tnF{gmDa3uwwN(g=`Rh)4!&)^oOy@VJaK4lMT&5#YbXkl`q?<*XtsqD z9PRK6bqb)fJw0g-^a@nu`^?71k|m3RPRjt;pIkCo1{*pdqbVs-Yl>4E>3fZx3Sv44grW=*qdSoiZ9?X0wWyO4`yDHh2E!9I!ZFi zVL8|VtW38}BOJHW(Ax#KL_KQzarbuE{(%TA)AY)@tY4%A%P%SqIU~8~-Lp3qY;U-} z`h_Gel7;K1h}7$_5ZZT0&%$Lxxr-<89V&&TCsu}LL#!xpQ1O31jaa{U34~^le*Y%L za?7$>Jk^k^pS^_M&cDs}NgXlR>16AHkSK-4TRaJSh#h&p!-!vQY%f+bmn6x`4fwTp z$727L^y`~!exvmE^W&#@uY!NxJi`g!i#(++!)?iJ(1)2Wk;RN zFK&O4eTkP$Xn~4bB|q8y(btx$R#D`O@epi4ofcETrx!IM(kWNEe42Qh(8*KqfP(c0 zouBl6>Fc_zM+V;F3znbo{x#%!?mH3`_ANJ?y7ppxS@glg#S9^MXu|FM&ynpz3o&Qh z2ujAHLF3($pH}0jXQsa#?t--TnF1P73b?4`KeJ9^qK-USHE)4!IYgMn-7z|=ALF5SNGkrtPG@Y~niUQV2?g$vzJN3nZ{7;HZHzWAeQ;5P|@Tl3YHpyznGG4-f4=XflwSJY+58-+wf?~Fg@1p1wkzuu-RF3j2JX37SQUc? zQ4v%`V8z9ZVZVqS8h|@@RpD?n0W<=hk=3Cf8R?d^9YK&e9ZybFY%jdnA)PeHvtBe- zhMLD+SSteHBq*q)d6x{)s1UrsO!byyLS$58WK;sqip$Mk{l)Y(_6hEIBsIjCr5t>( z7CdKUrJTrW%qZ#1z^n*Lb8#VdfzPw~OIL76aC+Rhr<~;4Tl!sw?Rj6hXj4XWa#6Tp z@)kJ~qOV)^Rh*-?aG>ic2*NlC2M7&LUzc9RT6WM%Cpe78`iAowe!>(T0jo&ivn8-7 zs{Qa@cGy$rE-3AY0V(l8wjI^uB8Lchj@?L}fYal^>T9z;8juH@?rG&g-t+R2dVDBe zq!K%{e-rT5jX19`(bP23LUN4+_zh2KD~EAYzhpEO3MUG8@}uBHH@4J zd`>_(K4q&>*k82(dDuC)X6JuPrBBubOg7qZ{?x!r@{%0);*`h*^F|%o?&1wX?Wr4b z1~&cy#PUuES{C#xJ84!z<1tp9sfrR(i%Tu^jnXy;4`Xk;AQCdFC@?V%|; zySdC7qS|uQRcH}EFZH%mMB~7gi}a0utE}ZE_}8PQH8f;H%PN41Cb9R%w5Oi5el^fd z$n{3SqLCnrF##x?4sa^r!O$7NX!}&}V;0ZGQ&K&i%6$3C_dR%I7%gdQ;KT6YZiQrW zk%q<74oVBV>@}CvJ4Wj!d^?#Zwq(b$E1ze4$99DuNg?6t9H}k_|D7KWD7i0-g*EO7 z;5{hSIYE4DMOK3H%|f5Edx+S0VI0Yw!tsaRS2&Il2)ea^8R5TG72BrJue|f_{2UHa z@w;^c|K3da#$TB0P3;MPlF7RuQeXT$ zS<<|C0OF(k)>fr&wOB=gP8!Qm>F41u;3esv7_0l%QHt(~+n; zf!G6%hp;Gfa9L9=AceiZs~tK+Tf*Wof=4!u{nIO90jH@iS0l+#%8=~%ASzFv7zqSB^?!@N7)kp0t&tCGLmzXSRMRyxCmCYUD2!B`? zhs$4%KO~m=VFk3Buv9osha{v+mAEq=ik3RdK@;WWTV_g&-$U4IM{1IhGX{pAu%Z&H zFfwCpUsX%RKg);B@7OUzZ{Hn{q6Vv!3#8fAg!P$IEx<0vAx;GU%}0{VIsmFBPq_mb zpe^BChDK>sc-WLKl<6 zwbW|e&d&dv9Wu0goueyu>(JyPx1mz0v4E?cJjFuKF71Q1)AL8jHO$!fYT3(;U3Re* zPPOe%*O+@JYt1bW`!W_1!mN&=w3G9ru1XsmwfS~BJ))PhD(+_J_^N6j)sx5VwbWK| zwRyC?W<`pOCY)b#AS?rluxuuGf-AJ=D!M36l{ua?@SJ5>e!IBr3CXIxWw5xUZ@Xrw z_R@%?{>d%Ld4p}nEsiA@v*nc6Ah!MUs?GA7e5Q5lPpp0@`%5xY$C;{%rz24$;vR#* zBP=a{)K#CwIY%p} zXVdxTQ^HS@O&~eIftU+Qt^~(DGxrdi3k}DdT^I7Iy5SMOp$QuD8s;+93YQ!OY{eB24%xY7ml@|M7I(Nb@K_-?F;2?et|CKkuZK_>+>Lvg!>JE~wN`BI|_h6$qi!P)+K-1Hh(1;a`os z55)4Q{oJiA(lQM#;w#Ta%T0jDNXIPM_bgESMCDEg6rM33anEr}=|Fn6)|jBP6Y}u{ zv9@%7*#RI9;fv;Yii5CI+KrRdr0DKh=L>)eO4q$1zmcSmglsV`*N(x=&Wx`*v!!hn6X-l0 zP_m;X??O(skcj+oS$cIdKhfT%ABAzz3w^la-Ucw?yBPEC+=Pe_vU8nd-HV5YX6X8r zZih&j^eLU=%*;VzhUyoLF;#8QsEfmByk+Y~caBqSvQaaWf2a{JKB9B>V&r?l^rXaC z8)6AdR@Qy_BxQrE2Fk?ewD!SwLuMj@&d_n5RZFf7=>O>hzVE*seW3U?_p|R^CfoY`?|#x9)-*yjv#lo&zP=uI`M?J zbzC<^3x7GfXA4{FZ72{PE*-mNHyy59Q;kYG@BB~NhTd6pm2Oj=_ zizmD?MKVRkT^KmXuhsk?eRQllPo2Ubk=uCKiZ&u3Xjj~<(!M94c)Tez@9M1Gfs5JV z->@II)CDJOXTtPrQudNjE}Eltbjq>6KiwAwqvAKd^|g!exgLG3;wP+#mZYr`cy3#39e653d=jrR-ulW|h#ddHu(m9mFoW~2yE zz5?dB%6vF}+`-&-W8vy^OCxm3_{02royjvmwjlp+eQDzFVEUiyO#gLv%QdDSI#3W* z?3!lL8clTaNo-DVJw@ynq?q!%6hTQi35&^>P85G$TqNt78%9_sSJt2RThO|JzM$iL zg|wjxdMC2|Icc5rX*qPL(coL!u>-xxz-rFiC!6hD1IR%|HSRsV3>Kq~&vJ=s3M5y8SG%YBQ|{^l#LGlg!D?E>2yR*eV%9m$_J6VGQ~AIh&P$_aFbh zULr0Z$QE!QpkP=aAeR4ny<#3Fwyw@rZf4?Ewq`;mCVv}xaz+3ni+}a=k~P+yaWt^L z@w67!DqVf7D%7XtXX5xBW;Co|HvQ8WR1k?r2cZD%U;2$bsM%u8{JUJ5Z0k= zZJARv^vFkmWx15CB=rb=D4${+#DVqy5$C%bf`!T0+epLJLnh1jwCdb*zuCL}eEFvE z{rO1%gxg>1!W(I!owu*mJZ0@6FM(?C+d*CeceZRW_4id*D9p5nzMY&{mWqrJomjIZ z97ZNnZ3_%Hx8dn;H>p8m7F#^2;T%yZ3H;a&N7tm=Lvs&lgJLW{V1@h&6Vy~!+Ffbb zv(n3+v)_D$}dqd!2>Y2B)#<+o}LH#%ogGi2-?xRIH)1!SD)u-L65B&bsJTC=LiaF+YOCif2dUX6uAA|#+vNR z>U+KQekVGon)Yi<93(d!(yw1h3&X0N(PxN2{%vn}cnV?rYw z$N^}_o!XUB!mckL`yO1rnUaI4wrOeQ(+&k?2mi47hzxSD`N#-byqd1IhEoh!PGq>t z_MRy{5B0eKY>;Ao3z$RUU7U+i?iX^&r739F)itdrTpAi-NN0=?^m%?{A9Ly2pVv>Lqs6moTP?T2-AHqFD-o_ znVr|7OAS#AEH}h8SRPQ@NGG47dO}l=t07__+iK8nHw^(AHx&Wb<%jPc$$jl6_p(b$ z)!pi(0fQodCHfM)KMEMUR&UID>}m^(!{C^U7sBDOA)$VThRCI0_+2=( zV8mMq0R(#z;C|7$m>$>`tX+T|xGt(+Y48@ZYu#z;0pCgYgmMVbFb!$?%yhZqP_nhn zy4<#3P1oQ#2b51NU1mGnHP$cf0j-YOgAA}A$QoL6JVLcmExs(kU{4z;PBHJD%_=0F z>+sQV`mzijSIT7xn%PiDKHOujX;n|M&qr1T@rOxTdxtZ!&u&3HHFLYD5$RLQ=heur zb>+AFokUVQeJy-#LP*^)spt{mb@Mqe=A~-4p0b+Bt|pZ+@CY+%x}9f}izU5;4&QFE zO1bhg&A4uC1)Zb67kuowWY4xbo&J=%yoXlFB)&$d*-}kjBu|w!^zbD1YPc0-#XTJr z)pm2RDy%J3jlqSMq|o%xGS$bPwn4AqitC6&e?pqWcjWPt{3I{>CBy;hg0Umh#c;hU3RhCUX=8aR>rmd` z7Orw(5tcM{|-^J?ZAA9KP|)X6n9$-kvr#j5YDecTM6n z&07(nD^qb8hpF0B^z^pQ*%5ePYkv&FabrlI61ntiVp!!C8y^}|<2xgAd#FY=8b*y( zuQOuvy2`Ii^`VBNJB&R!0{hABYX55ooCAJSSevl4RPqEGb)iy_0H}v@vFwFzD%>#I>)3PsouQ+_Kkbqy*kKdHdfkN7NBcq%V{x^fSxgXpg7$bF& zj!6AQbDY(1u#1_A#1UO9AxiZaCVN2F0wGXdY*g@x$ByvUA?ePdide0dmr#}udE%K| z3*k}Vv2Ew2u1FXBaVA6aerI36R&rzEZeDDCl5!t0J=ug6kuNZzH>3i_VN`%BsaVB3 zQYw|Xub_SGf{)F{$ZX5`Jc!X!;eybjP+o$I{Z^Hsj@D=E{MnnL+TbC@HEU2DjG{3-LDGIbq()U87x4eS;JXnSh;lRlJ z>EL3D>wHt-+wTjQF$fGyDO$>d+(fq@bPpLBS~xA~R=3JPbS{tzN(u~m#Po!?H;IYv zE;?8%^vle|%#oux(Lj!YzBKv+Fd}*Ur-dCBoX*t{KeNM*n~ZPYJ4NNKkI^MFbz9!v z4(Bvm*Kc!-$%VFEewYJKz-CQN{`2}KX4*CeJEs+Q(!kI%hN1!1P6iOq?ovz}X0IOi z)YfWpwW@pK08^69#wSyCZkX9?uZD?C^@rw^Y?gLS_xmFKkooyx$*^5#cPqntNTtSG zlP>XLMj2!VF^0k#ole7`-c~*~+_T5ls?x4)ah(j8vo_ zwb%S8qoaZqY0-$ZI+ViIA_1~~rAH7K_+yFS{0rT@eQtTAdz#8E5VpwnW!zJ_^{Utv zlW5Iar3V5t&H4D6A=>?mq;G92;1cg9a2sf;gY9pJDVKn$DYdQlvfXq}zz8#LyPGq@ z+`YUMD;^-6w&r-82JL7mA8&M~Pj@aK!m{0+^v<|t%APYf7`}jGEhdYLqsHW-Le9TL z_hZZ1gbrz7$f9^fAzVIP30^KIz!!#+DRLL+qMszvI_BpOSmjtl$hh;&UeM{ER@INV zcI}VbiVTPoN|iSna@=7XkP&-4#06C};8ajbxJ4Gcq8(vWv4*&X8bM^T$mBk75Q92j z1v&%a;OSKc8EIrodmIiw$lOES2hzGDcjjB`kEDfJe{r}yE6`eZL zEB`9u>Cl0IsQ+t}`-cx}{6jqcANucqIB>Qmga_&<+80E2Q|VHHQ$YlAt{6`Qu`HA3 z03s0-sSlwbvgi&_R8s={6<~M^pGvBNjKOa>tWenzS8s zR>L7R5aZ=mSU{f?ib4Grx$AeFvtO5N|D>9#)ChH#Fny2maHWHOf2G=#<9Myot#+4u zWVa6d^Vseq_0=#AYS(-m$Lp;*8nC_6jXIjEM`omUmtH@QDs3|G)i4j*#_?#UYVZvJ z?YjT-?!4Q{BNun;dKBWLEw2C-VeAz`%?A>p;)PL}TAZn5j~HK>v1W&anteARlE+~+ zj>c(F;?qO3pXBb|#OZdQnm<4xWmn~;DR5SDMxt0UK_F^&eD|KZ=O;tO3vy4@4h^;2 zUL~-z`-P1aOe?|ZC1BgVsL)2^J-&vIFI%q@40w0{jjEfeVl)i9(~bt2z#2Vm)p`V_ z1;6$Ae7=YXk#=Qkd24Y23t&GvRxaOoad~NbJ+6pxqzJ>FY#Td7@`N5xp!n(c!=RE& z&<<@^a$_Ys8jqz4|5Nk#FY$~|FPC0`*a5HH!|Gssa9=~66&xG9)|=pOOJ2KE5|YrR zw!w6K2aC=J$t?L-;}5hn6mHd%hC;p8P|Dgh6D>hGnXPgi;6r+eA=?f72y9(Cf_ho{ zH6#)uD&R=73^$$NE;5piWX2bzR67fQ)`b=85o0eOLGI4c-Tb@-KNi2pz=Ke@SDcPn za$AxXib84`!Sf;Z3B@TSo`Dz7GM5Kf(@PR>Ghzi=BBxK8wRp>YQoXm+iL>H*Jo9M3 z6w&E?BC8AFTFT&Tv8zf+m9<&S&%dIaZ)Aoqkak_$r-2{$d~0g2oLETx9Y`eOAf14QXEQw3tJne;fdzl@wV#TFXSLXM2428F-Q}t+n2g%vPRMUzYPvzQ9f# zu(liiJem9P*?0%V@RwA7F53r~|I!Ty)<*AsMX3J{_4&}{6pT%Tpw>)^|DJ)>gpS~1rNEh z0$D?uO8mG?H;2BwM5a*26^7YO$XjUm40XmBsb63MoR;bJh63J;OngS5sSI+o2HA;W zdZV#8pDpC9Oez&L8loZO)MClRz!_!WD&QRtQxnazhT%Vj6Wl4G11nUk8*vSeVab@N#oJ}`KyJv+8Mo@T1-pqZ1t|?cnaVOd;1(h9 z!$DrN=jcGsVYE-0-n?oCJ^4x)F}E;UaD-LZUIzcD?W^ficqJWM%QLy6QikrM1aKZC zi{?;oKwq^Vsr|&`i{jIphA8S6G4)$KGvpULjH%9u(Dq247;R#l&I0{IhcC|oBF*Al zvLo7Xte=C{aIt*otJD}BUq)|_pdR>{zBMT< z(^1RpZv*l*m*OV^8>9&asGBo8h*_4q*)-eCv*|Pq=XNGrZE)^(SF7^{QE_~4VDB(o zVcPA_!G+2CAtLbl+`=Q~9iW`4ZRLku!uB?;tWqVjB0lEOf}2RD7dJ=BExy=<9wkb- z9&7{XFA%n#JsHYN8t5d~=T~5DcW4$B%3M+nNvC2`0!#@sckqlzo5;hhGi(D9=*A4` z5ynobawSPRtWn&CDLEs3Xf`(8^zDP=NdF~F^s&={l7(aw&EG}KWpMjtmz7j_VLO;@ zM2NVLDxZ@GIv7*gzl1 zjq78tv*8#WSY`}Su0&C;2F$Ze(q>F(@Wm^Gw!)(j;dk9Ad{STaxn)IV9FZhm*n+U} zi;4y*3v%A`_c7a__DJ8D1b@dl0Std3F||4Wtvi)fCcBRh!X9$1x!_VzUh>*S5s!oq z;qd{J_r79EL2wIeiGAqFstWtkfIJpjVh%zFo*=55B9Zq~y0=^iqHWfQl@O!Ak;(o*m!pZqe9 z%U2oDOhR)BvW8&F70L;2TpkzIutIvNQaTjjs5V#8mV4!NQ}zN=i`i@WI1z0eN-iCS z;vL-Wxc^Vc_qK<5RPh(}*8dLT{~GzE{w2o$2kMFaEl&q zP{V=>&3kW7tWaK-Exy{~`v4J0U#OZBk{a9{&)&QG18L@6=bsZ1zC_d{{pKZ-Ey>I> z;8H0t4bwyQqgu4hmO`3|4K{R*5>qnQ&gOfdy?z`XD%e5+pTDzUt3`k^u~SaL&XMe= z9*h#kT(*Q9jO#w2Hd|Mr-%DV8i_1{J1MU~XJ3!WUplhXDYBpJH><0OU`**nIvPIof z|N8@I=wA)sf45SAvx||f?Z5uB$kz1qL3Ky_{%RPdP5iN-D2!p5scq}buuC00C@jom zhfGKm3|f?Z0iQ|K$Z~!`8{nmAS1r+fp6r#YDOS8V*;K&Gs7Lc&f^$RC66O|)28oh`NHy&vq zJh+hAw8+ybTB0@VhWN^0iiTnLsCWbS_y`^gs!LX!Lw{yE``!UVzrV24tP8o;I6-65 z1MUiHw^{bB15tmrVT*7-#sj6cs~z`wk52YQJ*TG{SE;KTm#Hf#a~|<(|ImHH17nNM z`Ub{+J3dMD!)mzC8b(2tZtokKW5pAwHa?NFiso~# z1*iaNh4lQ4TS)|@G)H4dZV@l*Vd;Rw;-;odDhW2&lJ%m@jz+Panv7LQm~2Js6rOW3 z0_&2cW^b^MYW3)@o;neZ<{B4c#m48dAl$GCc=$>ErDe|?y@z`$uq3xd(%aAsX)D%l z>y*SQ%My`yDP*zof|3@_w#cjaW_YW4BdA;#Glg1RQcJGY*CJ9`H{@|D+*e~*457kd z73p<%fB^PV!Ybw@)Dr%(ZJbX}xmCStCYv#K3O32ej{$9IzM^I{6FJ8!(=azt7RWf4 z7ib0UOPqN40X!wOnFOoddd8`!_IN~9O)#HRTyjfc#&MCZ zZAMzOVB=;qwt8gV?{Y2?b=iSZG~RF~uyx18K)IDFLl})G1v@$(s{O4@RJ%OTJyF+Cpcx4jmy|F3euCnMK!P2WTDu5j z{{gD$=M*pH!GGzL%P)V2*ROm>!$Y=z|D`!_yY6e7SU$~a5q8?hZGgaYqaiLnkK%?0 zs#oI%;zOxF@g*@(V4p!$7dS1rOr6GVs6uYCTt2h)eB4?(&w8{#o)s#%gN@BBosRUe z)@P@8_Zm89pr~)b>e{tbPC~&_MR--iB{=)y;INU5#)@Gix-YpgP<-c2Ms{9zuCX|3 z!p(?VaXww&(w&uBHzoT%!A2=3HAP>SDxcljrego7rY|%hxy3XlODWffO_%g|l+7Y_ zqV(xbu)s4lV=l7M;f>vJl{`6qBm>#ZeMA}kXb97Z)?R97EkoI?x6Lp0yu1Z>PS?2{ z0QQ(8D)|lc9CO3B~e(pQM&5(1y&y=e>C^X$`)_&XuaI!IgDTVqt31wX#n+@!a_A0ZQkA zCJ2@M_4Gb5MfCrm5UPggeyh)8 zO9?`B0J#rkoCx(R0I!ko_2?iO@|oRf1;3r+i)w-2&j?=;NVIdPFsB)`|IC0zk6r9c zRrkfxWsiJ(#8QndNJj@{@WP2Ackr|r1VxV{7S&rSU(^)-M8gV>@UzOLXu9K<{6e{T zXJ6b92r$!|lwjhmgqkdswY&}c)KW4A)-ac%sU;2^fvq7gfUW4Bw$b!i@duy1CAxSn z(pyh$^Z=&O-q<{bZUP+$U}=*#M9uVc>CQVgDs4swy5&8RAHZ~$)hrTF4W zPsSa~qYv_0mJnF89RnnJTH`3}w4?~epFl=D(35$ zWa07ON$`OMBOHgCmfO(9RFc<)?$x)N}Jd2A(<*Ll7+4jrRt9w zwGxExUXd9VB#I|DwfxvJ;HZ8Q{37^wDhaZ%O!oO(HpcqfLH%#a#!~;Jl7F5>EX_=8 z{()l2NqPz>La3qJR;_v+wlK>GsHl;uRA8%j`A|yH@k5r%55S9{*Cp%uw6t`qc1!*T za2OeqtQj7sAp#Q~=5Fs&aCR9v>5V+s&RdNvo&H~6FJOjvaj--2sYYBvMq;55%z8^o z|BJDA4vzfow#DO#ZQHh;Oq_{r+qP{R9ox2TOgwQiv7Ow!zjN+A@BN;0tA2lUb#+zO z(^b89eV)D7UVE+h{mcNc6&GtpOqDn_?VAQ)Vob$hlFwW%xh>D#wml{t&Ofmm_d_+; zKDxzdr}`n2Rw`DtyIjrG)eD0vut$}dJAZ0AohZ+ZQdWXn_Z@dI_y=7t3q8x#pDI-K z2VVc&EGq445Rq-j0=U=Zx`oBaBjsefY;%)Co>J3v4l8V(T8H?49_@;K6q#r~Wwppc z4XW0(4k}cP=5ex>-Xt3oATZ~bBWKv)aw|I|Lx=9C1s~&b77idz({&q3T(Y(KbWO?+ zmcZ6?WeUsGk6>km*~234YC+2e6Zxdl~<_g2J|IE`GH%n<%PRv-50; zH{tnVts*S5*_RxFT9eM0z-pksIb^drUq4>QSww=u;UFCv2AhOuXE*V4z?MM`|ABOC4P;OfhS(M{1|c%QZ=!%rQTDFx`+}?Kdx$&FU?Y<$x;j7z=(;Lyz+?EE>ov!8vvMtSzG!nMie zsBa9t8as#2nH}n8xzN%W%U$#MHNXmDUVr@GX{?(=yI=4vks|V)!-W5jHsU|h_&+kY zS_8^kd3jlYqOoiI`ZqBVY!(UfnAGny!FowZWY_@YR0z!nG7m{{)4OS$q&YDyw6vC$ zm4!$h>*|!2LbMbxS+VM6&DIrL*X4DeMO!@#EzMVfr)e4Tagn~AQHIU8?e61TuhcKD zr!F4(kEebk(Wdk-?4oXM(rJwanS>Jc%<>R(siF+>+5*CqJLecP_we33iTFTXr6W^G z7M?LPC-qFHK;E!fxCP)`8rkxZyFk{EV;G-|kwf4b$c1k0atD?85+|4V%YATWMG|?K zLyLrws36p%Qz6{}>7b>)$pe>mR+=IWuGrX{3ZPZXF3plvuv5Huax86}KX*lbPVr}L z{C#lDjdDeHr~?l|)Vp_}T|%$qF&q#U;ClHEPVuS+Jg~NjC1RP=17=aQKGOcJ6B3mp z8?4*-fAD~}sX*=E6!}^u8)+m2j<&FSW%pYr_d|p_{28DZ#Cz0@NF=gC-o$MY?8Ca8 zr5Y8DSR^*urS~rhpX^05r30Ik#2>*dIOGxRm0#0YX@YQ%Mg5b6dXlS!4{7O_kdaW8PFSdj1=ryI-=5$fiieGK{LZ+SX(1b=MNL!q#lN zv98?fqqTUH8r8C7v(cx#BQ5P9W>- zmW93;eH6T`vuJ~rqtIBg%A6>q>gnWb3X!r0wh_q;211+Om&?nvYzL1hhtjB zK_7G3!n7PL>d!kj){HQE zE8(%J%dWLh1_k%gVXTZt zEdT09XSKAx27Ncaq|(vzL3gm83q>6CAw<$fTnMU05*xAe&rDfCiu`u^1)CD<>sx0i z*hr^N_TeN89G(nunZoLBf^81#pmM}>JgD@Nn1l*lN#a=B=9pN%tmvYFjFIoKe_(GF z-26x{(KXdfsQL7Uv6UtDuYwV`;8V3w>oT_I<`Ccz3QqK9tYT5ZQzbop{=I=!pMOCb zCU68`n?^DT%^&m>A%+-~#lvF!7`L7a{z<3JqIlk1$<||_J}vW1U9Y&eX<}l8##6i( zZcTT@2`9(Mecptm@{3A_Y(X`w9K0EwtPq~O!16bq{7c0f7#(3wn-^)h zxV&M~iiF!{-6A@>o;$RzQ5A50kxXYj!tcgme=Qjrbje~;5X2xryU;vH|6bE(8z^<7 zQ>BG7_c*JG8~K7Oe68i#0~C$v?-t@~@r3t2inUnLT(c=URpA9kA8uq9PKU(Ps(LVH zqgcqW>Gm?6oV#AldDPKVRcEyQIdTT`Qa1j~vS{<;SwyTdr&3*t?J)y=M7q*CzucZ&B0M=joT zBbj@*SY;o2^_h*>R0e({!QHF0=)0hOj^B^d*m>SnRrwq>MolNSgl^~r8GR#mDWGYEIJA8B<|{{j?-7p zVnV$zancW3&JVDtVpIlI|5djKq0(w$KxEFzEiiL=h5Jw~4Le23@s(mYyXWL9SX6Ot zmb)sZaly_P%BeX_9 zw&{yBef8tFm+%=--m*J|o~+Xg3N+$IH)t)=fqD+|fEk4AAZ&!wcN5=mi~Vvo^i`}> z#_3ahR}Ju)(Px7kev#JGcSwPXJ2id9%Qd2A#Uc@t8~egZ8;iC{e! z%=CGJOD1}j!HW_sgbi_8suYnn4#Ou}%9u)dXd3huFIb!ytlX>Denx@pCS-Nj$`VO&j@(z!kKSP0hE4;YIP#w9ta=3DO$7f*x zc9M4&NK%IrVmZAe=r@skWD`AEWH=g+r|*13Ss$+{c_R!b?>?UaGXlw*8qDmY#xlR= z<0XFbs2t?8i^G~m?b|!Hal^ZjRjt<@a? z%({Gn14b4-a|#uY^=@iiKH+k?~~wTj5K1A&hU z2^9-HTC)7zpoWK|$JXaBL6C z#qSNYtY>65T@Zs&-0cHeu|RX(Pxz6vTITdzJdYippF zC-EB+n4}#lM7`2Ry~SO>FxhKboIAF#Z{1wqxaCb{#yEFhLuX;Rx(Lz%T`Xo1+a2M}7D+@wol2)OJs$TwtRNJ={( zD@#zTUEE}#Fz#&(EoD|SV#bayvr&E0vzmb%H?o~46|FAcx?r4$N z&67W3mdip-T1RIxwSm_&(%U|+WvtGBj*}t69XVd&ebn>KOuL(7Y8cV?THd-(+9>G7*Nt%T zcH;`p={`SOjaf7hNd(=37Lz3-51;58JffzIPgGs_7xIOsB5p2t&@v1mKS$2D$*GQ6 zM(IR*j4{nri7NMK9xlDy-hJW6sW|ZiDRaFiayj%;(%51DN!ZCCCXz+0Vm#};70nOx zJ#yA0P3p^1DED;jGdPbQWo0WATN=&2(QybbVdhd=Vq*liDk`c7iZ?*AKEYC#SY&2g z&Q(Ci)MJ{mEat$ZdSwTjf6h~roanYh2?9j$CF@4hjj_f35kTKuGHvIs9}Re@iKMxS-OI*`0S z6s)fOtz}O$T?PLFVSeOjSO26$@u`e<>k(OSP!&YstH3ANh>)mzmKGNOwOawq-MPXe zy4xbeUAl6tamnx))-`Gi2uV5>9n(73yS)Ukma4*7fI8PaEwa)dWHs6QA6>$}7?(L8 ztN8M}?{Tf!Zu22J5?2@95&rQ|F7=FK-hihT-vDp!5JCcWrVogEnp;CHenAZ)+E+K5 z$Cffk5sNwD_?4+ymgcHR(5xgt20Z8M`2*;MzOM#>yhk{r3x=EyM226wb&!+j`W<%* zSc&|`8!>dn9D@!pYow~(DsY_naSx7(Z4i>cu#hA5=;IuI88}7f%)bRkuY2B;+9Uep zpXcvFWkJ!mQai63BgNXG26$5kyhZ2&*3Q_tk)Ii4M>@p~_~q_cE!|^A;_MHB;7s#9 zKzMzK{lIxotjc};k67^Xsl-gS!^*m*m6kn|sbdun`O?dUkJ{0cmI0-_2y=lTAfn*Y zKg*A-2sJq)CCJgY0LF-VQvl&6HIXZyxo2#!O&6fOhbHXC?%1cMc6y^*dOS{f$=137Ds1m01qs`>iUQ49JijsaQ( zksqV9@&?il$|4Ua%4!O15>Zy&%gBY&wgqB>XA3!EldQ%1CRSM(pp#k~-pkcCg4LAT zXE=puHbgsw)!xtc@P4r~Z}nTF=D2~j(6D%gTBw$(`Fc=OOQ0kiW$_RDd=hcO0t97h zb86S5r=>(@VGy1&#S$Kg_H@7G^;8Ue)X5Y+IWUi`o;mpvoV)`fcVk4FpcT|;EG!;? zHG^zrVVZOm>1KFaHlaogcWj(v!S)O(Aa|Vo?S|P z5|6b{qkH(USa*Z7-y_Uvty_Z1|B{rTS^qmEMLEYUSk03_Fg&!O3BMo{b^*`3SHvl0 zhnLTe^_vVIdcSHe)SQE}r~2dq)VZJ!aSKR?RS<(9lzkYo&dQ?mubnWmgMM37Nudwo z3Vz@R{=m2gENUE3V4NbIzAA$H1z0pagz94-PTJyX{b$yndsdKptmlKQKaaHj@3=ED zc7L?p@%ui|RegVYutK$64q4pe9+5sv34QUpo)u{1ci?)_7gXQd{PL>b0l(LI#rJmN zGuO+%GO`xneFOOr4EU(Wg}_%bhzUf;d@TU+V*2#}!2OLwg~%D;1FAu=Un>OgjPb3S z7l(riiCwgghC=Lm5hWGf5NdGp#01xQ59`HJcLXbUR3&n%P(+W2q$h2Qd z*6+-QXJ*&Kvk9ht0f0*rO_|FMBALen{j7T1l%=Q>gf#kma zQlg#I9+HB+z*5BMxdesMND`_W;q5|FaEURFk|~&{@qY32N$G$2B=&Po{=!)x5b!#n zxLzblkq{yj05#O7(GRuT39(06FJlalyv<#K4m}+vs>9@q-&31@1(QBv82{}Zkns~K ze{eHC_RDX0#^A*JQTwF`a=IkE6Ze@j#-8Q`tTT?k9`^ZhA~3eCZJ-Jr{~7Cx;H4A3 zcZ+Zj{mzFZbVvQ6U~n>$U2ZotGsERZ@}VKrgGh0xM;Jzt29%TX6_&CWzg+YYMozrM z`nutuS)_0dCM8UVaKRj804J4i%z2BA_8A4OJRQ$N(P9Mfn-gF;4#q788C@9XR0O3< zsoS4wIoyt046d+LnSCJOy@B@Uz*#GGd#+Ln1ek5Dv>(ZtD@tgZlPnZZJGBLr^JK+!$$?A_fA3LOrkoDRH&l7 zcMcD$Hsjko3`-{bn)jPL6E9Ds{WskMrivsUu5apD z?grQO@W7i5+%X&E&p|RBaEZ(sGLR@~(y^BI@lDMot^Ll?!`90KT!JXUhYS`ZgX3jnu@Ja^seA*M5R@f`=`ynQV4rc$uT1mvE?@tz)TN<=&H1%Z?5yjxcpO+6y_R z6EPuPKM5uxKpmZfT(WKjRRNHs@ib)F5WAP7QCADvmCSD#hPz$V10wiD&{NXyEwx5S z6NE`3z!IS^$s7m}PCwQutVQ#~w+V z=+~->DI*bR2j0^@dMr9`p>q^Ny~NrAVxrJtX2DUveic5vM%#N*XO|?YAWwNI$Q)_) zvE|L(L1jP@F%gOGtnlXtIv2&1i8q<)Xfz8O3G^Ea~e*HJsQgBxWL(yuLY+jqUK zRE~`-zklrGog(X}$9@ZVUw!8*=l`6mzYLtsg`AvBYz(cxmAhr^j0~(rzXdiOEeu_p zE$sf2(w(BPAvO5DlaN&uQ$4@p-b?fRs}d7&2UQ4Fh?1Hzu*YVjcndqJLw0#q@fR4u zJCJ}>_7-|QbvOfylj+e^_L`5Ep9gqd>XI3-O?Wp z-gt*P29f$Tx(mtS`0d05nHH=gm~Po_^OxxUwV294BDKT>PHVlC5bndncxGR!n(OOm znsNt@Q&N{TLrmsoKFw0&_M9$&+C24`sIXGWgQaz=kY;S{?w`z^Q0JXXBKFLj0w0U6P*+jPKyZHX9F#b0D1$&(- zrm8PJd?+SrVf^JlfTM^qGDK&-p2Kdfg?f>^%>1n8bu&byH(huaocL>l@f%c*QkX2i znl}VZ4R1en4S&Bcqw?$=Zi7ohqB$Jw9x`aM#>pHc0x z0$!q7iFu zZ`tryM70qBI6JWWTF9EjgG@>6SRzsd}3h+4D8d~@CR07P$LJ}MFsYi-*O%XVvD@yT|rJ+Mk zDllJ7$n0V&A!0flbOf)HE6P_afPWZmbhpliqJuw=-h+r;WGk|ntkWN(8tKlYpq5Ow z(@%s>IN8nHRaYb*^d;M(D$zGCv5C|uqmsDjwy4g=Lz>*OhO3z=)VD}C<65;`89Ye} zSCxrv#ILzIpEx1KdLPlM&%Cctf@FqTKvNPXC&`*H9=l=D3r!GLM?UV zOxa(8ZsB`&+76S-_xuj?G#wXBfDY@Z_tMpXJS7^mp z@YX&u0jYw2A+Z+bD#6sgVK5ZgdPSJV3>{K^4~%HV?rn~4D)*2H!67Y>0aOmzup`{D zzDp3c9yEbGCY$U<8biJ_gB*`jluz1ShUd!QUIQJ$*1;MXCMApJ^m*Fiv88RZ zFopLViw}{$Tyhh_{MLGIE2~sZ)t0VvoW%=8qKZ>h=adTe3QM$&$PO2lfqH@brt!9j ziePM8$!CgE9iz6B<6_wyTQj?qYa;eC^{x_0wuwV~W+^fZmFco-o%wsKSnjXFEx02V zF5C2t)T6Gw$Kf^_c;Ei3G~uC8SM-xyycmXyC2hAVi-IfXqhu$$-C=*|X?R0~hu z8`J6TdgflslhrmDZq1f?GXF7*ALeMmOEpRDg(s*H`4>_NAr`2uqF;k;JQ+8>A|_6ZNsNLECC%NNEb1Y1dP zbIEmNpK)#XagtL4R6BC{C5T(+=yA-(Z|Ap}U-AfZM#gwVpus3(gPn}Q$CExObJ5AC z)ff9Yk?wZ}dZ-^)?cbb9Fw#EjqQ8jxF4G3=L?Ra zg_)0QDMV1y^A^>HRI$x?Op@t;oj&H@1xt4SZ9(kifQ zb59B*`M99Td7@aZ3UWvj1rD0sE)d=BsBuW*KwkCds7ay(7*01_+L}b~7)VHI>F_!{ zyxg-&nCO?v#KOUec0{OOKy+sjWA;8rTE|Lv6I9H?CI?H(mUm8VXGwU$49LGpz&{nQp2}dinE1@lZ1iox6{ghN&v^GZv9J${7WaXj)<0S4g_uiJ&JCZ zr8-hsu`U%N;+9N^@&Q0^kVPB3)wY(rr}p7{p0qFHb3NUUHJb672+wRZs`gd1UjKPX z4o6zljKKA+Kkj?H>Ew63o%QjyBk&1!P22;MkD>sM0=z_s-G{mTixJCT9@_|*(p^bz zJ8?ZZ&;pzV+7#6Mn`_U-)k8Pjg?a;|Oe^us^PoPY$Va~yi8|?+&=y$f+lABT<*pZr zP}D{~Pq1Qyni+@|aP;ixO~mbEW9#c0OU#YbDZIaw=_&$K%Ep2f%hO^&P67hApZe`x zv8b`Mz@?M_7-)b!lkQKk)JXXUuT|B8kJlvqRmRpxtQDgvrHMXC1B$M@Y%Me!BSx3P z#2Eawl$HleZhhTS6Txm>lN_+I`>eV$&v9fOg)%zVn3O5mI*lAl>QcHuW6!Kixmq`X zBCZ*Ck6OYtDiK!N47>jxI&O2a9x7M|i^IagRr-fmrmikEQGgw%J7bO|)*$2FW95O4 zeBs>KR)izRG1gRVL;F*sr8A}aRHO0gc$$j&ds8CIO1=Gwq1%_~E)CWNn9pCtBE}+`Jelk4{>S)M)`Ll=!~gnn1yq^EX(+y*ik@3Ou0qU`IgYi3*doM+5&dU!cho$pZ zn%lhKeZkS72P?Cf68<#kll_6OAO26bIbueZx**j6o;I0cS^XiL`y+>{cD}gd%lux} z)3N>MaE24WBZ}s0ApfdM;5J_Ny}rfUyxfkC``Awo2#sgLnGPewK};dORuT?@I6(5~ z?kE)Qh$L&fwJXzK){iYx!l5$Tt|^D~MkGZPA}(o6f7w~O2G6Vvzdo*a;iXzk$B66$ zwF#;wM7A+(;uFG4+UAY(2`*3XXx|V$K8AYu#ECJYSl@S=uZW$ksfC$~qrrbQj4??z-)uz0QL}>k^?fPnJTPw% zGz)~?B4}u0CzOf@l^um}HZzbaIwPmb<)< zi_3@E9lc)Qe2_`*Z^HH;1CXOceL=CHpHS{HySy3T%<^NrWQ}G0i4e1xm_K3(+~oi$ zoHl9wzb?Z4j#90DtURtjtgvi7uw8DzHYmtPb;?%8vb9n@bszT=1qr)V_>R%s!92_` zfnHQPANx z<#hIjIMm#*(v*!OXtF+w8kLu`o?VZ5k7{`vw{Yc^qYclpUGIM_PBN1+c{#Vxv&E*@ zxg=W2W~JuV{IuRYw3>LSI1)a!thID@R=bU+cU@DbR^_SXY`MC7HOsCN z!dO4OKV7(E_Z8T#8MA1H`99?Z!r0)qKW_#|29X3#Jb+5+>qUidbeP1NJ@)(qi2S-X zao|f0_tl(O+$R|Qwd$H{_ig|~I1fbp_$NkI!0E;Y z6JrnU{1Ra6^on{9gUUB0mwzP3S%B#h0fjo>JvV~#+X0P~JV=IG=yHG$O+p5O3NUgG zEQ}z6BTp^Fie)Sg<){Z&I8NwPR(=mO4joTLHkJ>|Tnk23E(Bo`FSbPc05lF2-+)X? z6vV3*m~IBHTy*^E!<0nA(tCOJW2G4DsH7)BxLV8kICn5lu6@U*R`w)o9;Ro$i8=Q^V%uH8n3q=+Yf;SFRZu z!+F&PKcH#8cG?aSK_Tl@K9P#8o+jry@gdexz&d(Q=47<7nw@e@FFfIRNL9^)1i@;A z28+$Z#rjv-wj#heI|<&J_DiJ*s}xd-f!{J8jfqOHE`TiHHZVIA8CjkNQ_u;Ery^^t zl1I75&u^`1_q)crO+JT4rx|z2ToSC>)Or@-D zy3S>jW*sNIZR-EBsfyaJ+Jq4BQE4?SePtD2+jY8*%FsSLZ9MY>+wk?}}}AFAw)vr{ml)8LUG-y9>^t!{~|sgpxYc0Gnkg`&~R z-pilJZjr@y5$>B=VMdZ73svct%##v%wdX~9fz6i3Q-zOKJ9wso+h?VME7}SjL=!NUG{J?M&i!>ma`eoEa@IX`5G>B1(7;%}M*%-# zfhJ(W{y;>MRz!Ic8=S}VaBKqh;~7KdnGEHxcL$kA-6E~=!hrN*zw9N+_=odt<$_H_8dbo;0=42wcAETPCVGUr~v(`Uai zb{=D!Qc!dOEU6v)2eHSZq%5iqK?B(JlCq%T6av$Cb4Rko6onlG&?CqaX7Y_C_cOC3 zYZ;_oI(}=>_07}Oep&Ws7x7-R)cc8zfe!SYxJYP``pi$FDS)4Fvw5HH=FiU6xfVqIM!hJ;Rx8c0cB7~aPtNH(Nmm5Vh{ibAoU#J6 zImRCr?(iyu_4W_6AWo3*vxTPUw@vPwy@E0`(>1Qi=%>5eSIrp^`` zK*Y?fK_6F1W>-7UsB)RPC4>>Ps9)f+^MqM}8AUm@tZ->j%&h1M8s*s!LX5&WxQcAh z8mciQej@RPm?660%>{_D+7er>%zX_{s|$Z+;G7_sfNfBgY(zLB4Ey}J9F>zX#K0f6 z?dVNIeEh?EIShmP6>M+d|0wMM85Sa4diw1hrg|ITJ}JDg@o8y>(rF9mXk5M z2@D|NA)-7>wD&wF;S_$KS=eE84`BGw3g0?6wGxu8ys4rwI?9U=*^VF22t3%mbGeOh z`!O-OpF7#Vceu~F`${bW0nYVU9ecmk31V{tF%iv&5hWofC>I~cqAt@u6|R+|HLMMX zVxuSlMFOK_EQ86#E8&KwxIr8S9tj_goWtLv4f@!&h8;Ov41{J~496vp9vX=(LK#j! zAwi*21RAV-LD>9Cw3bV_9X(X3)Kr0-UaB*7Y>t82EQ%!)(&(XuAYtTsYy-dz+w=$ir)VJpe!_$ z6SGpX^i(af3{o=VlFPC);|J8#(=_8#vdxDe|Cok+ANhYwbE*FO`Su2m1~w+&9<_9~ z-|tTU_ACGN`~CNW5WYYBn^B#SwZ(t4%3aPp z;o)|L6Rk569KGxFLUPx@!6OOa+5OjQLK5w&nAmwxkC5rZ|m&HT8G%GVZxB_@ME z>>{rnXUqyiJrT(8GMj_ap#yN_!9-lO5e8mR3cJiK3NE{_UM&=*vIU`YkiL$1%kf+1 z4=jk@7EEj`u(jy$HnzE33ZVW_J4bj}K;vT?T91YlO(|Y0FU4r+VdbmQ97%(J5 zkK*Bed8+C}FcZ@HIgdCMioV%A<*4pw_n}l*{Cr4}a(lq|injK#O?$tyvyE`S%(1`H z_wwRvk#13ElkZvij2MFGOj`fhy?nC^8`Zyo%yVcUAfEr8x&J#A{|moUBAV_^f$hpaUuyQeY3da^ zS9iRgf87YBwfe}>BO+T&Fl%rfpZh#+AM?Dq-k$Bq`vG6G_b4z%Kbd&v>qFjow*mBl z-OylnqOpLg}or7_VNwRg2za3VBK6FUfFX{|TD z`Wt0Vm2H$vdlRWYQJqDmM?JUbVqL*ZQY|5&sY*?!&%P8qhA~5+Af<{MaGo(dl&C5t zE%t!J0 zh6jqANt4ABdPxSTrVV}fLsRQal*)l&_*rFq(Ez}ClEH6LHv{J#v?+H-BZ2)Wy{K@9 z+ovXHq~DiDvm>O~r$LJo!cOuwL+Oa--6;UFE2q@g3N8Qkw5E>ytz^(&($!O47+i~$ zKM+tkAd-RbmP{s_rh+ugTD;lriL~`Xwkad#;_aM?nQ7L_muEFI}U_4$phjvYgleK~`Fo`;GiC07&Hq1F<%p;9Q;tv5b?*QnR%8DYJH3P>Svmv47Y>*LPZJy8_{9H`g6kQpyZU{oJ`m%&p~D=K#KpfoJ@ zn-3cqmHsdtN!f?~w+(t+I`*7GQA#EQC^lUA9(i6=i1PqSAc|ha91I%X&nXzjYaM{8$s&wEx@aVkQ6M{E2 zfzId#&r(XwUNtPcq4Ngze^+XaJA1EK-%&C9j>^9(secqe{}z>hR5CFNveMsVA)m#S zk)_%SidkY-XmMWlVnQ(mNJ>)ooszQ#vaK;!rPmGKXV7am^_F!Lz>;~{VrIO$;!#30XRhE1QqO_~#+Ux;B_D{Nk=grn z8Y0oR^4RqtcYM)7a%@B(XdbZCOqnX#fD{BQTeLvRHd(irHKq=4*jq34`6@VAQR8WG z^%)@5CXnD_T#f%@-l${>y$tfb>2LPmc{~5A82|16mH)R?&r#KKLs7xpN-D`=&Cm^R zvMA6#Ahr<3X>Q7|-qfTY)}32HkAz$_mibYV!I)u>bmjK`qwBe(>za^0Kt*HnFbSdO z1>+ryKCNxmm^)*$XfiDOF2|{-v3KKB?&!(S_Y=Ht@|ir^hLd978xuI&N{k>?(*f8H z=ClxVJK_%_z1TH0eUwm2J+2To7FK4o+n_na)&#VLn1m;!+CX+~WC+qg1?PA~KdOlC zW)C@pw75_xoe=w7i|r9KGIvQ$+3K?L{7TGHwrQM{dCp=Z*D}3kX7E-@sZnup!BImw z*T#a=+WcTwL78exTgBn|iNE3#EsOorO z*kt)gDzHiPt07fmisA2LWN?AymkdqTgr?=loT7z@d`wnlr6oN}@o|&JX!yPzC*Y8d zu6kWlTzE1)ckyBn+0Y^HMN+GA$wUO_LN6W>mxCo!0?oiQvT`z$jbSEu&{UHRU0E8# z%B^wOc@S!yhMT49Y)ww(Xta^8pmPCe@eI5C*ed96)AX9<>))nKx0(sci8gwob_1}4 z0DIL&vsJ1_s%<@y%U*-eX z5rN&(zef-5G~?@r79oZGW1d!WaTqQn0F6RIOa9tJ=0(kdd{d1{<*tHT#cCvl*i>YY zH+L7jq8xZNcTUBqj(S)ztTU!TM!RQ}In*n&Gn<>(60G7}4%WQL!o>hbJqNDSGwl#H z`4k+twp0cj%PsS+NKaxslAEu9!#U3xT1|_KB6`h=PI0SW`P9GTa7caD1}vKEglV8# zjKZR`pluCW19c2fM&ZG)c3T3Um;ir3y(tSCJ7Agl6|b524dy5El{^EQBG?E61H0XY z`bqg!;zhGhyMFl&(o=JWEJ8n~z)xI}A@C0d2hQGvw7nGv)?POU@(kS1m=%`|+^ika zXl8zjS?xqW$WlO?Ewa;vF~XbybHBor$f<%I&*t$F5fynwZlTGj|IjZtVfGa7l&tK} zW>I<69w(cZLu)QIVG|M2xzW@S+70NinQzk&Y0+3WT*cC)rx~04O-^<{JohU_&HL5XdUKW!uFy|i$FB|EMu0eUyW;gsf`XfIc!Z0V zeK&*hPL}f_cX=@iv>K%S5kL;cl_$v?n(Q9f_cChk8Lq$glT|=e+T*8O4H2n<=NGmn z+2*h+v;kBvF>}&0RDS>)B{1!_*XuE8A$Y=G8w^qGMtfudDBsD5>T5SB;Qo}fSkkiV ze^K^M(UthkwrD!&*tTsu>Dacdj_q`~V%r_twr$(Ct&_dKeeXE?fA&4&yASJWJ*}~- zel=@W)tusynfC_YqH4ll>4Eg`Xjs5F7Tj>tTLz<0N3)X<1px_d2yUY>X~y>>93*$) z5PuNMQLf9Bu?AAGO~a_|J2akO1M*@VYN^VxvP0F$2>;Zb9;d5Yfd8P%oFCCoZE$ z4#N$^J8rxYjUE_6{T%Y>MmWfHgScpuGv59#4u6fpTF%~KB^Ae`t1TD_^Ud#DhL+Dm zbY^VAM#MrAmFj{3-BpVSWph2b_Y6gCnCAombVa|1S@DU)2r9W<> zT5L8BB^er3zxKt1v(y&OYk!^aoQisqU zH(g@_o)D~BufUXcPt!Ydom)e|aW{XiMnes2z&rE?og>7|G+tp7&^;q?Qz5S5^yd$i z8lWr4g5nctBHtigX%0%XzIAB8U|T6&JsC4&^hZBw^*aIcuNO47de?|pGXJ4t}BB`L^d8tD`H`i zqrP8?#J@8T#;{^B!KO6J=@OWKhAerih(phML`(Rg7N1XWf1TN>=Z3Do{l_!d~DND&)O)D>ta20}@Lt77qSnVsA7>)uZAaT9bsB>u&aUQl+7GiY2|dAEg@%Al3i316y;&IhQL^8fw_nwS>f60M_-m+!5)S_6EPM7Y)(Nq^8gL7(3 zOiot`6Wy6%vw~a_H?1hLVzIT^i1;HedHgW9-P#)}Y6vF%C=P70X0Tk^z9Te@kPILI z_(gk!k+0%CG)%!WnBjjw*kAKs_lf#=5HXC00s-}oM-Q1aXYLj)(1d!_a7 z*Gg4Fe6F$*ujVjI|79Z5+Pr`us%zW@ln++2l+0hsngv<{mJ%?OfSo_3HJXOCys{Ug z00*YR-(fv<=&%Q!j%b-_ppA$JsTm^_L4x`$k{VpfLI(FMCap%LFAyq;#ns5bR7V+x zO!o;c5y~DyBPqdVQX)8G^G&jWkBy2|oWTw>)?5u}SAsI$RjT#)lTV&Rf8;>u*qXnb z8F%Xb=7#$m)83z%`E;49)t3fHInhtc#kx4wSLLms!*~Z$V?bTyUGiS&m>1P(952(H zuHdv=;o*{;5#X-uAyon`hP}d#U{uDlV?W?_5UjJvf%11hKwe&(&9_~{W)*y1nR5f_ z!N(R74nNK`y8>B!0Bt_Vr!;nc3W>~RiKtGSBkNlsR#-t^&;$W#)f9tTlZz>n*+Fjz z3zXZ;jf(sTM(oDzJt4FJS*8c&;PLTW(IQDFs_5QPy+7yhi1syPCarvqrHFcf&yTy)^O<1EBx;Ir`5W{TIM>{8w&PB>ro4;YD<5LF^TjTb0!zAP|QijA+1Vg>{Afv^% zmrkc4o6rvBI;Q8rj4*=AZacy*n8B{&G3VJc)so4$XUoie0)vr;qzPZVbb<#Fc=j+8CGBWe$n|3K& z_@%?{l|TzKSlUEO{U{{%Fz_pVDxs7i9H#bnbCw7@4DR=}r_qV!Zo~CvD4ZI*+j3kO zW6_=|S`)(*gM0Z;;}nj`73OigF4p6_NPZQ-Od~e$c_);;4-7sR>+2u$6m$Gf%T{aq zle>e3(*Rt(TPD}03n5)!Ca8Pu!V}m6v0o1;5<1h$*|7z|^(3$Y&;KHKTT}hV056wuF0Xo@mK-52~r=6^SI1NC%c~CC?n>yX6wPTgiWYVz!Sx^atLby9YNn1Rk{g?|pJaxD4|9cUf|V1_I*w zzxK)hRh9%zOl=*$?XUjly5z8?jPMy%vEN)f%T*|WO|bp5NWv@B(K3D6LMl!-6dQg0 zXNE&O>Oyf%K@`ngCvbGPR>HRg5!1IV$_}m@3dWB7x3t&KFyOJn9pxRXCAzFr&%37wXG;z^xaO$ekR=LJG ztIHpY8F5xBP{mtQidqNRoz= z@){+N3(VO5bD+VrmS^YjG@+JO{EOIW)9=F4v_$Ed8rZtHvjpiEp{r^c4F6Ic#ChlC zJX^DtSK+v(YdCW)^EFcs=XP7S>Y!4=xgmv>{S$~@h=xW-G4FF9?I@zYN$e5oF9g$# zb!eVU#J+NjLyX;yb)%SY)xJdvGhsnE*JEkuOVo^k5PyS=o#vq!KD46UTW_%R=Y&0G zFj6bV{`Y6)YoKgqnir2&+sl+i6foAn-**Zd1{_;Zb7Ki=u394C5J{l^H@XN`_6XTKY%X1AgQM6KycJ+= zYO=&t#5oSKB^pYhNdzPgH~aEGW2=ec1O#s-KG z71}LOg@4UEFtp3GY1PBemXpNs6UK-ax*)#$J^pC_me;Z$Je(OqLoh|ZrW*mAMBFn< zHttjwC&fkVfMnQeen8`Rvy^$pNRFVaiEN4Pih*Y3@jo!T0nsClN)pdrr9AYLcZxZ| zJ5Wlj+4q~($hbtuY zVQ7hl>4-+@6g1i`1a)rvtp-;b0>^`Dloy(#{z~ytgv=j4q^Kl}wD>K_Y!l~ zp(_&7sh`vfO(1*MO!B%<6E_bx1)&s+Ae`O)a|X=J9y~XDa@UB`m)`tSG4AUhoM=5& znWoHlA-(z@3n0=l{E)R-p8sB9XkV zZ#D8wietfHL?J5X0%&fGg@MH~(rNS2`GHS4xTo7L$>TPme+Is~!|79=^}QbPF>m%J zFMkGzSndiPO|E~hrhCeo@&Ea{M(ieIgRWMf)E}qeTxT8Q#g-!Lu*x$v8W^M^>?-g= zwMJ$dThI|~M06rG$Sv@C@tWR>_YgaG&!BAbkGggVQa#KdtDB)lMLNVLN|51C@F^y8 zCRvMB^{GO@j=cHfmy}_pCGbP%xb{pNN>? z?7tBz$1^zVaP|uaatYaIN+#xEN4jBzwZ|YI_)p(4CUAz1ZEbDk>J~Y|63SZaak~#0 zoYKruYsWHoOlC1(MhTnsdUOwQfz5p6-D0}4;DO$B;7#M{3lSE^jnTT;ns`>!G%i*F?@pR1JO{QTuD0U+~SlZxcc8~>IB{)@8p`P&+nDxNj`*gh|u?yrv$phpQcW)Us)bi`kT%qLj(fi{dWRZ%Es2!=3mI~UxiW0$-v3vUl?#g{p6eF zMEUAqo5-L0Ar(s{VlR9g=j7+lt!gP!UN2ICMokAZ5(Agd>})#gkA2w|5+<%-CuEP# zqgcM}u@3(QIC^Gx<2dbLj?cFSws_f3e%f4jeR?4M^M3cx1f+Qr6ydQ>n)kz1s##2w zk}UyQc+Z5G-d-1}{WzjkLXgS-2P7auWSJ%pSnD|Uivj5u!xk0 z_^-N9r9o;(rFDt~q1PvE#iJZ_f>J3gcP$)SOqhE~pD2|$=GvpL^d!r z6u=sp-CrMoF7;)}Zd7XO4XihC4ji?>V&(t^?@3Q&t9Mx=qex6C9d%{FE6dvU6%d94 zIE;hJ1J)cCqjv?F``7I*6bc#X)JW2b4f$L^>j{*$R`%5VHFi*+Q$2;nyieduE}qdS{L8y8F08yLs?w}{>8>$3236T-VMh@B zq-nujsb_1aUv_7g#)*rf9h%sFj*^mIcImRV*k~Vmw;%;YH(&ylYpy!&UjUVqqtfG` zox3esju?`unJJA_zKXRJP)rA3nXc$m^{S&-p|v|-0x9LHJm;XIww7C#R$?00l&Yyj z=e}gKUOpsImwW?N)+E(awoF@HyP^EhL+GlNB#k?R<2>95hz!h9sF@U20DHSB3~WMa zk90+858r@-+vWwkawJ)8ougd(i#1m3GLN{iSTylYz$brAsP%=&m$mQQrH$g%3-^VR zE%B`Vi&m8f3T~&myTEK28BDWCVzfWir1I?03;pX))|kY5ClO^+bae z*7E?g=3g7EiisYOrE+lA)2?Ln6q2*HLNpZEWMB|O-JI_oaHZB%CvYB(%=tU= zE*OY%QY58fW#RG5=gm0NR#iMB=EuNF@)%oZJ}nmm=tsJ?eGjia{e{yuU0l3{d^D@)kVDt=1PE)&tf_hHC%0MB znL|CRCPC}SeuVTdf>-QV70`0(EHizc21s^sU>y%hW0t!0&y<7}Wi-wGy>m%(-jsDj zP?mF|>p_K>liZ6ZP(w5(|9Ga%>tLgb$|doDDfkdW>Z z`)>V2XC?NJT26mL^@ zf+IKr27TfM!UbZ@?zRddC7#6ss1sw%CXJ4FWC+t3lHZupzM77m^=9 z&(a?-LxIq}*nvv)y?27lZ{j zifdl9hyJudyP2LpU$-kXctshbJDKS{WfulP5Dk~xU4Le4c#h^(YjJit4#R8_khheS z|8(>2ibaHES4+J|DBM7I#QF5u-*EdN{n=Kt@4Zt?@Tv{JZA{`4 zU#kYOv{#A&gGPwT+$Ud}AXlK3K7hYzo$(fBSFjrP{QQ zeaKg--L&jh$9N}`pu{Bs>?eDFPaWY4|9|foN%}i;3%;@4{dc+iw>m}{3rELqH21G! z`8@;w-zsJ1H(N3%|1B@#ioLOjib)j`EiJqPQVSbPSPVHCj6t5J&(NcWzBrzCiDt{4 zdlPAUKldz%6x5II1H_+jv)(xVL+a;P+-1hv_pM>gMRr%04@k;DTokASSKKhU1Qms| zrWh3a!b(J3n0>-tipg{a?UaKsP7?+|@A+1WPDiQIW1Sf@qDU~M_P65_s}7(gjTn0X zucyEm)o;f8UyshMy&>^SC3I|C6jR*R_GFwGranWZe*I>K+0k}pBuET&M~ z;Odo*ZcT?ZpduHyrf8E%IBFtv;JQ!N_m>!sV6ly$_1D{(&nO~w)G~Y`7sD3#hQk%^ zp}ucDF_$!6DAz*PM8yE(&~;%|=+h(Rn-=1Wykas_-@d&z#=S}rDf`4w(rVlcF&lF! z=1)M3YVz7orwk^BXhslJ8jR);sh^knJW(Qmm(QdSgIAIdlN4Te5KJisifjr?eB{FjAX1a0AB>d?qY4Wx>BZ8&}5K0fA+d{l8 z?^s&l8#j7pR&ijD?0b%;lL9l$P_mi2^*_OL+b}4kuLR$GAf85sOo02?Y#90}CCDiS zZ%rbCw>=H~CBO=C_JVV=xgDe%b4FaEFtuS7Q1##y686r%F6I)s-~2(}PWK|Z8M+Gu zl$y~5@#0Ka%$M<&Cv%L`a8X^@tY&T7<0|(6dNT=EsRe0%kp1Qyq!^43VAKYnr*A5~ zsI%lK1ewqO;0TpLrT9v}!@vJK{QoVa_+N4FYT#h?Y8rS1S&-G+m$FNMP?(8N`MZP zels(*?kK{{^g9DOzkuZXJ2;SrOQsp9T$hwRB1(phw1c7`!Q!by?Q#YsSM#I12RhU{$Q+{xj83axHcftEc$mNJ8_T7A-BQc*k(sZ+~NsO~xAA zxnbb%dam_fZlHvW7fKXrB~F&jS<4FD2FqY?VG?ix*r~MDXCE^WQ|W|WM;gsIA4lQP zJ2hAK@CF*3*VqPr2eeg6GzWFlICi8S>nO>5HvWzyZTE)hlkdC_>pBej*>o0EOHR|) z$?};&I4+_?wvL*g#PJ9)!bc#9BJu1(*RdNEn>#Oxta(VWeM40ola<0aOe2kSS~{^P zDJBd}0L-P#O-CzX*%+$#v;(x%<*SPgAje=F{Zh-@ucd2DA(yC|N_|ocs*|-!H%wEw z@Q!>siv2W;C^^j^59OAX03&}&D*W4EjCvfi(ygcL#~t8XGa#|NPO+*M@Y-)ctFA@I z-p7npT1#5zOLo>7q?aZpCZ=iecn3QYklP;gF0bq@>oyBq94f6C=;Csw3PkZ|5q=(c zfs`aw?II0e(h=|7o&T+hq&m$; zBrE09Twxd9BJ2P+QPN}*OdZ-JZV7%av@OM7v!!NL8R;%WFq*?{9T3{ct@2EKgc8h) zMxoM$SaF#p<`65BwIDfmXG6+OiK0e)`I=!A3E`+K@61f}0e z!2a*FOaDrOe>U`q%K!QN`&=&0C~)CaL3R4VY(NDt{Xz(Xpqru5=r#uQN1L$Je1*dkdqQ*=lofQaN%lO!<5z9ZlHgxt|`THd>2 zsWfU$9=p;yLyJyM^t zS2w9w?Bpto`@H^xJpZDKR1@~^30Il6oFGfk5%g6w*C+VM)+%R@gfIwNprOV5{F^M2 zO?n3DEzpT+EoSV-%OdvZvNF+pDd-ZVZ&d8 zKeIyrrfPN=EcFRCPEDCVflX#3-)Ik_HCkL(ejmY8vzcf-MTA{oHk!R2*36`O68$7J zf}zJC+bbQk--9Xm!u#lgLvx8TXx2J258E5^*IZ(FXMpq$2LUUvhWQPs((z1+2{Op% z?J}9k5^N=z;7ja~zi8a_-exIqWUBJwohe#4QJ`|FF*$C{lM18z^#hX6!5B8KAkLUX ziP=oti-gpV(BsLD{0(3*dw}4JxK23Y7M{BeFPucw!sHpY&l%Ws4pSm`+~V7;bZ%Dx zeI)MK=4vC&5#;2MT7fS?^ch9?2;%<8Jlu-IB&N~gg8t;6S-#C@!NU{`p7M8@2iGc& zg|JPg%@gCoCQ&s6JvDU&`X2S<57f(k8nJ1wvBu{8r?;q3_kpZZ${?|( z+^)UvR33sjSd)aT!UPkA;ylO6{aE3MQa{g%Mcf$1KONcjO@&g5zPHWtzM1rYC{_K> zgQNcs<{&X{OA=cEWw5JGqpr0O>x*Tfak2PE9?FuWtz^DDNI}rwAaT0(bdo-<+SJ6A z&}S%boGMWIS0L}=S>|-#kRX;e^sUsotry(MjE|3_9duvfc|nwF#NHuM-w7ZU!5ei8 z6Mkf>2)WunY2eU@C-Uj-A zG(z0Tz2YoBk>zCz_9-)4a>T46$(~kF+Y{#sA9MWH%5z#zNoz)sdXq7ZR_+`RZ%0(q zC7&GyS_|BGHNFl8Xa%@>iWh%Gr?=J5<(!OEjauj5jyrA-QXBjn0OAhJJ9+v=!LK`` z@g(`^*84Q4jcDL`OA&ZV60djgwG`|bcD*i50O}Q{9_noRg|~?dj%VtKOnyRs$Uzqg z191aWoR^rDX#@iSq0n z?9Sg$WSRPqSeI<}&n1T3!6%Wj@5iw5`*`Btni~G=&;J+4`7g#OQTa>u`{4ZZ(c@s$ zK0y;ySOGD-UTjREKbru{QaS>HjN<2)R%Nn-TZiQ(Twe4p@-saNa3~p{?^V9Nixz@a zykPv~<@lu6-Ng9i$Lrk(xi2Tri3q=RW`BJYOPC;S0Yly%77c727Yj-d1vF!Fuk{Xh z)lMbA69y7*5ufET>P*gXQrxsW+ zz)*MbHZv*eJPEXYE<6g6_M7N%#%mR{#awV3i^PafNv(zyI)&bH?F}2s8_rR(6%!V4SOWlup`TKAb@ee>!9JKPM=&8g#BeYRH9FpFybxBXQI2|g}FGJfJ+ zY-*2hB?o{TVL;Wt_ek;AP5PBqfDR4@Z->_182W z{P@Mc27j6jE*9xG{R$>6_;i=y{qf(c`5w9fa*`rEzX6t!KJ(p1H|>J1pC-2zqWENF zmm=Z5B4u{cY2XYl(PfrInB*~WGWik3@1oRhiMOS|D;acnf-Bs(QCm#wR;@Vf!hOPJ zgjhDCfDj$HcyVLJ=AaTbQ{@vIv14LWWF$=i-BDoC11}V;2V8A`S>_x)vIq44-VB-v z*w-d}$G+Ql?En8j!~ZkCpQ$|cA0|+rrY>tiCeWxkRGPoarxlGU2?7%k#F693RHT24 z-?JsiXlT2PTqZqNb&sSc>$d;O4V@|b6VKSWQb~bUaWn1Cf0+K%`Q&Wc<>mQ>*iEGB zbZ;aYOotBZ{vH3y<0A*L0QVM|#rf*LIsGx(O*-7)r@yyBIzJnBFSKBUSl1e|8lxU* zzFL+YDVVkIuzFWeJ8AbgN&w(4-7zbiaMn{5!JQXu)SELk*CNL+Fro|2v|YO)1l15t zs(0^&EB6DPMyaqvY>=KL>)tEpsn;N5Q#yJj<9}ImL((SqErWN3Q=;tBO~ExTCs9hB z2E$7eN#5wX4<3m^5pdjm#5o>s#eS_Q^P)tm$@SawTqF*1dj_i#)3};JslbLKHXl_N z)Fxzf>FN)EK&Rz&*|6&%Hs-^f{V|+_vL1S;-1K-l$5xiC@}%uDuwHYhmsV?YcOUlk zOYkG5v2+`+UWqpn0aaaqrD3lYdh0*!L`3FAsNKu=Q!vJu?Yc8n|CoYyDo_`r0mPoo z8>XCo$W4>l(==h?2~PoRR*kEe)&IH{1sM41mO#-36`02m#nTX{r*r`Q5rZ2-sE|nA zhnn5T#s#v`52T5|?GNS`%HgS2;R(*|^egNPDzzH_z^W)-Q98~$#YAe)cEZ%vge965AS_am#DK#pjPRr-!^za8>`kksCAUj(Xr*1NW5~e zpypt_eJpD&4_bl_y?G%>^L}=>xAaV>KR6;^aBytqpiHe%!j;&MzI_>Sx7O%F%D*8s zSN}cS^<{iiK)=Ji`FpO#^zY!_|D)qeRNAtgmH)m;qC|mq^j(|hL`7uBz+ULUj37gj zksdbnU+LSVo35riSX_4z{UX=%n&}7s0{WuZYoSfwAP`8aKN9P@%e=~1`~1ASL-z%# zw>DO&ixr}c9%4InGc*_y42bdEk)ZdG7-mTu0bD@_vGAr*NcFoMW;@r?@LUhRI zCUJgHb`O?M3!w)|CPu~ej%fddw20lod?Ufp8Dmt0PbnA0J%KE^2~AIcnKP()025V> zG>noSM3$5Btmc$GZoyP^v1@Poz0FD(6YSTH@aD0}BXva?LphAiSz9f&Y(aDAzBnUh z?d2m``~{z;{}kZJ>a^wYI?ry(V9hIoh;|EFc0*-#*`$T0DRQ1;WsqInG;YPS+I4{g zJGpKk%%Sdc5xBa$Q^_I~(F97eqDO7AN3EN0u)PNBAb+n+ zWBTxQx^;O9o0`=g+Zrt_{lP!sgWZHW?8bLYS$;1a@&7w9rD9|Ge;Gb?sEjFoF9-6v z#!2)t{DMHZ2@0W*fCx;62d#;jouz`R5Y(t{BT=$N4yr^^o$ON8d{PQ=!O zX17^CrdM~7D-;ZrC!||<+FEOxI_WI3CA<35va%4v>gc zEX-@h8esj=a4szW7x{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1* znV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI z##W$P9M{B3c3Si9gw^jlPU-JqD~Cye;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP> zrp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ueg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{ zlB`9HUl-WWCG|<1XANN3JVAkRYvr5U4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvx zK%p23>M&=KTCgR!Ee8c?DAO2_R?B zkaqr6^BSP!8dHXxj%N1l+V$_%vzHjqvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rU zHfcog>kv3UZAEB*g7Er@t6CF8kHDmKTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B zZ+jjWgjJ!043F+&#_;D*mz%Q60=L9Ove|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw- z19qI#oB(RSNydn0t~;tAmK!P-d{b-@@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^8 z2zk8VXx|>#R^JCcWdBCy{0nPmYFOxN55#^-rlqobe0#L6)bi?E?SPymF*a5oDDeSd zO0gx?#KMoOd&G(2O@*W)HgX6y_aa6iMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H z`oa=g0SyiLd~BxAj2~l$zRSDHxvDs;I4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*( ze-417=bO2q{492SWrqDK+L3#ChUHtz*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEX zATx4K*hcO`sY$jk#jN5WD<=C3nvuVsRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_ zl3F^#f_rDu8l}l8qcAz0FFa)EAt32IUy_JLIhU_J^l~FRH&6-ivSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPm zZi-noqS!^Ftb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@ zfFGJtW3r>qV>1Z0r|L>7I3un^gcep$AAWfZHRvB|E*kktY$qQP_$YG60C@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn` zEgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czP zg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-&SFp;!k?uFayytV$8HPwuyELSXOs^27XvK-D zOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2S43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@ zK^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf z9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^&X%=?`6lCy~?`&WSWt z?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6VjA#>1f@EYiS8MRHZphp zMA_5`znM=pzUpBPO)pXGYpQ6gkine{6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ z<1SE2Edkfk9C!0t%}8Yio09^F`YGzpaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8p zT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{eSyybt)m<=zXoA^RALYG-2t zouH|L*BLvmm9cdMmn+KGopyR@4*=&0&4g|FLoreZOhRmh=)R0bg~ zT2(8V_q7~42-zvb)+y959OAv!V$u(O3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+ zMWQoJI_r$HxL5km1#6(e@{lK3Udc~n0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai< z6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF# zMnbr-f55(cTa^q4+#)=s+ThMaV~E`B8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg% zbOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$18Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9Sq zuGh<9<=AO&g6BZte6hn>Qmvv;Rt)*cJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapi zPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wB zxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5o}_(P;=!y-AjFrERh%8la!z6Fn@lR?^E~H12D?8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2 zwG1|5ikb^qHv&9hT8w83+yv&BQXOQyMVJSBL(Ky~p)gU3#%|blG?IR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-} z9?*x{y(`509qhCV*B47f2hLrGl^<@SuRGR!KwHei?!CM10Tq*YDIoBNyRuO*>3FU? zHjipIE#B~y3FSfOsMfj~F9PNr*H?0oHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R% zrq|ic4fzJ#USpTm;X7K+E%xsT_3VHKe?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>Jm ziU#?2^`>arnsl#)*R&nf_%>A+qwl%o{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVD zM8AI6MM2V*^_M^sQ0dmHu11fy^kOqXqzpr?K$`}BKWG`=Es(9&S@K@)ZjA{lj3ea7_MBP zk(|hBFRjHVMN!sNUkrB;(cTP)T97M$0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5 zI7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIo zIZSVls9kFGsTwvr4{T_LidcWtt$u{kJlW7moRaH6+A5hW&;;2O#$oKyEN8kx`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41Uw z`P+tft^E2B$domKT@|nNW`EHwyj>&}K;eDpe z1bNOh=fvIfk`&B61+S8ND<(KC%>y&?>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xo zaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$itm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H z?n6^}l{D``Me90`^o|q!olsF?UX3YSq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfw zR!gX_%AR=L3BFsf8LxI|K^J}deh0ZdV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z z-G6kzA01M?rba+G_mwNMQD1mbVbNTWmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bA zv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$ z8p_}t*XIOehezolNa-a2x0BS})Y9}&*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWK zDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~VCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjMsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3 z-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$)WL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>I zgy8p#i4GN{>#v=pFYUQT(g&b$OeTy-X_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6< znXs{W!bkP|s_YI*Yx%4stI`=ZO45IK6rBs`g7sP40ic}GZ58s?Mc$&i`kq_tfci>N zIHrC0H+Qpam1bNa=(`SRKjixBTtm&e`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_ z%7SUeH6=TrXt3J@js`4iDD0=IoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bUpX9ATD#moByY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOx zXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+pmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X z?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L z*&?(77!-=zvnCVW&kUcZMb6;2!83si518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j( ziTaS4HhQ)ldR=r)_7vYFUr%THE}cPF{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVA zdDZRybv?H|>`9f$AKVjFWJ=wegO7hOOIYCtd?Vj{EYLT*^gl35|HQ`R=ti+ADm{jyQE7K@kdjuqJhWVSks>b^ zxha88-h3s;%3_5b1TqFCPTxVjvuB5U>v=HyZ$?JSk+&I%)M7KE*wOg<)1-Iy)8-K! z^XpIt|0ibmk9RtMmlUd7#Ap3Q!q9N4atQy)TmrhrFhfx1DAN`^vq@Q_SRl|V z#lU<~n67$mT)NvHh`%als+G-)x1`Y%4Bp*6Un5Ri9h=_Db zA-AdP!f>f0m@~>7X#uBM?diI@)Egjuz@jXKvm zJo+==juc9_<;CqeRaU9_Mz@;3e=E4=6TK+c`|uu#pIqhSyNm`G(X)&)B`8q0RBv#> z`gGlw(Q=1Xmf55VHj%C#^1lpc>LY8kfA@|rlC1EA<1#`iuyNO z(=;irt{_&K=i4)^x%;U(Xv<)+o=dczC5H3W~+e|f~{*ucxj@{Yi-cw^MqYr3fN zF5D+~!wd$#al?UfMnz(@K#wn`_5na@rRr8XqN@&M&FGEC@`+OEv}sI1hw>Up0qAWf zL#e4~&oM;TVfjRE+10B_gFlLEP9?Q-dARr3xi6nQqnw>k-S;~b z;!0s2VS4}W8b&pGuK=7im+t(`nz@FnT#VD|!)eQNp-W6)@>aA+j~K*H{$G`y2|QHY z|Hmy+CR@#jWY4~)lr1qBJB_RfHJFfP<}pK5(#ZZGSqcpyS&}01LnTWk5fzmXMGHkJ zTP6L^B+uj;lmB_W<~4=${+v0>z31M!-_O@o-O9GyW)j_mjx}!0@br_LE-7SIuPP84 z;5=O(U*g_um0tyG|61N@d9lEuOeiRd+#NY^{nd5;-CVlw&Ap7J?qwM^?E29wvS}2d zbzar4Fz&RSR(-|s!Z6+za&Z zY#D<5q_JUktIzvL0)yq_kLWG6DO{ri=?c!y!f(Dk%G{8)k`Gym%j#!OgXVDD3;$&v@qy#ISJfp=Vm>pls@9-mapVQChAHHd-x+OGx)(*Yr zC1qDUTZ6mM(b_hi!TuFF2k#8uI2;kD70AQ&di$L*4P*Y-@p`jdm%_c3f)XhYD^6M8&#Y$ZpzQMcR|6nsH>b=*R_Von!$BTRj7yGCXokoAQ z&ANvx0-Epw`QIEPgI(^cS2f(Y85yV@ygI{ewyv5Frng)e}KCZF7JbR(&W618_dcEh(#+^zZFY;o<815<5sOHQdeax9_!PyM&;{P zkBa5xymca0#)c#tke@3KNEM8a_mT&1gm;p&&JlMGH(cL(b)BckgMQ^9&vRwj!~3@l zY?L5}=Jzr080OGKb|y`ee(+`flQg|!lo6>=H)X4`$Gz~hLmu2a%kYW_Uu8x09Pa0J zKZ`E$BKJ=2GPj_3l*TEcZ*uYRr<*J^#5pILTT;k_cgto1ZL-%slyc16J~OH-(RgDA z%;EjEnoUkZ&acS{Q8`{i6T5^nywgqQI5bDIymoa7CSZG|WWVk>GM9)zy*bNih|QIm z%0+(Nnc*a_xo;$=!HQYaapLms>J1ToyjtFByY`C2H1wT#178#4+|{H0BBqtCdd$L% z_3Hc60j@{t9~MjM@LBalR&6@>B;9?r<7J~F+WXyYu*y3?px*=8MAK@EA+jRX8{CG?GI-< z54?Dc9CAh>QTAvyOEm0^+x;r2BWX|{3$Y7)L5l*qVE*y0`7J>l2wCmW zL1?|a`pJ-l{fb_N;R(Z9UMiSj6pQjOvQ^%DvhIJF!+Th7jO2~1f1N+(-TyCFYQZYw z4)>7caf^Ki_KJ^Zx2JUb z&$3zJy!*+rCV4%jqwyuNY3j1ZEiltS0xTzd+=itTb;IPYpaf?8Y+RSdVdpacB(bVQ zC(JupLfFp8y43%PMj2}T|VS@%LVp>hv4Y!RPMF?pp8U_$xCJ)S zQx!69>bphNTIb9yn*_yfj{N%bY)t{L1cs8<8|!f$;UQ*}IN=2<6lA;x^(`8t?;+ST zh)z4qeYYgZkIy{$4x28O-pugO&gauRh3;lti9)9Pvw+^)0!h~%m&8Q!AKX%urEMnl z?yEz?g#ODn$UM`+Q#$Q!6|zsq_`dLO5YK-6bJM6ya>}H+vnW^h?o$z;V&wvuM$dR& zeEq;uUUh$XR`TWeC$$c&Jjau2it3#%J-y}Qm>nW*s?En?R&6w@sDXMEr#8~$=b(gk zwDC3)NtAP;M2BW_lL^5ShpK$D%@|BnD{=!Tq)o(5@z3i7Z){} zGr}Exom_qDO{kAVkZ*MbLNHE666Kina#D{&>Jy%~w7yX$oj;cYCd^p9zy z8*+wgSEcj$4{WxKmCF(5o7U4jqwEvO&dm1H#7z}%VXAbW&W24v-tS6N3}qrm1OnE)fUkoE8yMMn9S$?IswS88tQWm4#Oid#ckgr6 zRtHm!mfNl-`d>O*1~d7%;~n+{Rph6BBy^95zqI{K((E!iFQ+h*C3EsbxNo_aRm5gj zKYug($r*Q#W9`p%Bf{bi6;IY0v`pB^^qu)gbg9QHQ7 zWBj(a1YSu)~2RK8Pi#C>{DMlrqFb9e_RehEHyI{n?e3vL_}L>kYJC z_ly$$)zFi*SFyNrnOt(B*7E$??s67EO%DgoZL2XNk8iVx~X_)o++4oaK1M|ou73vA0K^503j@uuVmLcHH4ya-kOIDfM%5%(E z+Xpt~#7y2!KB&)PoyCA+$~DXqxPxxALy!g-O?<9+9KTk4Pgq4AIdUkl`1<1#j^cJg zgU3`0hkHj_jxV>`Y~%LAZl^3o0}`Sm@iw7kwff{M%VwtN)|~!p{AsfA6vB5UolF~d zHWS%*uBDt<9y!9v2Xe|au&1j&iR1HXCdyCjxSgG*L{wmTD4(NQ=mFjpa~xooc6kju z`~+d{j7$h-;HAB04H!Zscu^hZffL#9!p$)9>sRI|Yovm)g@F>ZnosF2EgkU3ln0bR zTA}|+E(tt)!SG)-bEJi_0m{l+(cAz^pi}`9=~n?y&;2eG;d9{M6nj>BHGn(KA2n|O zt}$=FPq!j`p&kQ8>cirSzkU0c08%8{^Qyqi-w2LoO8)^E7;;I1;HQ6B$u0nNaX2CY zSmfi)F`m94zL8>#zu;8|{aBui@RzRKBlP1&mfFxEC@%cjl?NBs`cr^nm){>;$g?rhKr$AO&6qV_Wbn^}5tfFBry^e1`%du2~o zs$~dN;S_#%iwwA_QvmMjh%Qo?0?rR~6liyN5Xmej8(*V9ym*T`xAhHih-v$7U}8=dfXi2i*aAB!xM(Xekg*ix@r|ymDw*{*s0?dlVys2e)z62u1 z+k3esbJE=-P5S$&KdFp+2H7_2e=}OKDrf( z9-207?6$@f4m4B+9E*e((Y89!q?zH|mz_vM>kp*HGXldO0Hg#!EtFhRuOm$u8e~a9 z5(roy7m$Kh+zjW6@zw{&20u?1f2uP&boD}$#Zy)4o&T;vyBoqFiF2t;*g=|1=)PxB z8eM3Mp=l_obbc?I^xyLz?4Y1YDWPa+nm;O<$Cn;@ane616`J9OO2r=rZr{I_Kizyc zP#^^WCdIEp*()rRT+*YZK>V@^Zs=ht32x>Kwe zab)@ZEffz;VM4{XA6e421^h~`ji5r%)B{wZu#hD}f3$y@L0JV9f3g{-RK!A?vBUA}${YF(vO4)@`6f1 z-A|}e#LN{)(eXloDnX4Vs7eH|<@{r#LodP@Nz--$Dg_Par%DCpu2>2jUnqy~|J?eZ zBG4FVsz_A+ibdwv>mLp>P!(t}E>$JGaK$R~;fb{O3($y1ssQQo|5M;^JqC?7qe|hg zu0ZOqeFcp?qVn&Qu7FQJ4hcFi&|nR!*j)MF#b}QO^lN%5)4p*D^H+B){n8%VPUzi! zDihoGcP71a6!ab`l^hK&*dYrVYzJ0)#}xVrp!e;lI!+x+bfCN0KXwUAPU9@#l7@0& QuEJmfE|#`Dqx|px0L@K;Y5)KL literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vSTxF-Vi3+ZOI=Thq2} zyQgjYY1_7^ZQHh{?P))4+qUiQJLi1&{yE>h?~jU%tjdV0h|FENbM3X(KnJdPKc?~k zh=^Ixv*+smUll!DTWH!jrV*wSh*(mx0o6}1@JExzF(#9FXgmTXVoU+>kDe68N)dkQ zH#_98Zv$}lQwjKL@yBd;U(UD0UCl322=pav<=6g>03{O_3oKTq;9bLFX1ia*lw;#K zOiYDcBJf)82->83N_Y(J7Kr_3lE)hAu;)Q(nUVydv+l+nQ$?|%MWTy`t>{havFSQloHwiIkGK9YZ79^9?AZo0ZyQlVR#}lF%dn5n%xYksXf8gnBm=wO7g_^! zauQ-bH1Dc@3ItZ-9D_*pH}p!IG7j8A_o94#~>$LR|TFq zZ-b00*nuw|-5C2lJDCw&8p5N~Z1J&TrcyErds&!l3$eSz%`(*izc;-?HAFD9AHb-| z>)id`QCrzRws^9(#&=pIx9OEf2rmlob8sK&xPCWS+nD~qzU|qG6KwA{zbikcfQrdH z+ zQg>O<`K4L8rN7`GJB0*3<3`z({lWe#K!4AZLsI{%z#ja^OpfjU{!{)x0ZH~RB0W5X zTwN^w=|nA!4PEU2=LR05x~}|B&ZP?#pNgDMwD*ajI6oJqv!L81gu=KpqH22avXf0w zX3HjbCI!n9>l046)5rr5&v5ja!xkKK42zmqHzPx$9Nn_MZk`gLeSLgC=LFf;H1O#B zn=8|^1iRrujHfbgA+8i<9jaXc;CQBAmQvMGQPhFec2H1knCK2x!T`e6soyrqCamX% zTQ4dX_E*8so)E*TB$*io{$c6X)~{aWfaqdTh=xEeGvOAN9H&-t5tEE-qso<+C!2>+ zskX51H-H}#X{A75wqFe-J{?o8Bx|>fTBtl&tcbdR|132Ztqu5X0i-pisB-z8n71%q%>EF}yy5?z=Ve`}hVh{Drv1YWL zW=%ug_&chF11gDv3D6B)Tz5g54H0mDHNjuKZ+)CKFk4Z|$RD zfRuKLW`1B>B?*RUfVd0+u8h3r-{@fZ{k)c!93t1b0+Q9vOaRnEn1*IL>5Z4E4dZ!7 ztp4GP-^1d>8~LMeb}bW!(aAnB1tM_*la=Xx)q(I0Y@__Zd$!KYb8T2VBRw%e$iSdZ zkwdMwd}eV9q*;YvrBFTv1>1+}{H!JK2M*C|TNe$ZSA>UHKk);wz$(F$rXVc|sI^lD zV^?_J!3cLM;GJuBMbftbaRUs$;F}HDEDtIeHQ)^EJJ1F9FKJTGH<(Jj`phE6OuvE) zqK^K`;3S{Y#1M@8yRQwH`?kHMq4tHX#rJ>5lY3DM#o@or4&^_xtBC(|JpGTfrbGkA z2Tu+AyT^pHannww!4^!$5?@5v`LYy~T`qs7SYt$JgrY(w%C+IWA;ZkwEF)u5sDvOK zGk;G>Mh&elvXDcV69J_h02l&O;!{$({fng9Rlc3ID#tmB^FIG^w{HLUpF+iB`|
NnX)EH+Nua)3Y(c z&{(nX_ht=QbJ%DzAya}!&uNu!4V0xI)QE$SY__m)SAKcN0P(&JcoK*Lxr@P zY&P=}&B3*UWNlc|&$Oh{BEqwK2+N2U$4WB7Fd|aIal`FGANUa9E-O)!gV`((ZGCc$ zBJA|FFrlg~9OBp#f7aHodCe{6= zay$6vN~zj1ddMZ9gQ4p32(7wD?(dE>KA2;SOzXRmPBiBc6g`eOsy+pVcHu=;Yd8@{ zSGgXf@%sKKQz~;!J;|2fC@emm#^_rnO0esEn^QxXgJYd`#FPWOUU5b;9eMAF zZhfiZb|gk8aJIw*YLp4!*(=3l8Cp{(%p?ho22*vN9+5NLV0TTazNY$B5L6UKUrd$n zjbX%#m7&F#U?QNOBXkiiWB*_tk+H?N3`vg;1F-I+83{M2!8<^nydGr5XX}tC!10&e z7D36bLaB56WrjL&HiiMVtpff|K%|*{t*ltt^5ood{FOG0<>k&1h95qPio)2`eL${YAGIx(b4VN*~nKn6E~SIQUuRH zQ+5zP6jfnP$S0iJ@~t!Ai3o`X7biohli;E zT#yXyl{bojG@-TGZzpdVDXhbmF%F9+-^YSIv|MT1l3j zrxOFq>gd2%U}?6}8mIj?M zc077Zc9fq(-)4+gXv?Az26IO6eV`RAJz8e3)SC7~>%rlzDwySVx*q$ygTR5kW2ds- z!HBgcq0KON9*8Ff$X0wOq$`T7ml(@TF)VeoF}x1OttjuVHn3~sHrMB++}f7f9H%@f z=|kP_?#+fve@{0MlbkC9tyvQ_R?lRdRJ@$qcB(8*jyMyeME5ns6ypVI1Xm*Zr{DuS zZ!1)rQfa89c~;l~VkCiHI|PCBd`S*2RLNQM8!g9L6?n`^evQNEwfO@&JJRme+uopQX0%Jo zgd5G&#&{nX{o?TQwQvF1<^Cg3?2co;_06=~Hcb6~4XWpNFL!WU{+CK;>gH%|BLOh7@!hsa(>pNDAmpcuVO-?;Bic17R}^|6@8DahH)G z!EmhsfunLL|3b=M0MeK2vqZ|OqUqS8npxwge$w-4pFVXFq$_EKrZY?BuP@Az@(k`L z`ViQBSk`y+YwRT;&W| z2e3UfkCo^uTA4}Qmmtqs+nk#gNr2W4 zTH%hhErhB)pkXR{B!q5P3-OM+M;qu~f>}IjtF%>w{~K-0*jPVLl?Chz&zIdxp}bjx zStp&Iufr58FTQ36AHU)0+CmvaOpKF;W@sMTFpJ`j;3d)J_$tNQI^c<^1o<49Z(~K> z;EZTBaVT%14(bFw2ob@?JLQ2@(1pCdg3S%E4*dJ}dA*v}_a4_P(a`cHnBFJxNobAv zf&Zl-Yt*lhn-wjZsq<9v-IsXxAxMZ58C@e0!rzhJ+D@9^3~?~yllY^s$?&oNwyH!#~6x4gUrfxplCvK#!f z$viuszW>MFEcFL?>ux*((!L$;R?xc*myjRIjgnQX79@UPD$6Dz0jutM@7h_pq z0Zr)#O<^y_K6jfY^X%A-ip>P%3saX{!v;fxT-*0C_j4=UMH+Xth(XVkVGiiKE#f)q z%Jp=JT)uy{&}Iq2E*xr4YsJ5>w^=#-mRZ4vPXpI6q~1aFwi+lQcimO45V-JXP;>(Q zo={U`{=_JF`EQj87Wf}{Qy35s8r1*9Mxg({CvOt}?Vh9d&(}iI-quvs-rm~P;eRA@ zG5?1HO}puruc@S{YNAF3vmUc2B4!k*yi))<5BQmvd3tr}cIs#9)*AX>t`=~{f#Uz0 z0&Nk!7sSZwJe}=)-R^$0{yeS!V`Dh7w{w5rZ9ir!Z7Cd7dwZcK;BT#V0bzTt>;@Cl z#|#A!-IL6CZ@eHH!CG>OO8!%G8&8t4)Ro@}USB*k>oEUo0LsljsJ-%5Mo^MJF2I8- z#v7a5VdJ-Cd%(a+y6QwTmi+?f8Nxtm{g-+WGL>t;s#epv7ug>inqimZCVm!uT5Pf6 ziEgQt7^%xJf#!aPWbuC_3Nxfb&CFbQy!(8ANpkWLI4oSnH?Q3f?0k1t$3d+lkQs{~(>06l&v|MpcFsyAv zin6N!-;pggosR*vV=DO(#+}4ps|5$`udE%Kdmp?G7B#y%H`R|i8skKOd9Xzx8xgR$>Zo2R2Ytktq^w#ul4uicxW#{ zFjG_RNlBroV_n;a7U(KIpcp*{M~e~@>Q#Av90Jc5v%0c>egEdY4v3%|K1XvB{O_8G zkTWLC>OZKf;XguMH2-Pw{BKbFzaY;4v2seZV0>^7Q~d4O=AwaPhP3h|!hw5aqOtT@ z!SNz}$of**Bl3TK209@F=Tn1+mgZa8yh(Png%Zd6Mt}^NSjy)etQrF zme*llAW=N_8R*O~d2!apJnF%(JcN??=`$qs3Y+~xs>L9x`0^NIn!8mMRFA_tg`etw z3k{9JAjnl@ygIiJcNHTy02GMAvBVqEss&t2<2mnw!; zU`J)0>lWiqVqo|ex7!+@0i>B~BSU1A_0w#Ee+2pJx0BFiZ7RDHEvE*ptc9md(B{&+ zKE>TM)+Pd>HEmdJao7U@S>nL(qq*A)#eLOuIfAS@j`_sK0UEY6OAJJ-kOrHG zjHx`g!9j*_jRcJ%>CE9K2MVf?BUZKFHY?EpV6ai7sET-tqk=nDFh-(65rhjtlKEY% z@G&cQ<5BKatfdA1FKuB=i>CCC5(|9TMW%K~GbA4}80I5%B}(gck#Wlq@$nO3%@QP_ z8nvPkJFa|znk>V92cA!K1rKtr)skHEJD;k8P|R8RkCq1Rh^&}Evwa4BUJz2f!2=MH zo4j8Y$YL2313}H~F7@J7mh>u%556Hw0VUOz-Un@ZASCL)y8}4XXS`t1AC*^>PLwIc zUQok5PFS=*#)Z!3JZN&eZ6ZDP^-c@StY*t20JhCnbMxXf=LK#;`4KHEqMZ-Ly9KsS zI2VUJGY&PmdbM+iT)zek)#Qc#_i4uH43 z@T5SZBrhNCiK~~esjsO9!qBpaWK<`>!-`b71Y5ReXQ4AJU~T2Njri1CEp5oKw;Lnm)-Y@Z3sEY}XIgSy%xo=uek(kAAH5MsV$V3uTUsoTzxp_rF=tx zV07vlJNKtJhCu`b}*#m&5LV4TAE&%KtHViDAdv#c^x`J7bg z&N;#I2GkF@SIGht6p-V}`!F_~lCXjl1BdTLIjD2hH$J^YFN`7f{Q?OHPFEM$65^!u zNwkelo*5+$ZT|oQ%o%;rBX$+?xhvjb)SHgNHE_yP%wYkkvXHS{Bf$OiKJ5d1gI0j< zF6N}Aq=(WDo(J{e-uOecxPD>XZ@|u-tgTR<972`q8;&ZD!cep^@B5CaqFz|oU!iFj zU0;6fQX&~15E53EW&w1s9gQQ~Zk16X%6 zjG`j0yq}4deX2?Tr(03kg>C(!7a|b9qFI?jcE^Y>-VhudI@&LI6Qa}WQ>4H_!UVyF z((cm&!3gmq@;BD#5P~0;_2qgZhtJS|>WdtjY=q zLnHH~Fm!cxw|Z?Vw8*~?I$g#9j&uvgm7vPr#&iZgPP~v~BI4jOv;*OQ?jYJtzO<^y z7-#C={r7CO810!^s(MT!@@Vz_SVU)7VBi(e1%1rvS!?PTa}Uv`J!EP3s6Y!xUgM^8 z4f!fq<3Wer_#;u!5ECZ|^c1{|q_lh3m^9|nsMR1#Qm|?4Yp5~|er2?W^7~cl;_r4WSme_o68J9p03~Hc%X#VcX!xAu%1`R!dfGJCp zV*&m47>s^%Ib0~-2f$6oSgn3jg8m%UA;ArcdcRyM5;}|r;)?a^D*lel5C`V5G=c~k zy*w_&BfySOxE!(~PI$*dwG><+-%KT5p?whOUMA*k<9*gi#T{h3DAxzAPxN&Xws8o9Cp*`PA5>d9*Z-ynV# z9yY*1WR^D8|C%I@vo+d8r^pjJ$>eo|j>XiLWvTWLl(^;JHCsoPgem6PvegHb-OTf| zvTgsHSa;BkbG=(NgPO|CZu9gUCGr$8*EoH2_Z#^BnxF0yM~t`|9ws_xZ8X8iZYqh! zAh;HXJ)3P&)Q0(&F>!LN0g#bdbis-cQxyGn9Qgh`q+~49Fqd2epikEUw9caM%V6WgP)532RMRW}8gNS%V%Hx7apSz}tn@bQy!<=lbhmAH=FsMD?leawbnP5BWM0 z5{)@EEIYMu5;u)!+HQWhQ;D3_Cm_NADNeb-f56}<{41aYq8p4=93d=-=q0Yx#knGYfXVt z+kMxlus}t2T5FEyCN~!}90O_X@@PQpuy;kuGz@bWft%diBTx?d)_xWd_-(!LmVrh**oKg!1CNF&LX4{*j|) zIvjCR0I2UUuuEXh<9}oT_zT#jOrJAHNLFT~Ilh9hGJPI1<5`C-WA{tUYlyMeoy!+U zhA#=p!u1R7DNg9u4|QfED-2TuKI}>p#2P9--z;Bbf4Op*;Q9LCbO&aL2i<0O$ByoI z!9;Ght733FC>Pz>$_mw(F`zU?`m@>gE`9_p*=7o=7av`-&ifU(^)UU`Kg3Kw`h9-1 z6`e6+im=|m2v`pN(2dE%%n8YyQz;#3Q-|x`91z?gj68cMrHl}C25|6(_dIGk*8cA3 zRHB|Nwv{@sP4W+YZM)VKI>RlB`n=Oj~Rzx~M+Khz$N$45rLn6k1nvvD^&HtsMA4`s=MmuOJID@$s8Ph4E zAmSV^+s-z8cfv~Yd(40Sh4JG#F~aB>WFoX7ykaOr3JaJ&Lb49=B8Vk-SQT9%7TYhv z?-Pprt{|=Y5ZQ1?od|A<_IJU93|l4oAfBm?3-wk{O<8ea+`}u%(kub(LFo2zFtd?4 zwpN|2mBNywv+d^y_8#<$r>*5+$wRTCygFLcrwT(qc^n&@9r+}Kd_u@Ithz(6Qb4}A zWo_HdBj#V$VE#l6pD0a=NfB0l^6W^g`vm^sta>Tly?$E&{F?TTX~DsKF~poFfmN%2 z4x`Dc{u{Lkqz&y!33;X}weD}&;7p>xiI&ZUb1H9iD25a(gI|`|;G^NwJPv=1S5e)j z;U;`?n}jnY6rA{V^ zxTd{bK)Gi^odL3l989DQlN+Zs39Xe&otGeY(b5>rlIqfc7Ap4}EC?j<{M=hlH{1+d zw|c}}yx88_xQr`{98Z!d^FNH77=u(p-L{W6RvIn40f-BldeF-YD>p6#)(Qzf)lfZj z?3wAMtPPp>vMehkT`3gToPd%|D8~4`5WK{`#+}{L{jRUMt zrFz+O$C7y8$M&E4@+p+oV5c%uYzbqd2Y%SSgYy#xh4G3hQv>V*BnuKQhBa#=oZB~w{azUB+q%bRe_R^ z>fHBilnRTUfaJ201czL8^~Ix#+qOHSO)A|xWLqOxB$dT2W~)e-r9;bm=;p;RjYahB z*1hegN(VKK+ztr~h1}YP@6cfj{e#|sS`;3tJhIJK=tVJ-*h-5y9n*&cYCSdg#EHE# zSIx=r#qOaLJoVVf6v;(okg6?*L_55atl^W(gm^yjR?$GplNP>BZsBYEf_>wM0Lc;T zhf&gpzOWNxS>m+mN92N0{;4uw`P+9^*|-1~$uXpggj4- z^SFc4`uzj2OwdEVT@}Q`(^EcQ_5(ZtXTql*yGzdS&vrS_w>~~ra|Nb5abwf}Y!uq6R5f&6g2ge~2p(%c< z@O)cz%%rr4*cRJ5f`n@lvHNk@lE1a*96Kw6lJ~B-XfJW%?&-y?;E&?1AacU@`N`!O z6}V>8^%RZ7SQnZ-z$(jsX`amu*5Fj8g!3RTRwK^`2_QHe;_2y_n|6gSaGyPmI#kA0sYV<_qOZc#-2BO%hX)f$s-Z3xlI!ub z^;3ru11DA`4heAu%}HIXo&ctujzE2!6DIGE{?Zs>2}J+p&C$rc7gJC35gxhflorvsb%sGOxpuWhF)dL_&7&Z99=5M0b~Qa;Mo!j&Ti_kXW!86N%n= zSC@6Lw>UQ__F&+&Rzv?gscwAz8IP!n63>SP)^62(HK98nGjLY2*e^OwOq`3O|C92? z;TVhZ2SK%9AGW4ZavTB9?)mUbOoF`V7S=XM;#3EUpR+^oHtdV!GK^nXzCu>tpR|89 zdD{fnvCaN^^LL%amZ^}-E+214g&^56rpdc@yv0b<3}Ys?)f|fXN4oHf$six)-@<;W&&_kj z-B}M5U*1sb4)77aR=@%I?|Wkn-QJVuA96an25;~!gq(g1@O-5VGo7y&E_srxL6ZfS z*R%$gR}dyONgju*D&?geiSj7SZ@ftyA|}(*Y4KbvU!YLsi1EDQQCnb+-cM=K1io78o!v*);o<XwjaQH%)uIP&Zm?)Nfbfn;jIr z)d#!$gOe3QHp}2NBak@yYv3m(CPKkwI|{;d=gi552u?xj9ObCU^DJFQp4t4e1tPzM zvsRIGZ6VF+{6PvqsplMZWhz10YwS={?`~O0Ec$`-!klNUYtzWA^f9m7tkEzCy<_nS z=&<(awFeZvt51>@o_~>PLs05CY)$;}Oo$VDO)?l-{CS1Co=nxjqben*O1BR>#9`0^ zkwk^k-wcLCLGh|XLjdWv0_Hg54B&OzCE^3NCP}~OajK-LuRW53CkV~Su0U>zN%yQP zH8UH#W5P3-!ToO-2k&)}nFe`t+mdqCxxAHgcifup^gKpMObbox9LFK;LP3}0dP-UW z?Zo*^nrQ6*$FtZ(>kLCc2LY*|{!dUn$^RW~m9leoF|@Jy|M5p-G~j%+P0_#orRKf8 zvuu5<*XO!B?1E}-*SY~MOa$6c%2cM+xa8}_8x*aVn~57v&W(0mqN1W`5a7*VN{SUH zXz98DDyCnX2EPl-`Lesf`=AQT%YSDb`$%;(jUTrNen$NPJrlpPDP}prI>Ml!r6bCT;mjsg@X^#&<}CGf0JtR{Ecwd&)2zuhr#nqdgHj+g2n}GK9CHuwO zk>oZxy{vcOL)$8-}L^iVfJHAGfwN$prHjYV0ju}8%jWquw>}_W6j~m<}Jf!G?~r5&Rx)!9JNX!ts#SGe2HzobV5); zpj@&`cNcO&q+%*<%D7za|?m5qlmFK$=MJ_iv{aRs+BGVrs)98BlN^nMr{V_fcl_;jkzRju+c-y?gqBC_@J0dFLq-D9@VN&-`R9U;nv$Hg?>$oe4N&Ht$V_(JR3TG^! zzJsbQbi zFE6-{#9{G{+Z}ww!ycl*7rRdmU#_&|DqPfX3CR1I{Kk;bHwF6jh0opI`UV2W{*|nn zf_Y@%wW6APb&9RrbEN=PQRBEpM(N1w`81s=(xQj6 z-eO0k9=Al|>Ej|Mw&G`%q8e$2xVz1v4DXAi8G};R$y)ww638Y=9y$ZYFDM$}vzusg zUf+~BPX>(SjA|tgaFZr_e0{)+z9i6G#lgt=F_n$d=beAt0Sa0a7>z-?vcjl3e+W}+ z1&9=|vC=$co}-Zh*%3588G?v&U7%N1Qf-wNWJ)(v`iO5KHSkC5&g7CrKu8V}uQGcfcz zmBz#Lbqwqy#Z~UzHgOQ;Q-rPxrRNvl(&u6ts4~0=KkeS;zqURz%!-ERppmd%0v>iRlEf+H$yl{_8TMJzo0 z>n)`On|7=WQdsqhXI?#V{>+~}qt-cQbokEbgwV3QvSP7&hK4R{Z{aGHVS3;+h{|Hz z6$Js}_AJr383c_+6sNR|$qu6dqHXQTc6?(XWPCVZv=)D#6_;D_8P-=zOGEN5&?~8S zl5jQ?NL$c%O)*bOohdNwGIKM#jSAC?BVY={@A#c9GmX0=T(0G}xs`-%f3r=m6-cpK z!%waekyAvm9C3%>sixdZj+I(wQlbB4wv9xKI*T13DYG^T%}zZYJ|0$Oj^YtY+d$V$ zAVudSc-)FMl|54n=N{BnZTM|!>=bhaja?o7s+v1*U$!v!qQ%`T-6fBvmdPbVmro&d zk07TOp*KuxRUSTLRrBj{mjsnF8`d}rMViY8j`jo~Hp$fkv9F_g(jUo#Arp;Xw0M$~ zRIN!B22~$kx;QYmOkos@%|5k)!QypDMVe}1M9tZfkpXKGOxvKXB!=lo`p?|R1l=tA zp(1}c6T3Fwj_CPJwVsYtgeRKg?9?}%oRq0F+r+kdB=bFUdVDRPa;E~~>2$w}>O>v=?|e>#(-Lyx?nbg=ckJ#5U6;RT zNvHhXk$P}m9wSvFyU3}=7!y?Y z=fg$PbV8d7g25&-jOcs{%}wTDKm>!Vk);&rr;O1nvO0VrU&Q?TtYVU=ir`te8SLlS zKSNmV=+vF|ATGg`4$N1uS|n??f}C_4Sz!f|4Ly8#yTW-FBfvS48Tef|-46C(wEO_%pPhUC5$-~Y?!0vFZ^Gu`x=m7X99_?C-`|h zfmMM&Y@zdfitA@KPw4Mc(YHcY1)3*1xvW9V-r4n-9ZuBpFcf{yz+SR{ zo$ZSU_|fgwF~aakGr(9Be`~A|3)B=9`$M-TWKipq-NqRDRQc}ABo*s_5kV%doIX7LRLRau_gd@Rd_aLFXGSU+U?uAqh z8qusWWcvgQ&wu{|sRXmv?sl=xc<$6AR$+cl& zFNh5q1~kffG{3lDUdvEZu5c(aAG~+64FxdlfwY^*;JSS|m~CJusvi-!$XR`6@XtY2 znDHSz7}_Bx7zGq-^5{stTRy|I@N=>*y$zz>m^}^{d&~h;0kYiq8<^Wq7Dz0w31ShO^~LUfW6rfitR0(=3;Uue`Y%y@ex#eKPOW zO~V?)M#AeHB2kovn1v=n^D?2{2jhIQd9t|_Q+c|ZFaWt+r&#yrOu-!4pXAJuxM+Cx z*H&>eZ0v8Y`t}8{TV6smOj=__gFC=eah)mZt9gwz>>W$!>b3O;Rm^Ig*POZP8Rl0f zT~o=Nu1J|lO>}xX&#P58%Yl z83`HRs5#32Qm9mdCrMlV|NKNC+Z~ z9OB8xk5HJ>gBLi+m@(pvpw)1(OaVJKs*$Ou#@Knd#bk+V@y;YXT?)4eP9E5{J%KGtYinNYJUH9PU3A}66c>Xn zZ{Bn0<;8$WCOAL$^NqTjwM?5d=RHgw3!72WRo0c;+houoUA@HWLZM;^U$&sycWrFd zE7ekt9;kb0`lps{>R(}YnXlyGY}5pPd9zBpgXeJTY_jwaJGSJQC#-KJqmh-;ad&F- z-Y)E>!&`Rz!HtCz>%yOJ|v(u7P*I$jqEY3}(Z-orn4 zlI?CYKNl`6I){#2P1h)y(6?i;^z`N3bxTV%wNvQW+eu|x=kbj~s8rhCR*0H=iGkSj zk23lr9kr|p7#qKL=UjgO`@UnvzU)`&fI>1Qs7ubq{@+lK{hH* zvl6eSb9%yngRn^T<;jG1SVa)eA>T^XX=yUS@NCKpk?ovCW1D@!=@kn;l_BrG;hOTC z6K&H{<8K#dI(A+zw-MWxS+~{g$tI7|SfP$EYKxA}LlVO^sT#Oby^grkdZ^^lA}uEF zBSj$weBJG{+Bh@Yffzsw=HyChS(dtLE3i*}Zj@~!_T-Ay7z=B)+*~3|?w`Zd)Co2t zC&4DyB!o&YgSw+fJn6`sn$e)29`kUwAc+1MND7YjV%lO;H2}fNy>hD#=gT ze+-aFNpyKIoXY~Vq-}OWPBe?Rfu^{ps8>Xy%42r@RV#*QV~P83jdlFNgkPN=T|Kt7 zV*M`Rh*30&AWlb$;ae130e@}Tqi3zx2^JQHpM>j$6x`#{mu%tZlwx9Gj@Hc92IuY* zarmT|*d0E~vt6<+r?W^UW0&#U&)8B6+1+;k^2|FWBRP9?C4Rk)HAh&=AS8FS|NQaZ z2j!iZ)nbEyg4ZTp-zHwVlfLC~tXIrv(xrP8PAtR{*c;T24ycA-;auWsya-!kF~CWZ zw_uZ|%urXgUbc@x=L=_g@QJ@m#5beS@6W195Hn7>_}z@Xt{DIEA`A&V82bc^#!q8$ zFh?z_Vn|ozJ;NPd^5uu(9tspo8t%&-U9Ckay-s@DnM*R5rtu|4)~e)`z0P-sy?)kc zs_k&J@0&0!q4~%cKL)2l;N*T&0;mqX5T{Qy60%JtKTQZ-xb%KOcgqwJmb%MOOKk7N zgq})R_6**{8A|6H?fO+2`#QU)p$Ei2&nbj6TpLSIT^D$|`TcSeh+)}VMb}LmvZ{O| ze*1IdCt3+yhdYVxcM)Q_V0bIXLgr6~%JS<<&dxIgfL=Vnx4YHuU@I34JXA|+$_S3~ zy~X#gO_X!cSs^XM{yzDGNM>?v(+sF#<0;AH^YrE8smx<36bUsHbN#y57K8WEu(`qHvQ6cAZPo=J5C(lSmUCZ57Rj6cx!e^rfaI5%w}unz}4 zoX=nt)FVNV%QDJH`o!u9olLD4O5fl)xp+#RloZlaA92o3x4->?rB4`gS$;WO{R;Z3>cG3IgFX2EA?PK^M}@%1%A;?f6}s&CV$cIyEr#q5;yHdNZ9h{| z-=dX+a5elJoDo?Eq&Og!nN6A)5yYpnGEp}?=!C-V)(*~z-+?kY1Q7qs#Rsy%hu_60rdbB+QQNr?S1 z?;xtjUv|*E3}HmuNyB9aFL5H~3Ho0UsmuMZELp1a#CA1g`P{-mT?BchuLEtK}!QZ=3AWakRu~?f9V~3F;TV`5%9Pcs_$gq&CcU}r8gOO zC2&SWPsSG{&o-LIGTBqp6SLQZPvYKp$$7L4WRRZ0BR$Kf0I0SCFkqveCp@f)o8W)! z$%7D1R`&j7W9Q9CGus_)b%+B#J2G;l*FLz#s$hw{BHS~WNLODV#(!u_2Pe&tMsq={ zdm7>_WecWF#D=?eMjLj=-_z`aHMZ=3_-&E8;ibPmM}61i6J3is*=dKf%HC>=xbj4$ zS|Q-hWQ8T5mWde6h@;mS+?k=89?1FU<%qH9B(l&O>k|u_aD|DY*@~(`_pb|B#rJ&g zR0(~(68fpUPz6TdS@4JT5MOPrqDh5_H(eX1$P2SQrkvN8sTxwV>l0)Qq z0pzTuvtEAKRDkKGhhv^jk%|HQ1DdF%5oKq5BS>szk-CIke{%js?~%@$uaN3^Uz6Wf z_iyx{bZ(;9y4X&>LPV=L=d+A}7I4GkK0c1Xts{rrW1Q7apHf-))`BgC^0^F(>At1* za@e7{lq%yAkn*NH8Q1{@{lKhRg*^TfGvv!Sn*ed*x@6>M%aaqySxR|oNadYt1mpUZ z6H(rupHYf&Z z29$5g#|0MX#aR6TZ$@eGxxABRKakDYtD%5BmKp;HbG_ZbT+=81E&=XRk6m_3t9PvD zr5Cqy(v?gHcYvYvXkNH@S#Po~q(_7MOuCAB8G$a9BC##gw^5mW16cML=T=ERL7wsk zzNEayTG?mtB=x*wc@ifBCJ|irFVMOvH)AFRW8WE~U()QT=HBCe@s$dA9O!@`zAAT) zaOZ7l6vyR+Nk_OOF!ZlZmjoImKh)dxFbbR~z(cMhfeX1l7S_`;h|v3gI}n9$sSQ>+3@AFAy9=B_y$)q;Wdl|C-X|VV3w8 z2S#>|5dGA8^9%Bu&fhmVRrTX>Z7{~3V&0UpJNEl0=N32euvDGCJ>#6dUSi&PxFW*s zS`}TB>?}H(T2lxBJ!V#2taV;q%zd6fOr=SGHpoSG*4PDaiG0pdb5`jelVipkEk%FV zThLc@Hc_AL1#D&T4D=w@UezYNJ%0=f3iVRuVL5H?eeZM}4W*bomebEU@e2d`M<~uW zf#Bugwf`VezG|^Qbt6R_=U0}|=k;mIIakz99*>FrsQR{0aQRP6ko?5<7bkDN8evZ& zB@_KqQG?ErKL=1*ZM9_5?Pq%lcS4uLSzN(Mr5=t6xHLS~Ym`UgM@D&VNu8e?_=nSFtF$u@hpPSmI4Vo_t&v?>$~K4y(O~Rb*(MFy_igM7 z*~yYUyR6yQgzWnWMUgDov!!g=lInM+=lOmOk4L`O?{i&qxy&D*_qorRbDwj6?)!ef z#JLd7F6Z2I$S0iYI={rZNk*<{HtIl^mx=h>Cim*04K4+Z4IJtd*-)%6XV2(MCscPiw_a+y*?BKbTS@BZ3AUao^%Zi#PhoY9Vib4N>SE%4>=Jco0v zH_Miey{E;FkdlZSq)e<{`+S3W=*ttvD#hB8w=|2aV*D=yOV}(&p%0LbEWH$&@$X3x~CiF-?ejQ*N+-M zc8zT@3iwkdRT2t(XS`d7`tJQAjRmKAhiw{WOqpuvFp`i@Q@!KMhwKgsA}%@sw8Xo5Y=F zhRJZg)O4uqNWj?V&&vth*H#je6T}}p_<>!Dr#89q@uSjWv~JuW(>FqoJ5^ho0%K?E z9?x_Q;kmcsQ@5=}z@tdljMSt9-Z3xn$k)kEjK|qXS>EfuDmu(Z8|(W?gY6-l z@R_#M8=vxKMAoi&PwnaIYw2COJM@atcgfr=zK1bvjW?9B`-+Voe$Q+H$j!1$Tjn+* z&LY<%)L@;zhnJlB^Og6I&BOR-m?{IW;tyYC%FZ!&Z>kGjHJ6cqM-F z&19n+e1=9AH1VrVeHrIzqlC`w9=*zfmrerF?JMzO&|Mmv;!4DKc(sp+jy^Dx?(8>1 zH&yS_4yL7m&GWX~mdfgH*AB4{CKo;+egw=PrvkTaoBU+P-4u?E|&!c z)DKc;>$$B6u*Zr1SjUh2)FeuWLWHl5TH(UHWkf zLs>7px!c5n;rbe^lO@qlYLzlDVp(z?6rPZel=YB)Uv&n!2{+Mb$-vQl=xKw( zve&>xYx+jW_NJh!FV||r?;hdP*jOXYcLCp>DOtJ?2S^)DkM{{Eb zS$!L$e_o0(^}n3tA1R3-$SNvgBq;DOEo}fNc|tB%%#g4RA3{|euq)p+xd3I8^4E&m zFrD%}nvG^HUAIKe9_{tXB;tl|G<%>yk6R;8L2)KUJw4yHJXUOPM>(-+jxq4R;z8H#>rnJy*)8N+$wA$^F zN+H*3t)eFEgxLw+Nw3};4WV$qj&_D`%ADV2%r zJCPCo%{=z7;`F98(us5JnT(G@sKTZ^;2FVitXyLe-S5(hV&Ium+1pIUB(CZ#h|g)u zSLJJ<@HgrDiA-}V_6B^x1>c9B6%~847JkQ!^KLZ2skm;q*edo;UA)~?SghG8;QbHh z_6M;ouo_1rq9=x$<`Y@EA{C%6-pEV}B(1#sDoe_e1s3^Y>n#1Sw;N|}8D|s|VPd+g z-_$QhCz`vLxxrVMx3ape1xu3*wjx=yKSlM~nFgkNWb4?DDr*!?U)L_VeffF<+!j|b zZ$Wn2$TDv3C3V@BHpSgv3JUif8%hk%OsGZ=OxH@8&4`bbf$`aAMchl^qN>Eyu3JH} z9-S!x8-s4fE=lad%Pkp8hAs~u?|uRnL48O|;*DEU! zuS0{cpk%1E0nc__2%;apFsTm0bKtd&A0~S3Cj^?72-*Owk3V!ZG*PswDfS~}2<8le z5+W^`Y(&R)yVF*tU_s!XMcJS`;(Tr`J0%>p=Z&InR%D3@KEzzI+-2)HK zuoNZ&o=wUC&+*?ofPb0a(E6(<2Amd6%uSu_^-<1?hsxs~0K5^f(LsGqgEF^+0_H=uNk9S0bb!|O8d?m5gQjUKevPaO+*VfSn^2892K~%crWM8+6 z25@V?Y@J<9w%@NXh-2!}SK_(X)O4AM1-WTg>sj1{lj5@=q&dxE^9xng1_z9w9DK>| z6Iybcd0e zyi;Ew!KBRIfGPGytQ6}z}MeXCfLY0?9%RiyagSp_D1?N&c{ zyo>VbJ4Gy`@Fv+5cKgUgs~na$>BV{*em7PU3%lloy_aEovR+J7TfQKh8BJXyL6|P8un-Jnq(ghd!_HEOh$zlv2$~y3krgeH;9zC}V3f`uDtW(%mT#944DQa~^8ZI+zAUu4U(j0YcDfKR$bK#gvn_{JZ>|gZ5+)u?T$w7Q%F^;!Wk?G z(le7r!ufT*cxS}PR6hIVtXa)i`d$-_1KkyBU>qmgz-=T};uxx&sKgv48akIWQ89F{ z0XiY?WM^~;|T8zBOr zs#zuOONzH?svv*jokd5SK8wG>+yMC)LYL|vLqm^PMHcT=`}V$=nIRHe2?h)8WQa6O zPAU}d`1y(>kZiP~Gr=mtJLMu`i<2CspL|q2DqAgAD^7*$xzM`PU4^ga`ilE134XBQ z99P(LhHU@7qvl9Yzg$M`+dlS=x^(m-_3t|h>S}E0bcFMn=C|KamQ)=w2^e)35p`zY zRV8X?d;s^>Cof2SPR&nP3E+-LCkS0J$H!eh8~k0qo$}00b=7!H_I2O+Ro@3O$nPdm ztmbOO^B+IHzQ5w>@@@J4cKw5&^_w6s!s=H%&byAbUtczPQ7}wfTqxxtQNfn*u73Qw zGuWsrky_ajPx-5`R<)6xHf>C(oqGf_Fw|-U*GfS?xLML$kv;h_pZ@Kk$y0X(S+K80 z6^|z)*`5VUkawg}=z`S;VhZhxyDfrE0$(PMurAxl~<>lfZa>JZ288ULK7D` zl9|#L^JL}Y$j*j`0-K6kH#?bRmg#5L3iB4Z)%iF@SqT+Lp|{i`m%R-|ZE94Np7Pa5 zCqC^V3}B(FR340pmF*qaa}M}+h6}mqE~7Sh!9bDv9YRT|>vBNAqv09zXHMlcuhKD| zcjjA(b*XCIwJ33?CB!+;{)vX@9xns_b-VO{i0y?}{!sdXj1GM8+$#v>W7nw;+O_9B z_{4L;C6ol?(?W0<6taGEn1^uG=?Q3i29sE`RfYCaV$3DKc_;?HsL?D_fSYg}SuO5U zOB_f4^vZ_x%o`5|C@9C5+o=mFy@au{s)sKw!UgC&L35aH(sgDxRE2De%(%OT=VUdN ziVLEmdOvJ&5*tCMKRyXctCwQu_RH%;m*$YK&m;jtbdH#Ak~13T1^f89tn`A%QEHWs~jnY~E}p_Z$XC z=?YXLCkzVSK+Id`xZYTegb@W8_baLt-Fq`Tv|=)JPbFsKRm)4UW;yT+J`<)%#ue9DPOkje)YF2fsCilK9MIIK>p*`fkoD5nGfmLwt)!KOT+> zOFq*VZktDDyM3P5UOg`~XL#cbzC}eL%qMB=Q5$d89MKuN#$6|4gx_Jt0Gfn8w&q}%lq4QU%6#jT*MRT% zrLz~C8FYKHawn-EQWN1B75O&quS+Z81(zN)G>~vN8VwC+e+y(`>HcxC{MrJ;H1Z4k zZWuv$w_F0-Ub%MVcpIc){4PGL^I7M{>;hS?;eH!;gmcOE66z3;Z1Phqo(t zVP(Hg6q#0gIKgsg7L7WE!{Y#1nI(45tx2{$34dDd#!Z0NIyrm)HOn5W#7;f4pQci# zDW!FI(g4e668kI9{2+mLwB+=#9bfqgX%!B34V-$wwSN(_cm*^{y0jQtv*4}eO^sOV z*9xoNvX)c9isB}Tgx&ZRjp3kwhTVK?r9;n!x>^XYT z@Q^7zp{rkIs{2mUSE^2!Gf6$6;j~&4=-0cSJJDizZp6LTe8b45;{AKM%v99}{{FfC zz709%u0mC=1KXTo(=TqmZQ;c?$M3z(!xah>aywrj40sc2y3rKFw4jCq+Y+u=CH@_V zxz|qeTwa>+<|H%8Dz5u>ZI5MmjTFwXS-Fv!TDd*`>3{krWoNVx$<133`(ftS?ZPyY z&4@ah^3^i`vL$BZa>O|Nt?ucewzsF)0zX3qmM^|waXr=T0pfIb0*$AwU=?Ipl|1Y; z*Pk6{C-p4MY;j@IJ|DW>QHZQJcp;Z~?8(Q+Kk3^0qJ}SCk^*n4W zu9ZFwLHUx-$6xvaQ)SUQcYd6fF8&x)V`1bIuX@>{mE$b|Yd(qomn3;bPwnDUc0F=; zh*6_((%bqAYQWQ~odER?h>1mkL4kpb3s7`0m@rDKGU*oyF)$j~Ffd4fXV$?`f~rHf zB%Y)@5SXZvfwm10RY5X?TEo)PK_`L6qgBp=#>fO49$D zDq8Ozj0q6213tV5Qq=;fZ0$|KroY{Dz=l@lU^J)?Ko@ti20TRplXzphBi>XGx4bou zEWrkNjz0t5j!_ke{g5I#PUlEU$Km8g8TE|XK=MkU@PT4T><2OVamoK;wJ}3X0L$vX zgd7gNa359*nc)R-0!`2X@FOTB`+oETOPc=ubp5R)VQgY+5BTZZJ2?9QwnO=dnulIUF3gFn;BODC2)65)HeVd%t86sL7Rv^Y+nbn+&l z6BAJY(ETvwI)Ts$aiE8rht4KD*qNyE{8{x6R|%akbTBzw;2+6Echkt+W+`u^XX z_z&x%n '} -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 -# This is normally unused -# shellcheck disable=SC2034 +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" APP_BASE_NAME=${0##*/} -# 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 + +# 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"' # 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'). @@ -106,10 +108,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 @@ -117,46 +119,39 @@ 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 -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. + 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. 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*) -# 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 + 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 fi # Collect all arguments for the java command, stacking in reverse order: @@ -169,56 +164,46 @@ 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 - -# 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. +# 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. set -- \ -"-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 + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" # Use "xargs" to parse quoted args. # @@ -240,10 +225,10 @@ fi # 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 25da30d..6a68175 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,8 +25,7 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused +if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -34,20 +33,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="-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-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% equ 0 goto execute +if "%ERRORLEVEL%" == "0" goto execute -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 +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. goto fail @@ -57,11 +56,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -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 +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. goto fail @@ -76,15 +75,13 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd +if "%ERRORLEVEL%"=="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! -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% +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml deleted file mode 100644 index 5648d96..0000000 --- a/src/main/AndroidManifest.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/main/java/io/tiledb/cloud/TileDBSQL.java b/src/main/java/io/tiledb/cloud/TileDBSQL.java deleted file mode 100644 index ee06055..0000000 --- a/src/main/java/io/tiledb/cloud/TileDBSQL.java +++ /dev/null @@ -1,128 +0,0 @@ -package io.tiledb.cloud; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.api.SqlApi; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import org.apache.arrow.memory.RootAllocator; -import org.apache.arrow.memory.unsafe.UnsafeAllocationManager; -import org.apache.arrow.vector.FieldVector; -import org.apache.arrow.vector.ValueVector; -import org.apache.arrow.vector.VectorSchemaRoot; -import org.apache.arrow.vector.ipc.ArrowStreamReader; -import org.apache.arrow.vector.util.TransferPair; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.util.*; -import org.apache.arrow.compression.CommonsCompressionFactory; - -public class TileDBSQL implements AutoCloseable{ - private String namespace; - - private SQLParameters sql; - - private TileDBClient tileDBClient; - - private SqlApi apiInstance; - - private ArrayList readBatches; - - private List results; - - private ArrowStreamReader reader; - - /** - * - * @param tileDBClient The TileDBClient - * @param namespace namespace to run task under is in (an organization name or user's username) - * @param sql sql being submitted - */ - public TileDBSQL(TileDBClient tileDBClient, String namespace, SQLParameters sql) { - Objects.requireNonNull(tileDBClient, "TileDBClient can not be null"); - Objects.requireNonNull(namespace, "Namespace can not be null"); - Objects.requireNonNull(sql, "SQL parameters can not be null"); - this.namespace = namespace; - this.sql = sql; - this.tileDBClient = tileDBClient; - this.apiInstance = new SqlApi(this.tileDBClient.getApiClient()); - this.readBatches = new ArrayList<>(); - } - - /** - * Exec an SQL query and get results in arrow format. - * - * @return A pair that consists of an ArrayList of all valueVectors and the - * number of batches read. - */ - public Pair, Integer> execArrow(){ - try { - if (sql.getResultFormat() != ResultFormat.ARROW && sql.getResultFormat() != null){ - throw new ApiException("The ResultFormat you specified is not 'ARROW'. Since you are calling " + - "'execArrow()' you can not specify a different ResultFormat. "); - } - sql.setResultFormat(ResultFormat.ARROW); - byte[] bytes = apiInstance.runSQLBytes(namespace, sql, "none"); - ArrayList valueVectors = null; - int readBatchesCount = 0; - -// RootAllocator allocator = new RootAllocator(Long.MAX_VALUE); - RootAllocator allocator = new RootAllocator(RootAllocator.configBuilder().allocationManagerFactory(UnsafeAllocationManager.FACTORY).build()); - ArrowStreamReader reader = new ArrowStreamReader(new ByteArrayInputStream(bytes), allocator, CommonsCompressionFactory.INSTANCE); - - VectorSchemaRoot root = reader.getVectorSchemaRoot(); - - while(reader.loadNextBatch()) { - readBatchesCount++; - valueVectors = new ArrayList<>(); - for (FieldVector f : root.getFieldVectors()) { - // transfer will not copy data but transfer ownership of memory - // from ArrowStreamReader to TileDBSQL. This is necessary because - // otherwise we are not able to close the reader and retain the - // data. - TransferPair t = f.getTransferPair(allocator); - t.transfer(); - valueVectors.add(t.getTo()); - } - } - reader.close(); - return new Pair<>(valueVectors, readBatchesCount); - - } catch (IOException | ApiException e) { - throw new RuntimeException(e); - } - } - - /** - * Exec an SQL query and get results in any format except arrow. - * - * @return - */ - public List> exec(){ - try { - if (sql.getResultFormat() == null ){ - return apiInstance.runSQL(namespace, sql, ResultFormat.TILEDB_JSON.toString()); - } else { - return apiInstance.runSQL(namespace, sql, sql.getResultFormat().toString()); - } - } catch (ApiException e) { - System.err.println("Exception when calling SqlApi#runSQL/runSQLBytes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - /** - * - */ - public void close(){ - try { - reader.close(); - } catch (IOException e) { - throw new RuntimeException(e); - } - } -} diff --git a/src/main/java/io/tiledb/cloud/TileDBUDF.java b/src/main/java/io/tiledb/cloud/TileDBUDF.java deleted file mode 100644 index 1641105..0000000 --- a/src/main/java/io/tiledb/cloud/TileDBUDF.java +++ /dev/null @@ -1,529 +0,0 @@ -package io.tiledb.cloud; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.api.UdfApi; -import io.tiledb.cloud.rest_api.model.*; -import org.apache.arrow.vector.ValueVector; -import org.json.JSONArray; -import org.json.JSONObject; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; - -import static io.tiledb.cloud.TileDBUtils.serializeArgs; - -public class TileDBUDF { - private TileDBClient tileDBClient; - private String namespace; - private UdfApi apiInstance; - - public TileDBUDF(TileDBClient tileDBClient, String namespace) { - this.tileDBClient = tileDBClient; - this.namespace = namespace; - this.apiInstance = new UdfApi(this.tileDBClient.getApiClient()); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return The result in String format - */ - public String executeGeneric(GenericUDF genericUDF, HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - genericUDF.setArgument(serializedArgs); - try { - return apiInstance.submitGenericUDFString(namespace, genericUDF, "none"); - } 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(); - } - return null; - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return The result in String format - */ - public String executeGeneric(GenericUDF genericUDF){ - try { - return apiInstance.submitGenericUDFString(namespace, genericUDF, "none"); - } 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(); - } - return null; - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return The result as a JSON object - */ - public JSONObject executeGenericJSON(GenericUDF genericUDF, HashMap arguments){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF, arguments); - return new JSONObject(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return The result as a JSON object - */ - public JSONObject executeGenericJSON(GenericUDF genericUDF){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF); - return new JSONObject(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return The result as a JSON array object - */ - public JSONArray executeGenericJSONArray(GenericUDF genericUDF, HashMap arguments){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF, arguments); - return new JSONArray(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return The result as a JSON array object - */ - public JSONArray executeGenericJSONArray(GenericUDF genericUDF){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF); - return new JSONArray(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return A pair that consists of an ArrayList of all valueVectors and the number of batches read. - */ - public Pair, Integer> executeGenericArrow(GenericUDF genericUDF, - HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - genericUDF.setArgument(serializedArgs); - genericUDF.setResultFormat(ResultFormat.ARROW); - try { - byte[] bytes = apiInstance.submitGenericUDFBytes(namespace, genericUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return A pair that consists of an ArrayList of all valueVectors and the number of batches read. - */ - public Pair, Integer> executeGenericArrow(GenericUDF genericUDF){ - genericUDF.setResultFormat(ResultFormat.ARROW); - try { - byte[] bytes = apiInstance.submitGenericUDFBytes(namespace, genericUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a String - * @apiNote is replaced by executeSingleArray(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public String executeSingleArray(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - - String[] split = breakdownFullURI(arrayURI); - - try { - return apiInstance.submitUDFString(split[0], split[1], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return null; - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a String - */ - public String executeSingleArray(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - - try { - return apiInstance.submitUDFString(split[0], split[1], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return null; - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON Object - * @apiNote Is replaced by executeSingleArrayJSON(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public JSONObject executeSingleArrayJSON(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeSingleArray(multiArrayUDF, arguments, arrayURI, xPayer); - return new JSONObject(jsonString); - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON Object - */ - public JSONObject executeSingleArrayJSON(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String result = ""; - try { - result = apiInstance.submitUDFString(split[0], split[1], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return new JSONObject(result); - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON array - * @apiNote Is replaced by executeSingleArrayJSONArray(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public JSONArray executeSingleArrayJSONArray(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeSingleArray(multiArrayUDF, arguments, arrayURI, xPayer); - return new JSONArray(jsonString); - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON Object - */ - public JSONArray executeSingleArrayJSONArray(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String result = ""; - try { - result = apiInstance.submitUDFString(split[0], split[1], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return new JSONArray(result); - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results in arrow format - * @apiNote Is replaced by executeSingleArrayArrow(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public Pair, Integer> executeSingleArrayArrow(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - - String[] split = breakdownFullURI(arrayURI); - - try { - byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], multiArrayUDF, xPayer, "none", ""); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results in arrow format - */ - public Pair, Integer> executeSingleArrayArrow(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - - try { - byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], multiArrayUDF, xPayer, "none", ""); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results as a String - */ - public String executeMultiArray(MultiArrayUDF multiArrayUDF, HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - try { - return apiInstance.submitMultiArrayUDFString(this.namespace, multiArrayUDF, "none"); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDFString"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results as a String - */ - public String executeMultiArray(MultiArrayUDF multiArrayUDF){ - try { - return apiInstance.submitMultiArrayUDFString(this.namespace, multiArrayUDF, "none"); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDFString"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results as JSON object - */ - public JSONObject executeMultiArrayJSON(MultiArrayUDF multiArrayUDF, HashMap arguments){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF, arguments); - return new JSONObject(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results as JSON object - */ - public JSONObject executeMultiArrayJSON(MultiArrayUDF multiArrayUDF){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF); - return new JSONObject(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results as JSON Array - */ - public JSONArray executeMultiArrayJSONArray(MultiArrayUDF multiArrayUDF, HashMap arguments){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF, arguments); - return new JSONArray(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results as JSON Array - */ - public JSONArray executeMultiArrayJSONArray(MultiArrayUDF multiArrayUDF){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF); - return new JSONArray(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results in arrow format - */ - public Pair, Integer> executeMultiArrayArrow(MultiArrayUDF multiArrayUDF, HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - - try { - byte[] bytes = apiInstance.submitMultiArrayUDFBytes(this.namespace, multiArrayUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results in arrow format - */ - public Pair, Integer> executeMultiArrayArrow(MultiArrayUDF multiArrayUDF){ - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - - try { - byte[] bytes = apiInstance.submitMultiArrayUDFBytes(this.namespace, multiArrayUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Breaks down a full uri to its components - * @param arrayURI The input full uri - * @return An array of strings - */ - private String[] breakdownFullURI(String arrayURI) { - arrayURI = arrayURI.replaceAll("tiledb://", ""); //remove tiledb prefix - //split uri to get namespace and array name - String[] split = arrayURI.split("/"); - if (split.length != 2) - throw new RuntimeException( - "TileDB URI is in the wrong format. The format should be: tiledb://namespace/array_name"); - return split; - } -} 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 59e35be..f11a2bd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java @@ -22,7 +22,6 @@ 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; @@ -49,13 +48,11 @@ 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; @@ -67,15 +64,6 @@ 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(); @@ -105,8 +93,8 @@ public ApiClient() { initHttpClient(); // Setup authentications (key: authentication name, value: authentication). - authentications.put("BasicAuth", new HttpBasicAuth()); authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); + authentications.put("BasicAuth", new HttpBasicAuth()); authentications.put("OAuth2", new OAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -123,8 +111,8 @@ public ApiClient(OkHttpClient client) { httpClient = client; // Setup authentications (key: authentication name, value: authentication). - authentications.put("BasicAuth", new HttpBasicAuth()); authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); + authentications.put("BasicAuth", new HttpBasicAuth()); authentications.put("OAuth2", new OAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -191,8 +179,8 @@ public ApiClient(String basePath, String clientId, String clientSecret, MapsingletonList(retryingOAuth)); // Setup authentications (key: authentication name, value: authentication). - authentications.put("BasicAuth", new HttpBasicAuth()); authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); + authentications.put("BasicAuth", new HttpBasicAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -240,34 +228,6 @@ public String getBasePath() { */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; - this.serverIndex = null; - return this; - } - - public List getServers() { - return servers; - } - - public ApiClient setServers(List servers) { - this.servers = servers; - return this; - } - - public Integer getServerIndex() { - return serverIndex; - } - - public ApiClient setServerIndex(Integer serverIndex) { - this.serverIndex = serverIndex; - return this; - } - - public Map getServerVariables() { - return serverVariables; - } - - public ApiClient setServerVariables(Map serverVariables) { - this.serverVariables = serverVariables; return this; } @@ -392,10 +352,10 @@ public DateFormat getDateFormat() { *

Setter for the field dateFormat.

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

Set SqlDateFormat.

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

Set OffsetDateTimeFormat.

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

Set LocalDateFormat.

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

Set LenientOnJson.

* * @param lenientOnJson a boolean - * @return a {@link io.tiledb.cloud.rest_api.ApiClient} object + * @return a {@link ApiClient} object */ public ApiClient setLenientOnJson(boolean lenientOnJson) { - JSON.setLenientOnJson(lenientOnJson); + this.json.setLenientOnJson(lenientOnJson); return this; } @@ -538,31 +498,6 @@ public void setAccessToken(String accessToken) { throw new RuntimeException("No OAuth2 authentication configured!"); } - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { - throw new RuntimeException("No AWS4 authentication configured!"); - } - - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param sessionToken Session Token - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) { - throw new RuntimeException("No AWS4 authentication configured!"); - } - /** * Set the User-Agent header's value (by adding to the default header map). * @@ -745,7 +680,7 @@ public String parameterToString(Object param) { return ""; } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { //Serialize to json string and remove the " enclosing characters - String jsonStr = JSON.serialize(param); + String jsonStr = json.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); @@ -753,7 +688,7 @@ public String parameterToString(Object param) { if (b.length() > 0) { b.append(","); } - b.append(o); + b.append(String.valueOf(o)); } return b.toString(); } else { @@ -963,7 +898,7 @@ public String escapeString(String str) { * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws io.tiledb.cloud.rest_api.ApiException If fail to deserialize response body, i.e. cannot read response body + * @throws ApiException If fail to deserialize response body, i.e. cannot read response body * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") @@ -1004,7 +939,7 @@ public T deserialize(Response response, Type returnType) throws ApiException contentType = "application/json"; } if (isJsonMime(contentType)) { - return JSON.deserialize(respBody, returnType); + return json.deserialize(respBody, returnType); } else if (returnType.equals(String.class)) { // Expecting string, return the raw response body. return (T) respBody; @@ -1024,7 +959,7 @@ public T deserialize(Response response, Type returnType) throws ApiException * @param obj The Java object * @param contentType The request Content-Type * @return The serialized request body - * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the given object + * @throws ApiException If fail to serialize the given object */ public RequestBody serialize(Object obj, String contentType) throws ApiException { if (obj instanceof byte[]) { @@ -1038,13 +973,11 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException } else if (isJsonMime(contentType)) { String content; if (obj != null) { - content = JSON.serialize(obj); + content = json.serialize(obj); } else { content = null; } return RequestBody.create(content, MediaType.parse(contentType)); - } else if (obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); } else { throw new ApiException("Content type \"" + contentType + "\" is not supported"); } @@ -1054,7 +987,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException * Download file from the given response. * * @param response An instance of the Response object - * @throws io.tiledb.cloud.rest_api.ApiException If fail to read file content from response and write to disk + * @throws ApiException If fail to read file content from response and write to disk * @return Downloaded file */ public File downloadFileFromResponse(Response response) throws ApiException { @@ -1118,7 +1051,7 @@ public File prepareDownloadFile(Response response) throws IOException { * @param Type * @param call An instance of the Call object * @return ApiResponse<T> - * @throws io.tiledb.cloud.rest_api.ApiException If fail to execute the call + * @throws ApiException If fail to execute the call */ public ApiResponse execute(Call call) throws ApiException { return execute(call, null); @@ -1133,7 +1066,7 @@ public ApiResponse execute(Call call) throws ApiException { * @return ApiResponse object containing response status, headers and * data, which is a Java object deserialized from response body and would be null * when returnType is null. - * @throws io.tiledb.cloud.rest_api.ApiException If fail to execute the call + * @throws ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) throws ApiException { try { @@ -1197,7 +1130,7 @@ public void onResponse(Call call, Response response) throws IOException { * @param response Response * @param returnType Return type * @return Type - * @throws io.tiledb.cloud.rest_api.ApiException If the response has an unsuccessful status code or + * @throws ApiException If the response has an unsuccessful status code or * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -1244,7 +1177,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP call - * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @throws ApiException If fail to serialize the request body object */ public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); @@ -1267,7 +1200,7 @@ public Call buildCall(String baseUrl, String path, String method, List que * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP request - * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @throws ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams @@ -1279,15 +1212,12 @@ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List if (baseUrl != null) { url.append(baseUrl).append(path); } else { - String baseURL; - if (serverIndex != null) { - if (serverIndex < 0 || serverIndex >= servers.size()) { - throw new ArrayIndexOutOfBoundsException(String.format( - "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() - )); - } - baseURL = servers.get(serverIndex).URL(serverVariables); - } else { - baseURL = basePath; - } - url.append(baseURL).append(path); + url.append(basePath).append(path); } if (queryParams != null && !queryParams.isEmpty()) { @@ -1433,7 +1352,7 @@ public void processCookieParams(Map cookieParams, Request.Builde * @param payload HTTP request body * @param method HTTP method * @param uri URI - * @throws io.tiledb.cloud.rest_api.ApiException If fails to update the parameters + * @throws ApiException If fails to update the parameters */ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { @@ -1478,12 +1397,11 @@ public RequestBody buildRequestBodyMultipart(Map formParams) { for (Object item: list) { if (item instanceof File) { addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); } } } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); + mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null)); } } return mpBuilder.build(); @@ -1517,31 +1435,6 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); } - /** - * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param obj The complex object to add to the Header - */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { - RequestBody requestBody; - if (obj instanceof String) { - requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); - } else { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - requestBody = RequestBody.create(content, MediaType.parse("application/json")); - } - - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); - mpBuilder.addPart(partHeaders, requestBody); - } - /** * Get network interceptor to add it to the httpClient to track download progress for * async requests. @@ -1609,7 +1502,7 @@ public boolean verify(String hostname, SSLSession session) { KeyStore caKeyStore = newEmptyKeyStore(password); int index = 0; for (Certificate certificate : certificates) { - String certificateAlias = "ca" + (index++); + String certificateAlias = "ca" + Integer.toString(index++); caKeyStore.setCertificateEntry(certificateAlias, certificate); } trustManagerFactory.init(caKeyStore); @@ -1642,9 +1535,9 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti /** * Convert the HTTP request body to a string. * - * @param requestBody The HTTP request object + * @param request The HTTP request object * @return The string representation of the HTTP request body - * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object into a string + * @throws ApiException If fail to serialize the request body object into a string */ private String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java index 808e648..138440f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java @@ -16,19 +16,16 @@ import java.util.Map; import java.util.List; - /** *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ApiException extends Exception { - private static final long serialVersionUID = 1L; - private int code = 0; private Map> responseHeaders = null; private String responseBody = null; - + /** *

Constructor for ApiException.

*/ @@ -100,7 +97,7 @@ public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { - this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); + this((String) null, (Throwable) null, code, responseHeaders, responseBody); } /** diff --git a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java index c2eae8b..5cb4b3f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java @@ -13,10 +13,8 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Configuration { - public static final String VERSION = "2.17.51"; - private static ApiClient defaultApiClient = new ApiClient(); /** diff --git a/src/main/java/io/tiledb/cloud/rest_api/JSON.java b/src/main/java/io/tiledb/cloud/rest_api/JSON.java index 4f699ea..192327a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/JSON.java +++ b/src/main/java/io/tiledb/cloud/rest_api/JSON.java @@ -22,7 +22,6 @@ import com.google.gson.stream.JsonWriter; import com.google.gson.JsonElement; import io.gsonfire.GsonFireBuilder; -import io.gsonfire.TypeSelector; import okio.ByteString; @@ -86,7 +85,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri return clazz; } - static { + { GsonBuilder gsonBuilder = createGson(); gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); @@ -121,6 +120,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AttributeBufferHeader.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AttributeBufferSize.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Backoff.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Dimension.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DimensionCoordinate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DimensionTileExtent.CustomTypeAdapterFactory()); diff --git a/src/main/java/io/tiledb/cloud/rest_api/Pair.java b/src/main/java/io/tiledb/cloud/rest_api/Pair.java index 5fbb234..bdd1963 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Pair.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Pair.java @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java b/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java index d39750a..199f405 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java @@ -5,7 +5,6 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ServerConfiguration { public String URL; public String description; @@ -43,7 +42,7 @@ public String URL(Map variables) { throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); } } - url = url.replace("{" + name + "}", value); + url = url.replaceAll("\\{" + name + "\\}", value); } return url; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java b/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java index c9db9f5..3a082af 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java @@ -5,7 +5,6 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java index c207942..fc39954 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +++ b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java index 0f6dcfb..c324c2c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -40,7 +38,7 @@ import io.tiledb.cloud.rest_api.model.ArraySharing; import io.tiledb.cloud.rest_api.model.ArrayVacuumRequest; import java.math.BigDecimal; -import io.tiledb.cloud.rest_api.model.Error; + import io.tiledb.cloud.rest_api.model.FragmentInfo; import io.tiledb.cloud.rest_api.model.FragmentInfoRequest; import io.tiledb.cloud.rest_api.model.LastAccessedArray; @@ -96,7 +94,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for arrayActivityLog - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -114,7 +113,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arrayActivityLogCall(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,9 +130,10 @@ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/activity" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/activity" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -170,36 +170,46 @@ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling arrayActivityLog(Async)"); - } - + private okhttp3.Call arrayActivityLogValidateBeforeCall(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling arrayActivityLog(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling arrayActivityLog(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling arrayActivityLog(Async)"); } + - return arrayActivityLogCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + okhttp3.Call localVarCall = arrayActivityLogCall(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + return localVarCall; } /** * * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -216,15 +226,16 @@ private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String 0 error response - */ - public List arrayActivityLog(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { - ApiResponse> localVarResp = arrayActivityLogWithHttpInfo(namespace, array, start, end, eventTypes, taskId, hasTaskId); + public List arrayActivityLog(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { + ApiResponse> localVarResp = arrayActivityLogWithHttpInfo(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId); return localVarResp.getData(); } /** * * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -241,8 +252,8 @@ public List arrayActivityLog(String namespace, String array, I 0 error response - */ - public ApiResponse> arrayActivityLogWithHttpInfo(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { - okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, null); + public ApiResponse> arrayActivityLogWithHttpInfo(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { + okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -250,7 +261,8 @@ public ApiResponse> arrayActivityLogWithHttpInfo(String n /** * (asynchronously) * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -268,9 +280,9 @@ public ApiResponse> arrayActivityLogWithHttpInfo(String n 0 error response - */ - public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call arrayActivityLogAsync(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -382,19 +394,23 @@ public okhttp3.Call arraysBrowserOwnedGetCall(Integer page, Integer perPage, Str } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call arraysBrowserOwnedGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - return arraysBrowserOwnedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + + + okhttp3.Call localVarCall = arraysBrowserOwnedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + return localVarCall; } @@ -554,19 +570,23 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetCall(List fileType, List } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call arraysBrowserOwnedSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { - return arraysBrowserOwnedSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); + + + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); + return localVarCall; } @@ -744,19 +764,23 @@ public okhttp3.Call arraysBrowserPublicGetCall(Integer page, Integer perPage, St } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call arraysBrowserPublicGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - return arraysBrowserPublicGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + + + okhttp3.Call localVarCall = arraysBrowserPublicGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + return localVarCall; } @@ -916,19 +940,23 @@ public okhttp3.Call arraysBrowserPublicSidebarGetCall(List fileType, Lis } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call arraysBrowserPublicSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { - return arraysBrowserPublicSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); + + + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); + return localVarCall; } @@ -1111,19 +1139,23 @@ public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, St } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - return arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata, _callback); + + + okhttp3.Call localVarCall = arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata, _callback); + return localVarCall; } @@ -1291,19 +1323,23 @@ public okhttp3.Call arraysBrowserSharedSidebarGetCall(List fileType, Lis } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call arraysBrowserSharedSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { - return arraysBrowserSharedSidebarGetCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); + + + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); + return localVarCall; } @@ -1378,8 +1414,9 @@ public okhttp3.Call arraysBrowserSharedSidebarGetAsync(List fileType, Li return localVarCall; } /** - * Build call for arraysNamespaceArrayEndTimestampsGet - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for arraysWorkspaceTeamspaceArrayEndTimestampsGet + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1394,7 +1431,7 @@ public okhttp3.Call arraysBrowserSharedSidebarGetAsync(List fileType, Li 0 error response - */ - public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysWorkspaceTeamspaceArrayEndTimestampsGetCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1411,9 +1448,10 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/end_timestamps" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/end_timestamps" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1438,36 +1476,46 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, S } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling arraysNamespaceArrayEndTimestampsGet(Async)"); - } - + private okhttp3.Call arraysWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling arraysWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling arraysWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling arraysNamespaceArrayEndTimestampsGet(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling arraysWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } + - return arraysNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = arraysWorkspaceTeamspaceArrayEndTimestampsGetCall(workspace, teamspace, array, page, perPage, _callback); + return localVarCall; } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1481,15 +1529,16 @@ private okhttp3.Call arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(Stri 0 error response - */ - public ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(String namespace, String array, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = arraysNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + public ArrayEndTimestampData arraysWorkspaceTeamspaceArrayEndTimestampsGet(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = arraysWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(workspace, teamspace, array, page, perPage); return localVarResp.getData(); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1503,8 +1552,8 @@ public ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(String namespa 0 error response - */ - public ApiResponse arraysNamespaceArrayEndTimestampsGetWithHttpInfo(String namespace, String array, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + public ApiResponse arraysWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = arraysWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1512,7 +1561,8 @@ public ApiResponse arraysNamespaceArrayEndTimestampsGetWi /** * (asynchronously) * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1527,16 +1577,17 @@ public ApiResponse arraysNamespaceArrayEndTimestampsGetWi 0 error response - */ - public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysWorkspaceTeamspaceArrayEndTimestampsGetAsync(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = arraysWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for consolidateArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @param _callback Callback for upload/download progress @@ -1550,7 +1601,7 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync(String namespace, 0 error response - */ - public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call consolidateArrayCall(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1567,9 +1618,10 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayCo Object localVarPostBody = consolidateRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/consolidate" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/consolidate" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1593,35 +1645,44 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayCo localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling consolidateArray(Async)"); - } - + private okhttp3.Call consolidateArrayValidateBeforeCall(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling consolidateArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling consolidateArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling consolidateArray(Async)"); } - + // verify the required parameter 'consolidateRequest' is set if (consolidateRequest == null) { throw new ApiException("Missing the required parameter 'consolidateRequest' when calling consolidateArray(Async)"); } + - return consolidateArrayCall(namespace, array, consolidateRequest, _callback); + okhttp3.Call localVarCall = consolidateArrayCall(workspace, teamspace, array, consolidateRequest, _callback); + return localVarCall; } /** * * consolidate an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1633,14 +1694,15 @@ private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String 0 error response - */ - public void consolidateArray(String namespace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { - consolidateArrayWithHttpInfo(namespace, array, consolidateRequest); + public void consolidateArray(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { + consolidateArrayWithHttpInfo(workspace, teamspace, array, consolidateRequest); } /** * * consolidate an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @return ApiResponse<Void> @@ -1653,15 +1715,16 @@ public void consolidateArray(String namespace, String array, ArrayConsolidationR 0 error response - */ - public ApiResponse consolidateArrayWithHttpInfo(String namespace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { - okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, null); + public ApiResponse consolidateArrayWithHttpInfo(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(workspace, teamspace, array, consolidateRequest, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * consolidate an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @param _callback The callback to be executed when the API call finishes @@ -1675,15 +1738,16 @@ public ApiResponse consolidateArrayWithHttpInfo(String namespace, String a 0 error response - */ - public okhttp3.Call consolidateArrayAsync(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call consolidateArrayAsync(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, _callback); + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(workspace, teamspace, array, consolidateRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1699,7 +1763,7 @@ public okhttp3.Call consolidateArrayAsync(String namespace, String array, ArrayC 0 error response - */ - public okhttp3.Call createArrayCall(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createArrayCall(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1716,9 +1780,10 @@ public okhttp3.Call createArrayCall(String namespace, String array, String conte Object localVarPostBody = arraySchema; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1750,40 +1815,49 @@ public okhttp3.Call createArrayCall(String namespace, String array, String conte localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createArrayValidateBeforeCall(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createArray(Async)"); - } - + private okhttp3.Call createArrayValidateBeforeCall(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling createArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling createArray(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling createArray(Async)"); } - + // verify the required parameter 'arraySchema' is set if (arraySchema == null) { throw new ApiException("Missing the required parameter 'arraySchema' when calling createArray(Async)"); } + - return createArrayCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + okhttp3.Call localVarCall = createArrayCall(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + return localVarCall; } /** * * create a array schema at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1797,14 +1871,15 @@ private okhttp3.Call createArrayValidateBeforeCall(String namespace, String arra 0 error response - */ - public void createArray(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - createArrayWithHttpInfo(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + public void createArray(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + createArrayWithHttpInfo(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); } /** * * create a array schema at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1819,15 +1894,16 @@ public void createArray(String namespace, String array, String contentType, Arra 0 error response - */ - public ApiResponse createArrayWithHttpInfo(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - okhttp3.Call localVarCall = createArrayValidateBeforeCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); + public ApiResponse createArrayWithHttpInfo(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + okhttp3.Call localVarCall = createArrayValidateBeforeCall(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * create a array schema at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1843,15 +1919,16 @@ public ApiResponse createArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call createArrayAsync(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createArrayAsync(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createArrayValidateBeforeCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + okhttp3.Call localVarCall = createArrayValidateBeforeCall(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback Callback for upload/download progress @@ -1865,7 +1942,7 @@ public okhttp3.Call createArrayAsync(String namespace, String array, String cont 0 error response - */ - public okhttp3.Call deleteArrayCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1882,9 +1959,10 @@ public okhttp3.Call deleteArrayCall(String namespace, String array, String conte Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1905,41 +1983,51 @@ public okhttp3.Call deleteArrayCall(String namespace, String array, String conte } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteArray(Async)"); - } - + private okhttp3.Call deleteArrayValidateBeforeCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling deleteArray(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling deleteArray(Async)"); } + - return deleteArrayCall(namespace, array, contentType, _callback); + okhttp3.Call localVarCall = deleteArrayCall(workspace, teamspace, array, contentType, _callback); + return localVarCall; } /** * * delete a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1951,14 +2039,15 @@ private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String arra 0 error response - */ - public void deleteArray(String namespace, String array, String contentType) throws ApiException { - deleteArrayWithHttpInfo(namespace, array, contentType); + public void deleteArray(String workspace, String teamspace, String array, String contentType) throws ApiException { + deleteArrayWithHttpInfo(workspace, teamspace, array, contentType); } /** * * delete a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @return ApiResponse<Void> @@ -1971,15 +2060,16 @@ public void deleteArray(String namespace, String array, String contentType) thro 0 error response - */ - public ApiResponse deleteArrayWithHttpInfo(String namespace, String array, String contentType) throws ApiException { - okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(namespace, array, contentType, null); + public ApiResponse deleteArrayWithHttpInfo(String workspace, String teamspace, String array, String contentType) throws ApiException { + okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(workspace, teamspace, array, contentType, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback The callback to be executed when the API call finishes @@ -1993,15 +2083,16 @@ public ApiResponse deleteArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call deleteArrayAsync(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayAsync(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(namespace, array, contentType, _callback); + okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(workspace, teamspace, array, contentType, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deregisterArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2014,7 +2105,7 @@ public okhttp3.Call deleteArrayAsync(String namespace, String array, String cont 0 error response - */ - public okhttp3.Call deregisterArrayCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deregisterArrayCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2031,9 +2122,10 @@ public okhttp3.Call deregisterArrayCall(String namespace, String array, final Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/deregister" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/deregister" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2050,36 +2142,46 @@ public okhttp3.Call deregisterArrayCall(String namespace, String array, final Ap } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deregisterArray(Async)"); - } - + private okhttp3.Call deregisterArrayValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deregisterArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deregisterArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling deregisterArray(Async)"); } + - return deregisterArrayCall(namespace, array, _callback); + okhttp3.Call localVarCall = deregisterArrayCall(workspace, teamspace, array, _callback); + return localVarCall; } /** * * deregister a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2090,14 +2192,15 @@ private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String 0 error response - */ - public void deregisterArray(String namespace, String array) throws ApiException { - deregisterArrayWithHttpInfo(namespace, array); + public void deregisterArray(String workspace, String teamspace, String array) throws ApiException { + deregisterArrayWithHttpInfo(workspace, teamspace, array); } /** * * deregister a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2109,15 +2212,16 @@ public void deregisterArray(String namespace, String array) throws ApiException 0 error response - */ - public ApiResponse deregisterArrayWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(namespace, array, null); + public ApiResponse deregisterArrayWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(workspace, teamspace, array, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * deregister a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2130,15 +2234,16 @@ public ApiResponse deregisterArrayWithHttpInfo(String namespace, String ar 0 error response - */ - public okhttp3.Call deregisterArrayAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deregisterArrayAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(workspace, teamspace, array, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for fragmentInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2152,7 +2257,7 @@ public okhttp3.Call deregisterArrayAsync(String namespace, String array, final A 0 error response - */ - public okhttp3.Call fragmentInfoCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fragmentInfoCall(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2169,9 +2274,10 @@ public okhttp3.Call fragmentInfoCall(String namespace, String array, String cont Object localVarPostBody = fragmentInfoRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/fragment_info" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/fragment_info" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2199,40 +2305,49 @@ public okhttp3.Call fragmentInfoCall(String namespace, String array, String cont localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling fragmentInfo(Async)"); - } - + private okhttp3.Call fragmentInfoValidateBeforeCall(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling fragmentInfo(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling fragmentInfo(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling fragmentInfo(Async)"); } - + // verify the required parameter 'fragmentInfoRequest' is set if (fragmentInfoRequest == null) { throw new ApiException("Missing the required parameter 'fragmentInfoRequest' when calling fragmentInfo(Async)"); } + - return fragmentInfoCall(namespace, array, contentType, fragmentInfoRequest, _callback); + okhttp3.Call localVarCall = fragmentInfoCall(workspace, teamspace, array, contentType, fragmentInfoRequest, _callback); + return localVarCall; } /** * * fetch an array's fragment info - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2245,15 +2360,16 @@ private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String arr 0 error response - */ - public FragmentInfo fragmentInfo(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { - ApiResponse localVarResp = fragmentInfoWithHttpInfo(namespace, array, contentType, fragmentInfoRequest); + public FragmentInfo fragmentInfo(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { + ApiResponse localVarResp = fragmentInfoWithHttpInfo(workspace, teamspace, array, contentType, fragmentInfoRequest); return localVarResp.getData(); } /** * * fetch an array's fragment info - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2266,8 +2382,8 @@ public FragmentInfo fragmentInfo(String namespace, String array, String contentT 0 error response - */ - public ApiResponse fragmentInfoWithHttpInfo(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { - okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, null); + public ApiResponse fragmentInfoWithHttpInfo(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(workspace, teamspace, array, contentType, fragmentInfoRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2275,7 +2391,8 @@ public ApiResponse fragmentInfoWithHttpInfo(String namespace, Stri /** * (asynchronously) * fetch an array's fragment info - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2289,16 +2406,17 @@ public ApiResponse fragmentInfoWithHttpInfo(String namespace, Stri 0 error response - */ - public okhttp3.Call fragmentInfoAsync(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fragmentInfoAsync(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, _callback); + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(workspace, teamspace, array, contentType, fragmentInfoRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getActivityLogById - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @param _callback Callback for upload/download progress @@ -2312,7 +2430,7 @@ public okhttp3.Call fragmentInfoAsync(String namespace, String array, String con 0 error response - */ - public okhttp3.Call getActivityLogByIdCall(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getActivityLogByIdCall(String workspace, String teamspace, String array, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2329,10 +2447,11 @@ public okhttp3.Call getActivityLogByIdCall(String namespace, String array, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/activity/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/activity/{id}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2349,41 +2468,51 @@ public okhttp3.Call getActivityLogByIdCall(String namespace, String array, Strin } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getActivityLogById(Async)"); - } - + private okhttp3.Call getActivityLogByIdValidateBeforeCall(String workspace, String teamspace, String array, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getActivityLogById(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getActivityLogById(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getActivityLogById(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getActivityLogById(Async)"); } + - return getActivityLogByIdCall(namespace, array, id, _callback); + okhttp3.Call localVarCall = getActivityLogByIdCall(workspace, teamspace, array, id, _callback); + return localVarCall; } /** * * get activity log by ID - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @return ArrayActivityLog @@ -2396,15 +2525,16 @@ private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, Stri 0 error response - */ - public ArrayActivityLog getActivityLogById(String namespace, String array, String id) throws ApiException { - ApiResponse localVarResp = getActivityLogByIdWithHttpInfo(namespace, array, id); + public ArrayActivityLog getActivityLogById(String workspace, String teamspace, String array, String id) throws ApiException { + ApiResponse localVarResp = getActivityLogByIdWithHttpInfo(workspace, teamspace, array, id); return localVarResp.getData(); } /** * * get activity log by ID - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @return ApiResponse<ArrayActivityLog> @@ -2417,8 +2547,8 @@ public ArrayActivityLog getActivityLogById(String namespace, String array, Strin 0 error response - */ - public ApiResponse getActivityLogByIdWithHttpInfo(String namespace, String array, String id) throws ApiException { - okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(namespace, array, id, null); + public ApiResponse getActivityLogByIdWithHttpInfo(String workspace, String teamspace, String array, String id) throws ApiException { + okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(workspace, teamspace, array, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2426,7 +2556,8 @@ public ApiResponse getActivityLogByIdWithHttpInfo(String names /** * (asynchronously) * get activity log by ID - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @param _callback The callback to be executed when the API call finishes @@ -2440,9 +2571,9 @@ public ApiResponse getActivityLogByIdWithHttpInfo(String names 0 error response - */ - public okhttp3.Call getActivityLogByIdAsync(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getActivityLogByIdAsync(String workspace, String teamspace, String array, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(namespace, array, id, _callback); + okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(workspace, teamspace, array, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2499,19 +2630,23 @@ public okhttp3.Call getAllArrayMetadataCall(String publicShare, final ApiCallbac } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllArrayMetadataValidateBeforeCall(String publicShare, final ApiCallback _callback) throws ApiException { - return getAllArrayMetadataCall(publicShare, _callback); + + + okhttp3.Call localVarCall = getAllArrayMetadataCall(publicShare, _callback); + return localVarCall; } @@ -2578,7 +2713,8 @@ public okhttp3.Call getAllArrayMetadataAsync(String publicShare, final ApiCallba } /** * Build call for getArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback Callback for upload/download progress @@ -2592,7 +2728,7 @@ public okhttp3.Call getAllArrayMetadataAsync(String publicShare, final ApiCallba 0 error response - */ - public okhttp3.Call getArrayCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2609,9 +2745,10 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2624,8 +2761,7 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT } final String[] localVarAccepts = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2633,41 +2769,51 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArray(Async)"); - } - + private okhttp3.Call getArrayValidateBeforeCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArray(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling getArray(Async)"); } + - return getArrayCall(namespace, array, contentType, _callback); + okhttp3.Call localVarCall = getArrayCall(workspace, teamspace, array, contentType, _callback); + return localVarCall; } /** * * get an ArraySchema using a url encoded uri - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @return ArraySchema @@ -2680,15 +2826,16 @@ private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, 0 error response - */ - public ArraySchema getArray(String namespace, String array, String contentType) throws ApiException { - ApiResponse localVarResp = getArrayWithHttpInfo(namespace, array, contentType); + public ArraySchema getArray(String workspace, String teamspace, String array, String contentType) throws ApiException { + ApiResponse localVarResp = getArrayWithHttpInfo(workspace, teamspace, array, contentType); return localVarResp.getData(); } /** * * get an ArraySchema using a url encoded uri - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @return ApiResponse<ArraySchema> @@ -2701,8 +2848,8 @@ public ArraySchema getArray(String namespace, String array, String contentType) 0 error response - */ - public ApiResponse getArrayWithHttpInfo(String namespace, String array, String contentType) throws ApiException { - okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, null); + public ApiResponse getArrayWithHttpInfo(String workspace, String teamspace, String array, String contentType) throws ApiException { + okhttp3.Call localVarCall = getArrayValidateBeforeCall(workspace, teamspace, array, contentType, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2710,7 +2857,8 @@ public ApiResponse getArrayWithHttpInfo(String namespace, String ar /** * (asynchronously) * get an ArraySchema using a url encoded uri - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback The callback to be executed when the API call finishes @@ -2724,16 +2872,17 @@ public ApiResponse getArrayWithHttpInfo(String namespace, String ar 0 error response - */ - public okhttp3.Call getArrayAsync(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayAsync(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, _callback); + okhttp3.Call localVarCall = getArrayValidateBeforeCall(workspace, teamspace, array, contentType, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMaxBufferSizes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2749,7 +2898,7 @@ public okhttp3.Call getArrayAsync(String namespace, String array, String content 0 error response - */ - public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMaxBufferSizesCall(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2766,9 +2915,10 @@ public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/max_buffer_sizes" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/max_buffer_sizes" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2797,46 +2947,56 @@ public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, S } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMaxBufferSizes(Async)"); - } - + private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMaxBufferSizes(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMaxBufferSizes(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArrayMaxBufferSizes(Async)"); } - + // verify the required parameter 'subarray' is set if (subarray == null) { throw new ApiException("Missing the required parameter 'subarray' when calling getArrayMaxBufferSizes(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling getArrayMaxBufferSizes(Async)"); } + - return getArrayMaxBufferSizesCall(namespace, array, subarray, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getArrayMaxBufferSizesCall(workspace, teamspace, array, subarray, contentType, xPayer, _callback); + return localVarCall; } /** * * get the max buffer sizes of an array for a subarray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2851,15 +3011,16 @@ private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, 0 error response - */ - public MaxBufferSizes getArrayMaxBufferSizes(String namespace, String array, String subarray, String contentType, String xPayer) throws ApiException { - ApiResponse localVarResp = getArrayMaxBufferSizesWithHttpInfo(namespace, array, subarray, contentType, xPayer); + public MaxBufferSizes getArrayMaxBufferSizes(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getArrayMaxBufferSizesWithHttpInfo(workspace, teamspace, array, subarray, contentType, xPayer); return localVarResp.getData(); } /** * * get the max buffer sizes of an array for a subarray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2874,8 +3035,8 @@ public MaxBufferSizes getArrayMaxBufferSizes(String namespace, String array, Str 0 error response - */ - public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String namespace, String array, String subarray, String contentType, String xPayer) throws ApiException { - okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(namespace, array, subarray, contentType, xPayer, null); + public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(workspace, teamspace, array, subarray, contentType, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2883,7 +3044,8 @@ public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String nam /** * (asynchronously) * get the max buffer sizes of an array for a subarray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2899,16 +3061,17 @@ public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String nam 0 error response - */ - public okhttp3.Call getArrayMaxBufferSizesAsync(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMaxBufferSizesAsync(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(namespace, array, subarray, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(workspace, teamspace, array, subarray, contentType, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMetaDataJson - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) @@ -2923,7 +3086,7 @@ public okhttp3.Call getArrayMaxBufferSizesAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetaDataJsonCall(String workspace, String teamspace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2940,9 +3103,10 @@ public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Int Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/metadata_json" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/metadata_json" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2967,40 +3131,50 @@ public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Int } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetaDataJson(Async)"); - } - + private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String workspace, String teamspace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMetaDataJson(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMetaDataJson(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArrayMetaDataJson(Async)"); } + - return getArrayMetaDataJsonCall(namespace, array, length, endTimestamp, _callback); + okhttp3.Call localVarCall = getArrayMetaDataJsonCall(workspace, teamspace, array, length, endTimestamp, _callback); + return localVarCall; } /** * * get metadata from the array in JSON format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) - * @return Map<String, Object> + * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3010,19 +3184,20 @@ private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, St
0 error response -
*/ - public Map getArrayMetaDataJson(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { - ApiResponse> localVarResp = getArrayMetaDataJsonWithHttpInfo(namespace, array, length, endTimestamp); + public Object getArrayMetaDataJson(String workspace, String teamspace, String array, Integer length, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = getArrayMetaDataJsonWithHttpInfo(workspace, teamspace, array, length, endTimestamp); return localVarResp.getData(); } /** * * get metadata from the array in JSON format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) - * @return ApiResponse<Map<String, Object>> + * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3032,16 +3207,17 @@ public Map getArrayMetaDataJson(String namespace, String array,
0 error response -
*/ - public ApiResponse> getArrayMetaDataJsonWithHttpInfo(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(namespace, array, length, endTimestamp, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse getArrayMetaDataJsonWithHttpInfo(String workspace, String teamspace, String array, Integer length, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(workspace, teamspace, array, length, endTimestamp, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get metadata from the array in JSON format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) @@ -3056,16 +3232,17 @@ public ApiResponse> getArrayMetaDataJsonWithHttpInfo(String 0 error response - */ - public okhttp3.Call getArrayMetaDataJsonAsync(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArrayMetaDataJsonAsync(String workspace, String teamspace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(namespace, array, length, endTimestamp, _callback); - Type localVarReturnType = new TypeToken>(){}.getType(); + okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(workspace, teamspace, array, length, endTimestamp, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMetadata - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3078,7 +3255,7 @@ public okhttp3.Call getArrayMetaDataJsonAsync(String namespace, String array, In 0 error response - */ - public okhttp3.Call getArrayMetadataCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3095,9 +3272,10 @@ public okhttp3.Call getArrayMetadataCall(String namespace, String array, final A Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/metadata" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3114,36 +3292,46 @@ public okhttp3.Call getArrayMetadataCall(String namespace, String array, final A } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetadata(Async)"); - } - + private okhttp3.Call getArrayMetadataValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMetadata(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMetadata(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArrayMetadata(Async)"); } + - return getArrayMetadataCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayMetadataCall(workspace, teamspace, array, _callback); + return localVarCall; } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ArrayInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3155,15 +3343,16 @@ private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String 0 error response - */ - public ArrayInfo getArrayMetadata(String namespace, String array) throws ApiException { - ApiResponse localVarResp = getArrayMetadataWithHttpInfo(namespace, array); + public ArrayInfo getArrayMetadata(String workspace, String teamspace, String array) throws ApiException { + ApiResponse localVarResp = getArrayMetadataWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<ArrayInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3175,8 +3364,8 @@ public ArrayInfo getArrayMetadata(String namespace, String array) throws ApiExce 0 error response - */ - public ApiResponse getArrayMetadataWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(namespace, array, null); + public ApiResponse getArrayMetadataWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3184,7 +3373,8 @@ public ApiResponse getArrayMetadataWithHttpInfo(String namespace, Str /** * (asynchronously) * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3197,16 +3387,17 @@ public ApiResponse getArrayMetadataWithHttpInfo(String namespace, Str 0 error response - */ - public okhttp3.Call getArrayMetadataAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMetadataCapnp - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3219,7 +3410,7 @@ public okhttp3.Call getArrayMetadataAsync(String namespace, String array, final 0 error response - */ - public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataCapnpCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3236,9 +3427,10 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/array_metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/array_metadata" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3247,8 +3439,7 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3256,36 +3447,46 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetadataCapnp(Async)"); - } - + private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMetadataCapnp(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArrayMetadataCapnp(Async)"); } + - return getArrayMetadataCapnpCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayMetadataCapnpCall(workspace, teamspace, array, _callback); + return localVarCall; } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ArrayMetadata * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3297,15 +3498,16 @@ private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, S 0 error response - */ - public ArrayMetadata getArrayMetadataCapnp(String namespace, String array) throws ApiException { - ApiResponse localVarResp = getArrayMetadataCapnpWithHttpInfo(namespace, array); + public ArrayMetadata getArrayMetadataCapnp(String workspace, String teamspace, String array) throws ApiException { + ApiResponse localVarResp = getArrayMetadataCapnpWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<ArrayMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3317,8 +3519,8 @@ public ArrayMetadata getArrayMetadataCapnp(String namespace, String array) throw 0 error response - */ - public ApiResponse getArrayMetadataCapnpWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(namespace, array, null); + public ApiResponse getArrayMetadataCapnpWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3326,7 +3528,8 @@ public ApiResponse getArrayMetadataCapnpWithHttpInfo(String names /** * (asynchronously) * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3339,16 +3542,17 @@ public ApiResponse getArrayMetadataCapnpWithHttpInfo(String names 0 error response - */ - public okhttp3.Call getArrayMetadataCapnpAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataCapnpAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayNonEmptyDomain - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3363,7 +3567,7 @@ public okhttp3.Call getArrayMetadataCapnpAsync(String namespace, String array, f 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3380,9 +3584,10 @@ public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/non_empty_domain" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/non_empty_domain" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3407,41 +3612,51 @@ public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, S } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayNonEmptyDomain(Async)"); - } - + private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayNonEmptyDomain(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayNonEmptyDomain(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArrayNonEmptyDomain(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling getArrayNonEmptyDomain(Async)"); } + - return getArrayNonEmptyDomainCall(namespace, array, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getArrayNonEmptyDomainCall(workspace, teamspace, array, contentType, xPayer, _callback); + return localVarCall; } /** * * get the non empty domain of an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3455,15 +3670,16 @@ private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, 0 error response - */ - public NonEmptyDomain getArrayNonEmptyDomain(String namespace, String array, String contentType, String xPayer) throws ApiException { - ApiResponse localVarResp = getArrayNonEmptyDomainWithHttpInfo(namespace, array, contentType, xPayer); + public NonEmptyDomain getArrayNonEmptyDomain(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getArrayNonEmptyDomainWithHttpInfo(workspace, teamspace, array, contentType, xPayer); return localVarResp.getData(); } /** * * get the non empty domain of an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3477,8 +3693,8 @@ public NonEmptyDomain getArrayNonEmptyDomain(String namespace, String array, Str 0 error response - */ - public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String namespace, String array, String contentType, String xPayer) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(namespace, array, contentType, xPayer, null); + public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3486,7 +3702,8 @@ public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String nam /** * (asynchronously) * get the non empty domain of an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3501,16 +3718,17 @@ public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String nam 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainAsync(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainAsync(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(namespace, array, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayNonEmptyDomainJson - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3523,7 +3741,7 @@ public okhttp3.Call getArrayNonEmptyDomainAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainJsonCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3540,9 +3758,10 @@ public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String arra Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/non_empty_domain_json" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/non_empty_domain_json" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3559,38 +3778,48 @@ public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String arra } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayNonEmptyDomainJson(Async)"); - } - + private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayNonEmptyDomainJson(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayNonEmptyDomainJson(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArrayNonEmptyDomainJson(Async)"); } + - return getArrayNonEmptyDomainJsonCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonCall(workspace, teamspace, array, _callback); + return localVarCall; } /** * * get non-empty domain from the array in json format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) - * @return Map<String, Object> + * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3600,17 +3829,18 @@ private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespa
0 error response -
*/ - public Map getArrayNonEmptyDomainJson(String namespace, String array) throws ApiException { - ApiResponse> localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(namespace, array); + public Object getArrayNonEmptyDomainJson(String workspace, String teamspace, String array) throws ApiException { + ApiResponse localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * get non-empty domain from the array in json format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) - * @return ApiResponse<Map<String, Object>> + * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3620,16 +3850,17 @@ public Map getArrayNonEmptyDomainJson(String namespace, String a
0 error response -
*/ - public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse getArrayNonEmptyDomainJsonWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(workspace, teamspace, array, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get non-empty domain from the array in json format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3642,16 +3873,17 @@ public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(S 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String namespace, String array, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, _callback); - Type localVarReturnType = new TypeToken>(){}.getType(); + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(workspace, teamspace, array, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArraySampleData - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @param _callback Callback for upload/download progress @@ -3665,7 +3897,7 @@ public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String namespace, String arr 0 error response - */ - public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraySampleDataCall(String workspace, String teamspace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3682,9 +3914,10 @@ public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDe Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/sample" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/sample" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3705,36 +3938,46 @@ public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDe } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArraySampleData(Async)"); - } - + private okhttp3.Call getArraySampleDataValidateBeforeCall(String workspace, String teamspace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArraySampleData(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArraySampleData(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArraySampleData(Async)"); } + - return getArraySampleDataCall(namespace, array, samples, _callback); + okhttp3.Call localVarCall = getArraySampleDataCall(workspace, teamspace, array, samples, _callback); + return localVarCall; } /** * * get an sample set of data from the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @return ArraySample @@ -3747,15 +3990,16 @@ private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, Stri 0 error response - */ - public ArraySample getArraySampleData(String namespace, String array, BigDecimal samples) throws ApiException { - ApiResponse localVarResp = getArraySampleDataWithHttpInfo(namespace, array, samples); + public ArraySample getArraySampleData(String workspace, String teamspace, String array, BigDecimal samples) throws ApiException { + ApiResponse localVarResp = getArraySampleDataWithHttpInfo(workspace, teamspace, array, samples); return localVarResp.getData(); } /** * * get an sample set of data from the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @return ApiResponse<ArraySample> @@ -3768,8 +4012,8 @@ public ArraySample getArraySampleData(String namespace, String array, BigDecimal 0 error response - */ - public ApiResponse getArraySampleDataWithHttpInfo(String namespace, String array, BigDecimal samples) throws ApiException { - okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(namespace, array, samples, null); + public ApiResponse getArraySampleDataWithHttpInfo(String workspace, String teamspace, String array, BigDecimal samples) throws ApiException { + okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(workspace, teamspace, array, samples, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3777,7 +4021,8 @@ public ApiResponse getArraySampleDataWithHttpInfo(String namespace, /** * (asynchronously) * get an sample set of data from the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @param _callback The callback to be executed when the API call finishes @@ -3791,16 +4036,17 @@ public ApiResponse getArraySampleDataWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call getArraySampleDataAsync(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraySampleDataAsync(String workspace, String teamspace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(namespace, array, samples, _callback); + okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(workspace, teamspace, array, samples, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArraySharingPolicies - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3814,7 +4060,7 @@ public okhttp3.Call getArraySampleDataAsync(String namespace, String array, BigD 0 error response - */ - public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraySharingPoliciesCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3831,9 +4077,10 @@ public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3850,36 +4097,46 @@ public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArraySharingPolicies(Async)"); - } - + private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArraySharingPolicies(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArraySharingPolicies(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getArraySharingPolicies(Async)"); } + - return getArraySharingPoliciesCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArraySharingPoliciesCall(workspace, teamspace, array, _callback); + return localVarCall; } /** * * Get all sharing details of the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return List<ArraySharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3892,15 +4149,16 @@ private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, 0 error response - */ - public List getArraySharingPolicies(String namespace, String array) throws ApiException { - ApiResponse> localVarResp = getArraySharingPoliciesWithHttpInfo(namespace, array); + public List getArraySharingPolicies(String workspace, String teamspace, String array) throws ApiException { + ApiResponse> localVarResp = getArraySharingPoliciesWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * Get all sharing details of the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<List<ArraySharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3913,8 +4171,8 @@ public List getArraySharingPolicies(String namespace, String array 0 error response - */ - public ApiResponse> getArraySharingPoliciesWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(namespace, array, null); + public ApiResponse> getArraySharingPoliciesWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3922,7 +4180,8 @@ public ApiResponse> getArraySharingPoliciesWithHttpInfo(Strin /** * (asynchronously) * Get all sharing details of the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3936,16 +4195,17 @@ public ApiResponse> getArraySharingPoliciesWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArraySharingPoliciesAsync(String workspace, String teamspace, String array, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArraysInNamespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3958,7 +4218,7 @@ public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraysInNamespaceCall(String workspace, String teamspace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3975,8 +4235,9 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetad Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3997,31 +4258,41 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetad } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArraysInNamespace(Async)"); + private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String workspace, String teamspace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArraysInNamespace(Async)"); } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArraysInNamespace(Async)"); + } + - return getArraysInNamespaceCall(namespace, withMetadata, _callback); + okhttp3.Call localVarCall = getArraysInNamespaceCall(workspace, teamspace, withMetadata, _callback); + return localVarCall; } /** * * get metadata on all arrays in a namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @return List<ArrayInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4033,15 +4304,16 @@ private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, Bo 0 error response - */ - public List getArraysInNamespace(String namespace, Boolean withMetadata) throws ApiException { - ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(namespace, withMetadata); + public List getArraysInNamespace(String workspace, String teamspace, Boolean withMetadata) throws ApiException { + ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(workspace, teamspace, withMetadata); return localVarResp.getData(); } /** * * get metadata on all arrays in a namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @return ApiResponse<List<ArrayInfo>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4053,8 +4325,8 @@ public List getArraysInNamespace(String namespace, Boolean withMetada 0 error response - */ - public ApiResponse> getArraysInNamespaceWithHttpInfo(String namespace, Boolean withMetadata) throws ApiException { - okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, null); + public ApiResponse> getArraysInNamespaceWithHttpInfo(String workspace, String teamspace, Boolean withMetadata) throws ApiException { + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(workspace, teamspace, withMetadata, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4062,7 +4334,8 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name /** * (asynchronously) * get metadata on all arrays in a namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -4075,16 +4348,17 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name 0 error response - */ - public okhttp3.Call getArraysInNamespaceAsync(String namespace, Boolean withMetadata, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArraysInNamespaceAsync(String workspace, String teamspace, Boolean withMetadata, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, _callback); + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(workspace, teamspace, withMetadata, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getFragmentEndTimestamp - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @param _callback Callback for upload/download progress @@ -4098,7 +4372,7 @@ public okhttp3.Call getArraysInNamespaceAsync(String namespace, Boolean withMeta 0 error response - */ - public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFragmentEndTimestampCall(String workspace, String teamspace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4115,9 +4389,10 @@ public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/fragment_end_timestamp" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/fragment_end_timestamp" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4138,36 +4413,46 @@ public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getFragmentEndTimestamp(Async)"); - } - + private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String workspace, String teamspace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getFragmentEndTimestamp(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getFragmentEndTimestamp(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getFragmentEndTimestamp(Async)"); } + - return getFragmentEndTimestampCall(namespace, array, endTimestamp, _callback); + okhttp3.Call localVarCall = getFragmentEndTimestampCall(workspace, teamspace, array, endTimestamp, _callback); + return localVarCall; } /** * * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @return Integer @@ -4180,15 +4465,16 @@ private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, 0 error response - */ - public Integer getFragmentEndTimestamp(String namespace, String array, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = getFragmentEndTimestampWithHttpInfo(namespace, array, endTimestamp); + public Integer getFragmentEndTimestamp(String workspace, String teamspace, String array, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = getFragmentEndTimestampWithHttpInfo(workspace, teamspace, array, endTimestamp); return localVarResp.getData(); } /** * * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @return ApiResponse<Integer> @@ -4201,8 +4487,8 @@ public Integer getFragmentEndTimestamp(String namespace, String array, Integer e 0 error response - */ - public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace, String array, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(namespace, array, endTimestamp, null); + public ApiResponse getFragmentEndTimestampWithHttpInfo(String workspace, String teamspace, String array, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(workspace, teamspace, array, endTimestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4210,7 +4496,8 @@ public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace /** * (asynchronously) * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @param _callback The callback to be executed when the API call finishes @@ -4224,9 +4511,9 @@ public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call getFragmentEndTimestampAsync(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFragmentEndTimestampAsync(String workspace, String teamspace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(namespace, array, endTimestamp, _callback); + okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(workspace, teamspace, array, endTimestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4278,19 +4565,23 @@ public okhttp3.Call getLastAccessedArraysCall(final ApiCallback _callback) throw } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getLastAccessedArraysValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getLastAccessedArraysCall(_callback); + + + okhttp3.Call localVarCall = getLastAccessedArraysCall(_callback); + return localVarCall; } @@ -4354,7 +4645,8 @@ public okhttp3.Call getLastAccessedArraysAsync(final ApiCallback 0 error response - */ - public okhttp3.Call loadArraySchemaCall(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadArraySchemaCall(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4386,9 +4678,10 @@ public okhttp3.Call loadArraySchemaCall(String namespace, String array, LoadArra Object localVarPostBody = loadArraySchemaRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/schema" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/schema" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4412,35 +4705,44 @@ public okhttp3.Call loadArraySchemaCall(String namespace, String array, LoadArra localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call loadArraySchemaValidateBeforeCall(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling loadArraySchema(Async)"); - } - + private okhttp3.Call loadArraySchemaValidateBeforeCall(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling loadArraySchema(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling loadArraySchema(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling loadArraySchema(Async)"); } - + // verify the required parameter 'loadArraySchemaRequest' is set if (loadArraySchemaRequest == null) { throw new ApiException("Missing the required parameter 'loadArraySchemaRequest' when calling loadArraySchema(Async)"); } + - return loadArraySchemaCall(namespace, array, loadArraySchemaRequest, _callback); + okhttp3.Call localVarCall = loadArraySchemaCall(workspace, teamspace, array, loadArraySchemaRequest, _callback); + return localVarCall; } /** * * request to get the array schema - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadArraySchemaRequest Load Array Schema Request (required) * @return LoadArraySchemaResponse @@ -4454,15 +4756,16 @@ private okhttp3.Call loadArraySchemaValidateBeforeCall(String namespace, String 0 error response - */ - public LoadArraySchemaResponse loadArraySchema(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { - ApiResponse localVarResp = loadArraySchemaWithHttpInfo(namespace, array, loadArraySchemaRequest); + public LoadArraySchemaResponse loadArraySchema(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { + ApiResponse localVarResp = loadArraySchemaWithHttpInfo(workspace, teamspace, array, loadArraySchemaRequest); return localVarResp.getData(); } /** * * request to get the array schema - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadArraySchemaRequest Load Array Schema Request (required) * @return ApiResponse<LoadArraySchemaResponse> @@ -4476,8 +4779,8 @@ public LoadArraySchemaResponse loadArraySchema(String namespace, String array, L 0 error response - */ - public ApiResponse loadArraySchemaWithHttpInfo(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { - okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(namespace, array, loadArraySchemaRequest, null); + public ApiResponse loadArraySchemaWithHttpInfo(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { + okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(workspace, teamspace, array, loadArraySchemaRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4485,7 +4788,8 @@ public ApiResponse loadArraySchemaWithHttpInfo(String n /** * (asynchronously) * request to get the array schema - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadArraySchemaRequest Load Array Schema Request (required) * @param _callback The callback to be executed when the API call finishes @@ -4500,16 +4804,17 @@ public ApiResponse loadArraySchemaWithHttpInfo(String n 0 error response - */ - public okhttp3.Call loadArraySchemaAsync(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadArraySchemaAsync(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(namespace, array, loadArraySchemaRequest, _callback); + okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(workspace, teamspace, array, loadArraySchemaRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for loadEnumerations - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @param _callback Callback for upload/download progress @@ -4524,7 +4829,7 @@ public okhttp3.Call loadArraySchemaAsync(String namespace, String array, LoadArr 0 error response - */ - public okhttp3.Call loadEnumerationsCall(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadEnumerationsCall(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4541,9 +4846,10 @@ public okhttp3.Call loadEnumerationsCall(String namespace, String array, LoadEnu Object localVarPostBody = loadEnumerationsRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/enumerations" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/enumerations" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4567,35 +4873,44 @@ public okhttp3.Call loadEnumerationsCall(String namespace, String array, LoadEnu localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call loadEnumerationsValidateBeforeCall(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling loadEnumerations(Async)"); - } - + private okhttp3.Call loadEnumerationsValidateBeforeCall(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling loadEnumerations(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling loadEnumerations(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling loadEnumerations(Async)"); } - + // verify the required parameter 'loadEnumerationsRequest' is set if (loadEnumerationsRequest == null) { throw new ApiException("Missing the required parameter 'loadEnumerationsRequest' when calling loadEnumerations(Async)"); } + - return loadEnumerationsCall(namespace, array, loadEnumerationsRequest, _callback); + okhttp3.Call localVarCall = loadEnumerationsCall(workspace, teamspace, array, loadEnumerationsRequest, _callback); + return localVarCall; } /** * * request to get the enumerations of the arrays' attributes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @return LoadEnumerationsResponse @@ -4609,15 +4924,16 @@ private okhttp3.Call loadEnumerationsValidateBeforeCall(String namespace, String 0 error response - */ - public LoadEnumerationsResponse loadEnumerations(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { - ApiResponse localVarResp = loadEnumerationsWithHttpInfo(namespace, array, loadEnumerationsRequest); + public LoadEnumerationsResponse loadEnumerations(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { + ApiResponse localVarResp = loadEnumerationsWithHttpInfo(workspace, teamspace, array, loadEnumerationsRequest); return localVarResp.getData(); } /** * * request to get the enumerations of the arrays' attributes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @return ApiResponse<LoadEnumerationsResponse> @@ -4631,8 +4947,8 @@ public LoadEnumerationsResponse loadEnumerations(String namespace, String array, 0 error response - */ - public ApiResponse loadEnumerationsWithHttpInfo(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { - okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(namespace, array, loadEnumerationsRequest, null); + public ApiResponse loadEnumerationsWithHttpInfo(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { + okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(workspace, teamspace, array, loadEnumerationsRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4640,7 +4956,8 @@ public ApiResponse loadEnumerationsWithHttpInfo(String /** * (asynchronously) * request to get the enumerations of the arrays' attributes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @param _callback The callback to be executed when the API call finishes @@ -4655,16 +4972,17 @@ public ApiResponse loadEnumerationsWithHttpInfo(String 0 error response - */ - public okhttp3.Call loadEnumerationsAsync(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadEnumerationsAsync(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(namespace, array, loadEnumerationsRequest, _callback); + okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(workspace, teamspace, array, loadEnumerationsRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for registerArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @param _callback Callback for upload/download progress @@ -4678,7 +4996,7 @@ public okhttp3.Call loadEnumerationsAsync(String namespace, String array, LoadEn 0 error response - */ - public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerArrayCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4695,9 +5013,10 @@ public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoU Object localVarPostBody = arrayMetadata; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/register" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/register" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4721,35 +5040,44 @@ public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoU localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerArray(Async)"); - } - + private okhttp3.Call registerArrayValidateBeforeCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling registerArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling registerArray(Async)"); } - + // verify the required parameter 'arrayMetadata' is set if (arrayMetadata == null) { throw new ApiException("Missing the required parameter 'arrayMetadata' when calling registerArray(Async)"); } + - return registerArrayCall(namespace, array, arrayMetadata, _callback); + okhttp3.Call localVarCall = registerArrayCall(workspace, teamspace, array, arrayMetadata, _callback); + return localVarCall; } /** * * register an array at a specified URI registered to the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @return ArrayInfo @@ -4762,15 +5090,16 @@ private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String ar 0 error response - */ - public ArrayInfo registerArray(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - ApiResponse localVarResp = registerArrayWithHttpInfo(namespace, array, arrayMetadata); + public ArrayInfo registerArray(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + ApiResponse localVarResp = registerArrayWithHttpInfo(workspace, teamspace, array, arrayMetadata); return localVarResp.getData(); } /** * * register an array at a specified URI registered to the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @return ApiResponse<ArrayInfo> @@ -4783,8 +5112,8 @@ public ArrayInfo registerArray(String namespace, String array, ArrayInfoUpdate a 0 error response - */ - public ApiResponse registerArrayWithHttpInfo(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - okhttp3.Call localVarCall = registerArrayValidateBeforeCall(namespace, array, arrayMetadata, null); + public ApiResponse registerArrayWithHttpInfo(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + okhttp3.Call localVarCall = registerArrayValidateBeforeCall(workspace, teamspace, array, arrayMetadata, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4792,7 +5121,8 @@ public ApiResponse registerArrayWithHttpInfo(String namespace, String /** * (asynchronously) * register an array at a specified URI registered to the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @param _callback The callback to be executed when the API call finishes @@ -4806,16 +5136,17 @@ public ApiResponse registerArrayWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call registerArrayAsync(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerArrayAsync(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerArrayValidateBeforeCall(namespace, array, arrayMetadata, _callback); + okhttp3.Call localVarCall = registerArrayValidateBeforeCall(workspace, teamspace, array, arrayMetadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for shareArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -4830,7 +5161,7 @@ public okhttp3.Call registerArrayAsync(String namespace, String array, ArrayInfo 0 error response - */ - public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayCall(String workspace, String teamspace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4847,9 +5178,10 @@ public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing Object localVarPostBody = arraySharing; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4873,35 +5205,44 @@ public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareArray(Async)"); - } - + private okhttp3.Call shareArrayValidateBeforeCall(String workspace, String teamspace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling shareArray(Async)"); } - + // verify the required parameter 'arraySharing' is set if (arraySharing == null) { throw new ApiException("Missing the required parameter 'arraySharing' when calling shareArray(Async)"); } + - return shareArrayCall(namespace, array, arraySharing, _callback); + okhttp3.Call localVarCall = shareArrayCall(workspace, teamspace, array, arraySharing, _callback); + return localVarCall; } /** * * Share an array with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4914,14 +5255,15 @@ private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array 0 error response - */ - public void shareArray(String namespace, String array, ArraySharing arraySharing) throws ApiException { - shareArrayWithHttpInfo(namespace, array, arraySharing); + public void shareArray(String workspace, String teamspace, String array, ArraySharing arraySharing) throws ApiException { + shareArrayWithHttpInfo(workspace, teamspace, array, arraySharing); } /** * * Share an array with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -4935,15 +5277,16 @@ public void shareArray(String namespace, String array, ArraySharing arraySharing 0 error response - */ - public ApiResponse shareArrayWithHttpInfo(String namespace, String array, ArraySharing arraySharing) throws ApiException { - okhttp3.Call localVarCall = shareArrayValidateBeforeCall(namespace, array, arraySharing, null); + public ApiResponse shareArrayWithHttpInfo(String workspace, String teamspace, String array, ArraySharing arraySharing) throws ApiException { + okhttp3.Call localVarCall = shareArrayValidateBeforeCall(workspace, teamspace, array, arraySharing, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share an array with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -4958,15 +5301,16 @@ public ApiResponse shareArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call shareArrayAsync(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayAsync(String workspace, String teamspace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareArrayValidateBeforeCall(namespace, array, arraySharing, _callback); + okhttp3.Call localVarCall = shareArrayValidateBeforeCall(workspace, teamspace, array, arraySharing, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateArrayMetadata - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @param _callback Callback for upload/download progress @@ -4980,7 +5324,7 @@ public okhttp3.Call shareArrayAsync(String namespace, String array, ArraySharing 0 error response - */ - public okhttp3.Call updateArrayMetadataCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4997,9 +5341,10 @@ public okhttp3.Call updateArrayMetadataCall(String namespace, String array, Arra Object localVarPostBody = arrayMetadata; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/metadata" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5023,35 +5368,44 @@ public okhttp3.Call updateArrayMetadataCall(String namespace, String array, Arra localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateArrayMetadata(Async)"); - } - + private okhttp3.Call updateArrayMetadataValidateBeforeCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateArrayMetadata(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateArrayMetadata(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling updateArrayMetadata(Async)"); } - + // verify the required parameter 'arrayMetadata' is set if (arrayMetadata == null) { throw new ApiException("Missing the required parameter 'arrayMetadata' when calling updateArrayMetadata(Async)"); } + - return updateArrayMetadataCall(namespace, array, arrayMetadata, _callback); + okhttp3.Call localVarCall = updateArrayMetadataCall(workspace, teamspace, array, arrayMetadata, _callback); + return localVarCall; } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -5063,14 +5417,15 @@ private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, Str 0 error response - */ - public void updateArrayMetadata(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - updateArrayMetadataWithHttpInfo(namespace, array, arrayMetadata); + public void updateArrayMetadata(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + updateArrayMetadataWithHttpInfo(workspace, teamspace, array, arrayMetadata); } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @return ApiResponse<Void> @@ -5083,15 +5438,16 @@ public void updateArrayMetadata(String namespace, String array, ArrayInfoUpdate 0 error response - */ - public ApiResponse updateArrayMetadataWithHttpInfo(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(namespace, array, arrayMetadata, null); + public ApiResponse updateArrayMetadataWithHttpInfo(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(workspace, teamspace, array, arrayMetadata, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @param _callback The callback to be executed when the API call finishes @@ -5105,15 +5461,16 @@ public ApiResponse updateArrayMetadataWithHttpInfo(String namespace, Strin 0 error response - */ - public okhttp3.Call updateArrayMetadataAsync(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataAsync(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(namespace, array, arrayMetadata, _callback); + okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(workspace, teamspace, array, arrayMetadata, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateArrayMetadataCapnp - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @param _callback Callback for upload/download progress @@ -5127,7 +5484,7 @@ public okhttp3.Call updateArrayMetadataAsync(String namespace, String array, Arr 0 error response - */ - public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataCapnpCall(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5144,9 +5501,10 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, Object localVarPostBody = arrayMetadataEntries; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/array_metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/array_metadata" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5155,8 +5513,7 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5164,43 +5521,51 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, } final String[] localVarContentTypes = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateArrayMetadataCapnp(Async)"); - } - + private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateArrayMetadataCapnp(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling updateArrayMetadataCapnp(Async)"); } - + // verify the required parameter 'arrayMetadataEntries' is set if (arrayMetadataEntries == null) { throw new ApiException("Missing the required parameter 'arrayMetadataEntries' when calling updateArrayMetadataCapnp(Async)"); } + - return updateArrayMetadataCapnpCall(namespace, array, arrayMetadataEntries, _callback); + okhttp3.Call localVarCall = updateArrayMetadataCapnpCall(workspace, teamspace, array, arrayMetadataEntries, _callback); + return localVarCall; } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -5212,14 +5577,15 @@ private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace 0 error response - */ - public void updateArrayMetadataCapnp(String namespace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { - updateArrayMetadataCapnpWithHttpInfo(namespace, array, arrayMetadataEntries); + public void updateArrayMetadataCapnp(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { + updateArrayMetadataCapnpWithHttpInfo(workspace, teamspace, array, arrayMetadataEntries); } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @return ApiResponse<Void> @@ -5232,15 +5598,16 @@ public void updateArrayMetadataCapnp(String namespace, String array, ArrayMetada 0 error response - */ - public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String namespace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(namespace, array, arrayMetadataEntries, null); + public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { + okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, arrayMetadataEntries, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @param _callback The callback to be executed when the API call finishes @@ -5254,15 +5621,16 @@ public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call updateArrayMetadataCapnpAsync(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataCapnpAsync(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(namespace, array, arrayMetadataEntries, _callback); + okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, arrayMetadataEntries, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for vacuumArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @param _callback Callback for upload/download progress @@ -5276,7 +5644,7 @@ public okhttp3.Call updateArrayMetadataCapnpAsync(String namespace, String array 0 error response - */ - public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call vacuumArrayCall(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5293,9 +5661,10 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumR Object localVarPostBody = vaccumRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/vacuum" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/vacuum" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5319,35 +5688,44 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumR localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling vacuumArray(Async)"); - } - + private okhttp3.Call vacuumArrayValidateBeforeCall(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling vacuumArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling vacuumArray(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling vacuumArray(Async)"); } - + // verify the required parameter 'vaccumRequest' is set if (vaccumRequest == null) { throw new ApiException("Missing the required parameter 'vaccumRequest' when calling vacuumArray(Async)"); } + - return vacuumArrayCall(namespace, array, vaccumRequest, _callback); + okhttp3.Call localVarCall = vacuumArrayCall(workspace, teamspace, array, vaccumRequest, _callback); + return localVarCall; } /** * * vacuum an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -5359,14 +5737,15 @@ private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String arra 0 error response - */ - public void vacuumArray(String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { - vacuumArrayWithHttpInfo(namespace, array, vaccumRequest); + public void vacuumArray(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + vacuumArrayWithHttpInfo(workspace, teamspace, array, vaccumRequest); } /** * * vacuum an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @return ApiResponse<Void> @@ -5379,15 +5758,16 @@ public void vacuumArray(String namespace, String array, ArrayVacuumRequest vaccu 0 error response - */ - public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { - okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, null); + public ApiResponse vacuumArrayWithHttpInfo(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(workspace, teamspace, array, vaccumRequest, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * vacuum an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @param _callback The callback to be executed when the API call finishes @@ -5401,9 +5781,9 @@ public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call vacuumArrayAsync(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call vacuumArrayAsync(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, _callback); + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(workspace, teamspace, array, vaccumRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java index 624eebb..f5a36ab 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -28,7 +26,6 @@ import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; -import io.tiledb.cloud.rest_api.model.Error; import java.lang.reflect.Type; import java.util.ArrayList; @@ -131,19 +128,23 @@ public okhttp3.Call getArrayTasksSidebarCall(Integer start, Integer end, final A } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getArrayTasksSidebarValidateBeforeCall(Integer start, Integer end, final ApiCallback _callback) throws ApiException { - return getArrayTasksSidebarCall(start, end, _callback); + + + okhttp3.Call localVarCall = getArrayTasksSidebarCall(start, end, _callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java index ee3ff5a..d330f82 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -28,7 +26,7 @@ import io.tiledb.cloud.rest_api.model.AssetListResponse; -import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest; import java.lang.reflect.Type; import java.util.ArrayList; @@ -73,9 +71,160 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } + /** + * Build call for changeAssetCredentials + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeAssetCredentialsCall(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = changeCredentialsRequest; + + // create path and map variables + String localVarPath = "/assets/{workspace}/{teamspace}/change_credentials" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call changeAssetCredentialsValidateBeforeCall(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling changeAssetCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling changeAssetCredentials(Async)"); + } + + // verify the required parameter 'changeCredentialsRequest' is set + if (changeCredentialsRequest == null) { + throw new ApiException("Missing the required parameter 'changeCredentialsRequest' when calling changeAssetCredentials(Async)"); + } + + + okhttp3.Call localVarCall = changeAssetCredentialsCall(workspace, teamspace, changeCredentialsRequest, _callback); + return localVarCall; + + } + + /** + * + * Changes the access credentials to the given assets + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public void changeAssetCredentials(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest) throws ApiException { + changeAssetCredentialsWithHttpInfo(workspace, teamspace, changeCredentialsRequest); + } + + /** + * + * Changes the access credentials to the given assets + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse changeAssetCredentialsWithHttpInfo(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest) throws ApiException { + okhttp3.Call localVarCall = changeAssetCredentialsValidateBeforeCall(workspace, teamspace, changeCredentialsRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Changes the access credentials to the given assets + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeAssetCredentialsAsync(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = changeAssetCredentialsValidateBeforeCall(workspace, teamspace, changeCredentialsRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for listAssets - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -95,7 +244,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call listAssetsCall(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAssetsCall(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -112,8 +261,9 @@ public okhttp3.Call listAssetsCall(String namespace, String assetType, String ow Object localVarPostBody = null; // create path and map variables - String localVarPath = "/assets/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/assets/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -162,31 +312,41 @@ public okhttp3.Call listAssetsCall(String namespace, String assetType, String ow } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listAssetsValidateBeforeCall(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listAssets(Async)"); + private okhttp3.Call listAssetsValidateBeforeCall(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling listAssets(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling listAssets(Async)"); } + - return listAssetsCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + okhttp3.Call localVarCall = listAssetsCall(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + return localVarCall; } /** * * List assets in a namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -205,15 +365,16 @@ private okhttp3.Call listAssetsValidateBeforeCall(String namespace, String asset 0 error response - */ - public AssetListResponse listAssets(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { - ApiResponse localVarResp = listAssetsWithHttpInfo(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + public AssetListResponse listAssets(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { + ApiResponse localVarResp = listAssetsWithHttpInfo(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); return localVarResp.getData(); } /** * * List assets in a namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -232,8 +393,8 @@ public AssetListResponse listAssets(String namespace, String assetType, String o 0 error response - */ - public ApiResponse listAssetsWithHttpInfo(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { - okhttp3.Call localVarCall = listAssetsValidateBeforeCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, null); + public ApiResponse listAssetsWithHttpInfo(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { + okhttp3.Call localVarCall = listAssetsValidateBeforeCall(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -241,7 +402,8 @@ public ApiResponse listAssetsWithHttpInfo(String namespace, S /** * (asynchronously) * List assets in a namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -261,9 +423,9 @@ public ApiResponse listAssetsWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call listAssetsAsync(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAssetsAsync(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAssetsValidateBeforeCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + okhttp3.Call localVarCall = listAssetsValidateBeforeCall(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -345,19 +507,23 @@ public okhttp3.Call listPublicAssetsCall(String assetType, String depth, String } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPublicAssetsValidateBeforeCall(String assetType, String depth, String search, Integer page, Integer perPage, String orderBy, final ApiCallback _callback) throws ApiException { - return listPublicAssetsCall(assetType, depth, search, page, perPage, orderBy, _callback); + + + okhttp3.Call localVarCall = listPublicAssetsCall(assetType, depth, search, page, perPage, orderBy, _callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java index 0bddb96..ed298a0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -29,7 +27,6 @@ import io.tiledb.cloud.rest_api.model.ArrayFavorite; import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.MLModelFavorite; import io.tiledb.cloud.rest_api.model.MLModelFavoritesData; import io.tiledb.cloud.rest_api.model.NotebookFavorite; @@ -82,7 +79,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for addArrayFavorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -95,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addArrayFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -112,9 +110,10 @@ public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/arrays/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -131,36 +130,46 @@ public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final Ap } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addArrayFavorite(Async)"); - } - + private okhttp3.Call addArrayFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addArrayFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addArrayFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling addArrayFavorite(Async)"); } + - return addArrayFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = addArrayFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Add a new array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -171,14 +180,15 @@ private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String 0 error response - */ - public void addArrayFavorite(String namespace, String name) throws ApiException { - addArrayFavoriteWithHttpInfo(namespace, name); + public void addArrayFavorite(String workspace, String teamspace, String name) throws ApiException { + addArrayFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Add a new array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -190,15 +200,16 @@ public void addArrayFavorite(String namespace, String name) throws ApiException 0 error response - */ - public ApiResponse addArrayFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addArrayFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -211,15 +222,16 @@ public ApiResponse addArrayFavoriteWithHttpInfo(String namespace, String n 0 error response - */ - public okhttp3.Call addArrayFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addArrayFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addMLModelFavorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -232,7 +244,7 @@ public okhttp3.Call addArrayFavoriteAsync(String namespace, String name, final A 0 error response - */ - public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addMLModelFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -249,9 +261,10 @@ public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/ml_models/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -268,36 +281,46 @@ public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addMLModelFavorite(Async)"); - } - + private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addMLModelFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addMLModelFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling addMLModelFavorite(Async)"); } + - return addMLModelFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = addMLModelFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Add a new ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -308,14 +331,15 @@ private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, Stri 0 error response - */ - public void addMLModelFavorite(String namespace, String name) throws ApiException { - addMLModelFavoriteWithHttpInfo(namespace, name); + public void addMLModelFavorite(String workspace, String teamspace, String name) throws ApiException { + addMLModelFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Add a new ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -327,15 +351,16 @@ public void addMLModelFavorite(String namespace, String name) throws ApiExceptio 0 error response - */ - public ApiResponse addMLModelFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addMLModelFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -348,15 +373,16 @@ public ApiResponse addMLModelFavoriteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call addMLModelFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addMLModelFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addNotebookFavorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -369,7 +395,7 @@ public okhttp3.Call addMLModelFavoriteAsync(String namespace, String name, final 0 error response - */ - public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addNotebookFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -386,9 +412,10 @@ public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/notebooks/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -405,36 +432,46 @@ public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addNotebookFavorite(Async)"); - } - + private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addNotebookFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addNotebookFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling addNotebookFavorite(Async)"); } + - return addNotebookFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = addNotebookFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Add a new notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -445,14 +482,15 @@ private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, Str 0 error response - */ - public void addNotebookFavorite(String namespace, String name) throws ApiException { - addNotebookFavoriteWithHttpInfo(namespace, name); + public void addNotebookFavorite(String workspace, String teamspace, String name) throws ApiException { + addNotebookFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Add a new notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -464,15 +502,16 @@ public void addNotebookFavorite(String namespace, String name) throws ApiExcepti 0 error response - */ - public ApiResponse addNotebookFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addNotebookFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -485,15 +524,15 @@ public ApiResponse addNotebookFavoriteWithHttpInfo(String namespace, Strin 0 error response - */ - public okhttp3.Call addNotebookFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addNotebookFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addUDFFavorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -506,7 +545,7 @@ public okhttp3.Call addNotebookFavoriteAsync(String namespace, String name, fina 0 error response - */ - public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addUDFFavoriteCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -523,9 +562,9 @@ public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiC Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udfs/favorites/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -542,36 +581,40 @@ public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiC } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addUDFFavorite(Async)"); + private okhttp3.Call addUDFFavoriteValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addUDFFavorite(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling addUDFFavorite(Async)"); } + - return addUDFFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = addUDFFavoriteCall(workspace, name, _callback); + return localVarCall; } /** * * Add a new UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -582,14 +625,14 @@ private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String n 0 error response - */ - public void addUDFFavorite(String namespace, String name) throws ApiException { - addUDFFavoriteWithHttpInfo(namespace, name); + public void addUDFFavorite(String workspace, String name) throws ApiException { + addUDFFavoriteWithHttpInfo(workspace, name); } /** * * Add a new UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -601,15 +644,15 @@ public void addUDFFavorite(String namespace, String name) throws ApiException { 0 error response - */ - public ApiResponse addUDFFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addUDFFavoriteWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -622,15 +665,16 @@ public ApiResponse addUDFFavoriteWithHttpInfo(String namespace, String nam 0 error response - */ - public okhttp3.Call addUDFFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addUDFFavoriteAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteArrayFavorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -643,7 +687,7 @@ public okhttp3.Call addUDFFavoriteAsync(String namespace, String name, final Api 0 error response - */ - public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -660,9 +704,10 @@ public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/arrays/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -679,36 +724,46 @@ public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteArrayFavorite(Async)"); - } - + private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteArrayFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteArrayFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteArrayFavorite(Async)"); } + - return deleteArrayFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteArrayFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Delete specific array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -719,14 +774,15 @@ private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, Str 0 error response - */ - public void deleteArrayFavorite(String namespace, String name) throws ApiException { - deleteArrayFavoriteWithHttpInfo(namespace, name); + public void deleteArrayFavorite(String workspace, String teamspace, String name) throws ApiException { + deleteArrayFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Delete specific array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -738,15 +794,16 @@ public void deleteArrayFavorite(String namespace, String name) throws ApiExcepti 0 error response - */ - public ApiResponse deleteArrayFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteArrayFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -759,15 +816,16 @@ public ApiResponse deleteArrayFavoriteWithHttpInfo(String namespace, Strin 0 error response - */ - public okhttp3.Call deleteArrayFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteMLModelFavorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -780,7 +838,7 @@ public okhttp3.Call deleteArrayFavoriteAsync(String namespace, String name, fina 0 error response - */ - public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMLModelFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -797,9 +855,10 @@ public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, fin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/ml_models/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -816,36 +875,46 @@ public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, fin } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteMLModelFavorite(Async)"); - } - + private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteMLModelFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteMLModelFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteMLModelFavorite(Async)"); } + - return deleteMLModelFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteMLModelFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Delete specific ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -856,14 +925,15 @@ private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, S 0 error response - */ - public void deleteMLModelFavorite(String namespace, String name) throws ApiException { - deleteMLModelFavoriteWithHttpInfo(namespace, name); + public void deleteMLModelFavorite(String workspace, String teamspace, String name) throws ApiException { + deleteMLModelFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Delete specific ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -875,15 +945,16 @@ public void deleteMLModelFavorite(String namespace, String name) throws ApiExcep 0 error response - */ - public ApiResponse deleteMLModelFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteMLModelFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -896,15 +967,16 @@ public ApiResponse deleteMLModelFavoriteWithHttpInfo(String namespace, Str 0 error response - */ - public okhttp3.Call deleteMLModelFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMLModelFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteNotebookFavorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -917,7 +989,7 @@ public okhttp3.Call deleteMLModelFavoriteAsync(String namespace, String name, fi 0 error response - */ - public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNotebookFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -934,9 +1006,10 @@ public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, fi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/notebooks/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -953,36 +1026,46 @@ public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, fi } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNotebookFavorite(Async)"); - } - + private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteNotebookFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteNotebookFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNotebookFavorite(Async)"); } + - return deleteNotebookFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteNotebookFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Delete specific notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -993,14 +1076,15 @@ private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, 0 error response - */ - public void deleteNotebookFavorite(String namespace, String name) throws ApiException { - deleteNotebookFavoriteWithHttpInfo(namespace, name); + public void deleteNotebookFavorite(String workspace, String teamspace, String name) throws ApiException { + deleteNotebookFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Delete specific notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1012,15 +1096,16 @@ public void deleteNotebookFavorite(String namespace, String name) throws ApiExce 0 error response - */ - public ApiResponse deleteNotebookFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteNotebookFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1033,15 +1118,15 @@ public ApiResponse deleteNotebookFavoriteWithHttpInfo(String namespace, St 0 error response - */ - public okhttp3.Call deleteNotebookFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNotebookFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteUDFFavorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1054,7 +1139,7 @@ public okhttp3.Call deleteNotebookFavoriteAsync(String namespace, String name, f 0 error response - */ - public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFFavoriteCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1071,9 +1156,9 @@ public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final A Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udfs/favorites/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1090,36 +1175,40 @@ public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final A } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteUDFFavorite(Async)"); + private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteUDFFavorite(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteUDFFavorite(Async)"); } + - return deleteUDFFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteUDFFavoriteCall(workspace, name, _callback); + return localVarCall; } /** * * Delete specific UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1130,14 +1219,14 @@ private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, Strin 0 error response - */ - public void deleteUDFFavorite(String namespace, String name) throws ApiException { - deleteUDFFavoriteWithHttpInfo(namespace, name); + public void deleteUDFFavorite(String workspace, String name) throws ApiException { + deleteUDFFavoriteWithHttpInfo(workspace, name); } /** * * Delete specific UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1149,15 +1238,15 @@ public void deleteUDFFavorite(String namespace, String name) throws ApiException 0 error response - */ - public ApiResponse deleteUDFFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteUDFFavoriteWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1170,15 +1259,16 @@ public ApiResponse deleteUDFFavoriteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call deleteUDFFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFFavoriteAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getArrayFavorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1191,7 +1281,7 @@ public okhttp3.Call deleteUDFFavoriteAsync(String namespace, String name, final 0 error response - */ - public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1208,9 +1298,10 @@ public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/arrays/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1227,36 +1318,46 @@ public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final Ap } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayFavorite(Async)"); - } - + private okhttp3.Call getArrayFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getArrayFavorite(Async)"); } + - return getArrayFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = getArrayFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Fetch array favorite of a specific array - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ArrayFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1268,15 +1369,16 @@ private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String 0 error response - */ - public ArrayFavorite getArrayFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getArrayFavoriteWithHttpInfo(namespace, name); + public ArrayFavorite getArrayFavorite(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = getArrayFavoriteWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Fetch array favorite of a specific array - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ApiResponse<ArrayFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1288,8 +1390,8 @@ public ArrayFavorite getArrayFavorite(String namespace, String name) throws ApiE 0 error response - */ - public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getArrayFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1297,7 +1399,8 @@ public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, /** * (asynchronously) * Fetch array favorite of a specific array - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1310,16 +1413,17 @@ public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call getArrayFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getMLModelFavorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1332,7 +1436,7 @@ public okhttp3.Call getArrayFavoriteAsync(String namespace, String name, final A 0 error response - */ - public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMLModelFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1349,9 +1453,10 @@ public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/ml_models/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1368,36 +1473,46 @@ public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getMLModelFavorite(Async)"); - } - + private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getMLModelFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getMLModelFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getMLModelFavorite(Async)"); } + - return getMLModelFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = getMLModelFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Fetch ML model favorite of a specific ML model - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return MLModelFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1409,15 +1524,16 @@ private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, Stri 0 error response - */ - public MLModelFavorite getMLModelFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getMLModelFavoriteWithHttpInfo(namespace, name); + public MLModelFavorite getMLModelFavorite(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = getMLModelFavoriteWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Fetch ML model favorite of a specific ML model - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return ApiResponse<MLModelFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1429,8 +1545,8 @@ public MLModelFavorite getMLModelFavorite(String namespace, String name) throws 0 error response - */ - public ApiResponse getMLModelFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getMLModelFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1438,7 +1554,8 @@ public ApiResponse getMLModelFavoriteWithHttpInfo(String namesp /** * (asynchronously) * Fetch ML model favorite of a specific ML model - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1451,16 +1568,17 @@ public ApiResponse getMLModelFavoriteWithHttpInfo(String namesp 0 error response - */ - public okhttp3.Call getMLModelFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMLModelFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getNotebookFavorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1473,7 +1591,7 @@ public okhttp3.Call getMLModelFavoriteAsync(String namespace, String name, final 0 error response - */ - public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1490,9 +1608,10 @@ public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/notebooks/favorites/{workspace}/{teamspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1509,36 +1628,46 @@ public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getNotebookFavorite(Async)"); - } - + private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getNotebookFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getNotebookFavorite(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getNotebookFavorite(Async)"); } + - return getNotebookFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = getNotebookFavoriteCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Fetch notebook favorite of a specific notebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return NotebookFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1550,15 +1679,16 @@ private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, Str 0 error response - */ - public NotebookFavorite getNotebookFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getNotebookFavoriteWithHttpInfo(namespace, name); + public NotebookFavorite getNotebookFavorite(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = getNotebookFavoriteWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Fetch notebook favorite of a specific notebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return ApiResponse<NotebookFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1570,8 +1700,8 @@ public NotebookFavorite getNotebookFavorite(String namespace, String name) throw 0 error response - */ - public ApiResponse getNotebookFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getNotebookFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1579,7 +1709,8 @@ public ApiResponse getNotebookFavoriteWithHttpInfo(String name /** * (asynchronously) * Fetch notebook favorite of a specific notebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1592,16 +1723,16 @@ public ApiResponse getNotebookFavoriteWithHttpInfo(String name 0 error response - */ - public okhttp3.Call getNotebookFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUDFFavorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1614,7 +1745,7 @@ public okhttp3.Call getNotebookFavoriteAsync(String namespace, String name, fina 0 error response - */ - public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFFavoriteCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1631,9 +1762,9 @@ public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiC Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udfs/favorites/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1650,36 +1781,40 @@ public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiC } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getUDFFavorite(Async)"); + private okhttp3.Call getUDFFavoriteValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getUDFFavorite(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getUDFFavorite(Async)"); } + - return getUDFFavoriteCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFFavoriteCall(workspace, name, _callback); + return localVarCall; } /** * * Fetch UDF favorite of a specific UDF - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return UDFFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1691,15 +1826,15 @@ private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String n 0 error response - */ - public UDFFavorite getUDFFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getUDFFavoriteWithHttpInfo(namespace, name); + public UDFFavorite getUDFFavorite(String workspace, String name) throws ApiException { + ApiResponse localVarResp = getUDFFavoriteWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Fetch UDF favorite of a specific UDF - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return ApiResponse<UDFFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1711,8 +1846,8 @@ public UDFFavorite getUDFFavorite(String namespace, String name) throws ApiExcep 0 error response - */ - public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getUDFFavoriteWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1720,7 +1855,7 @@ public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, Str /** * (asynchronously) * Fetch UDF favorite of a specific UDF - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1733,9 +1868,9 @@ public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, Str 0 error response - */ - public okhttp3.Call getUDFFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFFavoriteAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1797,19 +1932,23 @@ public okhttp3.Call listArrayFavoritesCall(Integer page, Integer perPage, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listArrayFavoritesValidateBeforeCall(Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - return listArrayFavoritesCall(page, perPage, _callback); + + + okhttp3.Call localVarCall = listArrayFavoritesCall(page, perPage, _callback); + return localVarCall; } @@ -1924,19 +2063,23 @@ public okhttp3.Call listArrayFavoritesUUIDsCall(final ApiCallback _callback) thr } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listArrayFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return listArrayFavoritesUUIDsCall(_callback); + + + okhttp3.Call localVarCall = listArrayFavoritesUUIDsCall(_callback); + return localVarCall; } @@ -2055,19 +2198,23 @@ public okhttp3.Call listMLModelFavoritesCall(Integer page, Integer perPage, fina } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listMLModelFavoritesValidateBeforeCall(Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - return listMLModelFavoritesCall(page, perPage, _callback); + + + okhttp3.Call localVarCall = listMLModelFavoritesCall(page, perPage, _callback); + return localVarCall; } @@ -2182,19 +2329,23 @@ public okhttp3.Call listMLModelFavoritesUUIDsCall(final ApiCallback _callback) t } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listMLModelFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return listMLModelFavoritesUUIDsCall(_callback); + + + okhttp3.Call localVarCall = listMLModelFavoritesUUIDsCall(_callback); + return localVarCall; } @@ -2318,19 +2469,23 @@ public okhttp3.Call listNotebookFavoritesCall(Boolean isDashboard, Integer page, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNotebookFavoritesValidateBeforeCall(Boolean isDashboard, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - return listNotebookFavoritesCall(isDashboard, page, perPage, _callback); + + + okhttp3.Call localVarCall = listNotebookFavoritesCall(isDashboard, page, perPage, _callback); + return localVarCall; } @@ -2448,19 +2603,23 @@ public okhttp3.Call listNotebookFavoritesUUIDsCall(final ApiCallback _callback) } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNotebookFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return listNotebookFavoritesUUIDsCall(_callback); + + + okhttp3.Call localVarCall = listNotebookFavoritesUUIDsCall(_callback); + return localVarCall; } @@ -2579,19 +2738,23 @@ public okhttp3.Call listUDFFavoritesCall(Integer page, Integer perPage, final Ap } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listUDFFavoritesValidateBeforeCall(Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - return listUDFFavoritesCall(page, perPage, _callback); + + + okhttp3.Call localVarCall = listUDFFavoritesCall(page, perPage, _callback); + return localVarCall; } @@ -2706,19 +2869,23 @@ public okhttp3.Call listUDFFavoritesUUIDsCall(final ApiCallback _callback) throw } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listUDFFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return listUDFFavoritesUUIDsCall(_callback); + + + okhttp3.Call localVarCall = listUDFFavoritesUUIDsCall(_callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java index de5e007..f2f3ccb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import java.io.File; import io.tiledb.cloud.rest_api.model.FileCreate; import io.tiledb.cloud.rest_api.model.FileCreated; @@ -80,7 +77,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for handleCreateFile - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param _callback Callback for upload/download progress @@ -94,7 +92,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCreateFileCall(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +109,9 @@ public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate Object localVarPostBody = fileCreate; // create path and map variables - String localVarPath = "/files/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/files/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -140,30 +139,39 @@ public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleCreateFile(Async)"); + private okhttp3.Call handleCreateFileValidateBeforeCall(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleCreateFile(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleCreateFile(Async)"); + } + // verify the required parameter 'fileCreate' is set if (fileCreate == null) { throw new ApiException("Missing the required parameter 'fileCreate' when calling handleCreateFile(Async)"); } + - return handleCreateFileCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + okhttp3.Call localVarCall = handleCreateFileCall(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + return localVarCall; } /** * * Create a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @return FileCreated @@ -176,15 +184,16 @@ private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCr 0 error response - */ - public FileCreated handleCreateFile(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - ApiResponse localVarResp = handleCreateFileWithHttpInfo(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + public FileCreated handleCreateFile(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + ApiResponse localVarResp = handleCreateFileWithHttpInfo(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); return localVarResp.getData(); } /** * * Create a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @return ApiResponse<FileCreated> @@ -197,8 +206,8 @@ public FileCreated handleCreateFile(String namespace, FileCreate fileCreate, Str 0 error response - */ - public ApiResponse handleCreateFileWithHttpInfo(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); + public ApiResponse handleCreateFileWithHttpInfo(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -206,7 +215,8 @@ public ApiResponse handleCreateFileWithHttpInfo(String namespace, F /** * (asynchronously) * Create a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param _callback The callback to be executed when the API call finishes @@ -220,16 +230,17 @@ public ApiResponse handleCreateFileWithHttpInfo(String namespace, F 0 error response - */ - public okhttp3.Call handleCreateFileAsync(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCreateFileAsync(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleExportFile - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @param _callback Callback for upload/download progress @@ -243,7 +254,7 @@ public okhttp3.Call handleCreateFileAsync(String namespace, FileCreate fileCreat 0 error response - */ - public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleExportFileCall(String workspace, String teamspace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -260,9 +271,10 @@ public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExp Object localVarPostBody = fileExport; // create path and map variables - String localVarPath = "/files/{namespace}/{file}/export" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "file" + "}", localVarApiClient.escapeString(_file.toString())); + String localVarPath = "/files/{workspace}/{teamspace}/{file}/export" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "file" + "\\}", localVarApiClient.escapeString(_file.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -286,35 +298,44 @@ public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExp localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleExportFile(Async)"); + private okhttp3.Call handleExportFileValidateBeforeCall(String workspace, String teamspace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleExportFile(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleExportFile(Async)"); + } + // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling handleExportFile(Async)"); } - + // verify the required parameter 'fileExport' is set if (fileExport == null) { throw new ApiException("Missing the required parameter 'fileExport' when calling handleExportFile(Async)"); } + - return handleExportFileCall(namespace, _file, fileExport, _callback); + okhttp3.Call localVarCall = handleExportFileCall(workspace, teamspace, _file, fileExport, _callback); + return localVarCall; } /** * * Export a TileDB File back to its original file format - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @return FileExported @@ -327,15 +348,16 @@ private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String 0 error response - */ - public FileExported handleExportFile(String namespace, String _file, FileExport fileExport) throws ApiException { - ApiResponse localVarResp = handleExportFileWithHttpInfo(namespace, _file, fileExport); + public FileExported handleExportFile(String workspace, String teamspace, String _file, FileExport fileExport) throws ApiException { + ApiResponse localVarResp = handleExportFileWithHttpInfo(workspace, teamspace, _file, fileExport); return localVarResp.getData(); } /** * * Export a TileDB File back to its original file format - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @return ApiResponse<FileExported> @@ -348,8 +370,8 @@ public FileExported handleExportFile(String namespace, String _file, FileExport 0 error response - */ - public ApiResponse handleExportFileWithHttpInfo(String namespace, String _file, FileExport fileExport) throws ApiException { - okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(namespace, _file, fileExport, null); + public ApiResponse handleExportFileWithHttpInfo(String workspace, String teamspace, String _file, FileExport fileExport) throws ApiException { + okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(workspace, teamspace, _file, fileExport, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -357,7 +379,8 @@ public ApiResponse handleExportFileWithHttpInfo(String namespace, /** * (asynchronously) * Export a TileDB File back to its original file format - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @param _callback The callback to be executed when the API call finishes @@ -371,16 +394,17 @@ public ApiResponse handleExportFileWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call handleExportFileAsync(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleExportFileAsync(String workspace, String teamspace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(namespace, _file, fileExport, _callback); + okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(workspace, teamspace, _file, fileExport, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleUploadFile - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -396,7 +420,7 @@ public okhttp3.Call handleExportFileAsync(String namespace, String _file, FileEx 0 error response - */ - public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadFileCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -413,8 +437,9 @@ public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/files/{namespace}/upload" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/files/{workspace}/{teamspace}/upload" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -454,30 +479,39 @@ public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, Strin localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadFile(Async)"); + private okhttp3.Call handleUploadFileValidateBeforeCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleUploadFile(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleUploadFile(Async)"); + } + // verify the required parameter 'inputFile' is set if (inputFile == null) { throw new ApiException("Missing the required parameter 'inputFile' when calling handleUploadFile(Async)"); } + - return handleUploadFileCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + okhttp3.Call localVarCall = handleUploadFileCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + return localVarCall; } /** * * Upload a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -492,15 +526,16 @@ private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File i 0 error response - */ - public FileUploaded handleUploadFile(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - ApiResponse localVarResp = handleUploadFileWithHttpInfo(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + public FileUploaded handleUploadFile(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + ApiResponse localVarResp = handleUploadFileWithHttpInfo(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); return localVarResp.getData(); } /** * * Upload a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -515,8 +550,8 @@ public FileUploaded handleUploadFile(String namespace, File inputFile, String X_ 0 error response - */ - public ApiResponse handleUploadFileWithHttpInfo(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); + public ApiResponse handleUploadFileWithHttpInfo(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -524,7 +559,8 @@ public ApiResponse handleUploadFileWithHttpInfo(String namespace, /** * (asynchronously) * Upload a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -540,9 +576,9 @@ public ApiResponse handleUploadFileWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call handleUploadFileAsync(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadFileAsync(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java index c233bd1..ac42a21 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.GroupBrowserData; import io.tiledb.cloud.rest_api.model.GroupBrowserFilterData; import io.tiledb.cloud.rest_api.model.GroupChanges; @@ -86,7 +83,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for changeGroupContents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @param _callback Callback for upload/download progress @@ -100,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + public okhttp3.Call changeGroupContentsCall(String workspace, String teamspace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -117,9 +115,10 @@ public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupN Object localVarPostBody = groupChanges; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/contents" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/contents" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -143,30 +142,39 @@ public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupN localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling changeGroupContents(Async)"); - } - + private okhttp3.Call changeGroupContentsValidateBeforeCall(String workspace, String teamspace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling changeGroupContents(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling changeGroupContents(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling changeGroupContents(Async)"); } + - return changeGroupContentsCall(groupNamespace, groupName, groupChanges, _callback); + okhttp3.Call localVarCall = changeGroupContentsCall(workspace, teamspace, groupName, groupChanges, _callback); + return localVarCall; } /** * * Changes the contents of the group by adding/removing members. - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -178,14 +186,15 @@ private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace 0 error response - */ - public void changeGroupContents(String groupNamespace, String groupName, GroupChanges groupChanges) throws ApiException { - changeGroupContentsWithHttpInfo(groupNamespace, groupName, groupChanges); + public void changeGroupContents(String workspace, String teamspace, String groupName, GroupChanges groupChanges) throws ApiException { + changeGroupContentsWithHttpInfo(workspace, teamspace, groupName, groupChanges); } /** * * Changes the contents of the group by adding/removing members. - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @return ApiResponse<Void> @@ -198,15 +207,16 @@ public void changeGroupContents(String groupNamespace, String groupName, GroupCh 0 error response - */ - public ApiResponse changeGroupContentsWithHttpInfo(String groupNamespace, String groupName, GroupChanges groupChanges) throws ApiException { - okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(groupNamespace, groupName, groupChanges, null); + public ApiResponse changeGroupContentsWithHttpInfo(String workspace, String teamspace, String groupName, GroupChanges groupChanges) throws ApiException { + okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(workspace, teamspace, groupName, groupChanges, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Changes the contents of the group by adding/removing members. - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @param _callback The callback to be executed when the API call finishes @@ -220,15 +230,16 @@ public ApiResponse changeGroupContentsWithHttpInfo(String groupNamespace, 0 error response - */ - public okhttp3.Call changeGroupContentsAsync(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + public okhttp3.Call changeGroupContentsAsync(String workspace, String teamspace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(groupNamespace, groupName, groupChanges, _callback); + okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(workspace, teamspace, groupName, groupChanges, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createGroup - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -241,7 +252,7 @@ public okhttp3.Call changeGroupContentsAsync(String groupNamespace, String group 0 error response - */ - public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createGroupCall(String workspace, String teamspace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -258,8 +269,9 @@ public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, f Object localVarPostBody = groupCreate; // create path and map variables - String localVarPath = "/groups/{namespace}/create" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/create" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -283,25 +295,34 @@ public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, f localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createGroupValidateBeforeCall(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createGroup(Async)"); + private okhttp3.Call createGroupValidateBeforeCall(String workspace, String teamspace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createGroup(Async)"); } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling createGroup(Async)"); + } + - return createGroupCall(namespace, groupCreate, _callback); + okhttp3.Call localVarCall = createGroupCall(workspace, teamspace, groupCreate, _callback); + return localVarCall; } /** * * Creates a new group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -312,14 +333,15 @@ private okhttp3.Call createGroupValidateBeforeCall(String namespace, GroupCreate 0 error response - */ - public void createGroup(String namespace, GroupCreate groupCreate) throws ApiException { - createGroupWithHttpInfo(namespace, groupCreate); + public void createGroup(String workspace, String teamspace, GroupCreate groupCreate) throws ApiException { + createGroupWithHttpInfo(workspace, teamspace, groupCreate); } /** * * Creates a new group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -331,15 +353,16 @@ public void createGroup(String namespace, GroupCreate groupCreate) throws ApiExc 0 error response - */ - public ApiResponse createGroupWithHttpInfo(String namespace, GroupCreate groupCreate) throws ApiException { - okhttp3.Call localVarCall = createGroupValidateBeforeCall(namespace, groupCreate, null); + public ApiResponse createGroupWithHttpInfo(String workspace, String teamspace, GroupCreate groupCreate) throws ApiException { + okhttp3.Call localVarCall = createGroupValidateBeforeCall(workspace, teamspace, groupCreate, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Creates a new group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -352,15 +375,16 @@ public ApiResponse createGroupWithHttpInfo(String namespace, GroupCreate g 0 error response - */ - public okhttp3.Call createGroupAsync(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createGroupAsync(String workspace, String teamspace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createGroupValidateBeforeCall(namespace, groupCreate, _callback); + okhttp3.Call localVarCall = createGroupValidateBeforeCall(workspace, teamspace, groupCreate, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -373,7 +397,7 @@ public okhttp3.Call createGroupAsync(String namespace, GroupCreate groupCreate, 0 error response - */ - public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteGroupCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -390,9 +414,10 @@ public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, fin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -409,36 +434,46 @@ public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, fin } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling deleteGroup(Async)"); - } - + private okhttp3.Call deleteGroupValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteGroup(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling deleteGroup(Async)"); } + - return deleteGroupCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = deleteGroupCall(workspace, teamspace, groupName, _callback); + return localVarCall; } /** * * Deletes the group. The assets are not deleted nor are not relocated to any other group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -449,14 +484,15 @@ private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String 0 error response - */ - public void deleteGroup(String groupNamespace, String groupName) throws ApiException { - deleteGroupWithHttpInfo(groupNamespace, groupName); + public void deleteGroup(String workspace, String teamspace, String groupName) throws ApiException { + deleteGroupWithHttpInfo(workspace, teamspace, groupName); } /** * * Deletes the group. The assets are not deleted nor are not relocated to any other group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -468,15 +504,16 @@ public void deleteGroup(String groupNamespace, String groupName) throws ApiExcep 0 error response - */ - public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse deleteGroupWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(workspace, teamspace, groupName, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Deletes the group. The assets are not deleted nor are not relocated to any other group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -489,15 +526,16 @@ public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String g 0 error response - */ - public okhttp3.Call deleteGroupAsync(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteGroupAsync(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(workspace, teamspace, groupName, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -510,7 +548,7 @@ public okhttp3.Call deleteGroupAsync(String groupNamespace, String groupName, fi 0 error response - */ - public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -527,9 +565,10 @@ public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -546,36 +585,46 @@ public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroup(Async)"); - } - + private okhttp3.Call getGroupValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroup(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling getGroup(Async)"); } + - return getGroupCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = getGroupCall(workspace, teamspace, groupName, _callback); + return localVarCall; } /** * * Returns the the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return GroupInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -587,15 +636,16 @@ private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String gr 0 error response - */ - public GroupInfo getGroup(String groupNamespace, String groupName) throws ApiException { - ApiResponse localVarResp = getGroupWithHttpInfo(groupNamespace, groupName); + public GroupInfo getGroup(String workspace, String teamspace, String groupName) throws ApiException { + ApiResponse localVarResp = getGroupWithHttpInfo(workspace, teamspace, groupName); return localVarResp.getData(); } /** * * Returns the the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<GroupInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -607,8 +657,8 @@ public GroupInfo getGroup(String groupNamespace, String groupName) throws ApiExc 0 error response - */ - public ApiResponse getGroupWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse getGroupWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupValidateBeforeCall(workspace, teamspace, groupName, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -616,7 +666,8 @@ public ApiResponse getGroupWithHttpInfo(String groupNamespace, String /** * (asynchronously) * Returns the the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -629,16 +680,17 @@ public ApiResponse getGroupWithHttpInfo(String groupNamespace, String 0 error response - */ - public okhttp3.Call getGroupAsync(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupAsync(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = getGroupValidateBeforeCall(workspace, teamspace, groupName, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGroupActivity - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -653,7 +705,7 @@ public okhttp3.Call getGroupAsync(String groupNamespace, String groupName, final 0 error response - */ - public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupActivityCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -670,9 +722,10 @@ public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/content_activity" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/content_activity" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -697,36 +750,46 @@ public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupActivity(Async)"); - } - + private okhttp3.Call getGroupActivityValidateBeforeCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroupActivity(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroupActivity(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling getGroupActivity(Async)"); } + - return getGroupActivityCall(groupNamespace, groupName, page, perPage, _callback); + okhttp3.Call localVarCall = getGroupActivityCall(workspace, teamspace, groupName, page, perPage, _callback); + return localVarCall; } /** * * Returns the activity of group content - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -740,15 +803,16 @@ private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, S 0 error response - */ - public GroupContentActivityResponse getGroupActivity(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = getGroupActivityWithHttpInfo(groupNamespace, groupName, page, perPage); + public GroupContentActivityResponse getGroupActivity(String workspace, String teamspace, String groupName, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = getGroupActivityWithHttpInfo(workspace, teamspace, groupName, page, perPage); return localVarResp.getData(); } /** * * Returns the activity of group content - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -762,8 +826,8 @@ public GroupContentActivityResponse getGroupActivity(String groupNamespace, Stri 0 error response - */ - public ApiResponse getGroupActivityWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, null); + public ApiResponse getGroupActivityWithHttpInfo(String workspace, String teamspace, String groupName, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(workspace, teamspace, groupName, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -771,7 +835,8 @@ public ApiResponse getGroupActivityWithHttpInfo(St /** * (asynchronously) * Returns the activity of group content - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -786,16 +851,17 @@ public ApiResponse getGroupActivityWithHttpInfo(St 0 error response - */ - public okhttp3.Call getGroupActivityAsync(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupActivityAsync(String workspace, String teamspace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, _callback); + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(workspace, teamspace, groupName, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGroupContents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -817,7 +883,7 @@ public okhttp3.Call getGroupActivityAsync(String groupNamespace, String groupNam 0 error response - */ - public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupContentsCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -834,9 +900,10 @@ public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/contents" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/contents" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -889,36 +956,46 @@ public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupContents(Async)"); - } - + private okhttp3.Call getGroupContentsValidateBeforeCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroupContents(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroupContents(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling getGroupContents(Async)"); } + - return getGroupContentsCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + okhttp3.Call localVarCall = getGroupContentsCall(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + return localVarCall; } /** * * Returns the contents of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -939,15 +1016,16 @@ private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, S 0 error response - */ - public GroupContents getGroupContents(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { - ApiResponse localVarResp = getGroupContentsWithHttpInfo(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + public GroupContents getGroupContents(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { + ApiResponse localVarResp = getGroupContentsWithHttpInfo(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); return localVarResp.getData(); } /** * * Returns the contents of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -968,8 +1046,8 @@ public GroupContents getGroupContents(String groupNamespace, String groupName, I 0 error response - */ - public ApiResponse getGroupContentsWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { - okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, null); + public ApiResponse getGroupContentsWithHttpInfo(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { + okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -977,7 +1055,8 @@ public ApiResponse getGroupContentsWithHttpInfo(String groupNames /** * (asynchronously) * Returns the contents of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -999,16 +1078,17 @@ public ApiResponse getGroupContentsWithHttpInfo(String groupNames 0 error response - */ - public okhttp3.Call getGroupContentsAsync(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupContentsAsync(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGroupSharingPolicies - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1022,7 +1102,7 @@ public okhttp3.Call getGroupContentsAsync(String groupNamespace, String groupNam 0 error response - */ - public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupSharingPoliciesCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1039,9 +1119,10 @@ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String gr Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/share" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1058,36 +1139,46 @@ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String gr } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupSharingPolicies(Async)"); - } - + private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroupSharingPolicies(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroupSharingPolicies(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling getGroupSharingPolicies(Async)"); } + - return getGroupSharingPoliciesCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = getGroupSharingPoliciesCall(workspace, teamspace, groupName, _callback); + return localVarCall; } /** * * Get all sharing details of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return List<GroupSharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1100,15 +1191,16 @@ private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNames 0 error response - */ - public List getGroupSharingPolicies(String groupNamespace, String groupName) throws ApiException { - ApiResponse> localVarResp = getGroupSharingPoliciesWithHttpInfo(groupNamespace, groupName); + public List getGroupSharingPolicies(String workspace, String teamspace, String groupName) throws ApiException { + ApiResponse> localVarResp = getGroupSharingPoliciesWithHttpInfo(workspace, teamspace, groupName); return localVarResp.getData(); } /** * * Get all sharing details of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<List<GroupSharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1121,8 +1213,8 @@ public List getGroupSharingPolicies(String groupNamespace, String 0 error response - */ - public ApiResponse> getGroupSharingPoliciesWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse> getGroupSharingPoliciesWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(workspace, teamspace, groupName, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1130,7 +1222,8 @@ public ApiResponse> getGroupSharingPoliciesWithHttpInfo(Strin /** * (asynchronously) * Get all sharing details of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1144,9 +1237,9 @@ public ApiResponse> getGroupSharingPoliciesWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getGroupSharingPoliciesAsync(String groupNamespace, String groupName, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getGroupSharingPoliciesAsync(String workspace, String teamspace, String groupName, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(workspace, teamspace, groupName, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1203,19 +1296,23 @@ public okhttp3.Call groupsBrowserOwnedFiltersGetCall(String namespace, final Api } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call groupsBrowserOwnedFiltersGetValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - return groupsBrowserOwnedFiltersGetCall(namespace, _callback); + + + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetCall(namespace, _callback); + return localVarCall; } @@ -1327,19 +1424,23 @@ public okhttp3.Call groupsBrowserPublicFiltersGetCall(final ApiCallback _callbac } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call groupsBrowserPublicFiltersGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return groupsBrowserPublicFiltersGetCall(_callback); + + + okhttp3.Call localVarCall = groupsBrowserPublicFiltersGetCall(_callback); + return localVarCall; } @@ -1453,19 +1554,23 @@ public okhttp3.Call groupsBrowserSharedFiltersGetCall(String namespace, final Ap } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call groupsBrowserSharedFiltersGetValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - return groupsBrowserSharedFiltersGetCall(namespace, _callback); + + + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetCall(namespace, _callback); + return localVarCall; } @@ -1531,8 +1636,9 @@ public okhttp3.Call groupsBrowserSharedFiltersGetAsync(String namespace, final A return localVarCall; } /** - * Build call for groupsGroupNamespaceGroupNameContentsFiltersGet - * @param groupNamespace The namespace of the group (required) + * Build call for groupsWorkspaceTeamspaceGroupNameContentsFiltersGet + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1545,7 +1651,7 @@ public okhttp3.Call groupsBrowserSharedFiltersGetAsync(String namespace, final A 0 error response - */ - public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsWorkspaceTeamspaceGroupNameContentsFiltersGetCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1562,9 +1668,10 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String g Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/contents/filters" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/contents/filters" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1581,36 +1688,46 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String g } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling groupsGroupNamespaceGroupNameContentsFiltersGet(Async)"); - } - + private okhttp3.Call groupsWorkspaceTeamspaceGroupNameContentsFiltersGetValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling groupsGroupNamespaceGroupNameContentsFiltersGet(Async)"); + throw new ApiException("Missing the required parameter 'groupName' when calling groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(Async)"); } + - return groupsGroupNamespaceGroupNameContentsFiltersGetCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetCall(workspace, teamspace, groupName, _callback); + return localVarCall; } /** * * Fetch data to initialize filters for the group contents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return GroupContentsFilterData * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1622,15 +1739,16 @@ private okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetValidateBefo 0 error response - */ - public GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(String groupNamespace, String groupName) throws ApiException { - ApiResponse localVarResp = groupsGroupNamespaceGroupNameContentsFiltersGetWithHttpInfo(groupNamespace, groupName); + public GroupContentsFilterData groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(String workspace, String teamspace, String groupName) throws ApiException { + ApiResponse localVarResp = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetWithHttpInfo(workspace, teamspace, groupName); return localVarResp.getData(); } /** * * Fetch data to initialize filters for the group contents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<GroupContentsFilterData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1642,8 +1760,8 @@ public GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(S 0 error response - */ - public ApiResponse groupsGroupNamespaceGroupNameContentsFiltersGetWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse groupsWorkspaceTeamspaceGroupNameContentsFiltersGetWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetValidateBeforeCall(workspace, teamspace, groupName, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1651,7 +1769,8 @@ public ApiResponse groupsGroupNamespaceGroupNameContent /** * (asynchronously) * Fetch data to initialize filters for the group contents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1664,9 +1783,9 @@ public ApiResponse groupsGroupNamespaceGroupNameContent 0 error response - */ - public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsWorkspaceTeamspaceGroupNameContentsFiltersGetAsync(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetValidateBeforeCall(workspace, teamspace, groupName, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1778,19 +1897,23 @@ public okhttp3.Call listOwnedGroupsCall(Integer page, Integer perPage, String gr } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer perPage, String groupType, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - return listOwnedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + + + okhttp3.Call localVarCall = listOwnedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + return localVarCall; } @@ -1995,19 +2118,23 @@ public okhttp3.Call listPublicGroupsCall(Integer page, Integer perPage, String g } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer perPage, String groupType, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - return listPublicGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + + + okhttp3.Call localVarCall = listPublicGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + return localVarCall; } @@ -2217,19 +2344,23 @@ public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, String g } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer perPage, String groupType, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, List sharedTo, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - return listSharedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata, _callback); + + + okhttp3.Call localVarCall = listSharedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata, _callback); + return localVarCall; } @@ -2332,7 +2463,8 @@ public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, String } /** * Build call for registerGroup - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @param _callback Callback for upload/download progress @@ -2346,7 +2478,7 @@ public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, String 0 error response - */ - public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerGroupCall(String workspace, String teamspace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2363,9 +2495,10 @@ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegis Object localVarPostBody = groupRegister; // create path and map variables - String localVarPath = "/groups/{namespace}/{array}/register" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{array}/register" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2389,30 +2522,39 @@ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegis localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerGroup(Async)"); - } - + private okhttp3.Call registerGroupValidateBeforeCall(String workspace, String teamspace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling registerGroup(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling registerGroup(Async)"); } + - return registerGroupCall(namespace, array, groupRegister, _callback); + okhttp3.Call localVarCall = registerGroupCall(workspace, teamspace, array, groupRegister, _callback); + return localVarCall; } /** * * Registers an existing group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2424,14 +2566,15 @@ private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String ar 0 error response - */ - public void registerGroup(String namespace, String array, GroupRegister groupRegister) throws ApiException { - registerGroupWithHttpInfo(namespace, array, groupRegister); + public void registerGroup(String workspace, String teamspace, String array, GroupRegister groupRegister) throws ApiException { + registerGroupWithHttpInfo(workspace, teamspace, array, groupRegister); } /** * * Registers an existing group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @return ApiResponse<Void> @@ -2444,15 +2587,16 @@ public void registerGroup(String namespace, String array, GroupRegister groupReg 0 error response - */ - public ApiResponse registerGroupWithHttpInfo(String namespace, String array, GroupRegister groupRegister) throws ApiException { - okhttp3.Call localVarCall = registerGroupValidateBeforeCall(namespace, array, groupRegister, null); + public ApiResponse registerGroupWithHttpInfo(String workspace, String teamspace, String array, GroupRegister groupRegister) throws ApiException { + okhttp3.Call localVarCall = registerGroupValidateBeforeCall(workspace, teamspace, array, groupRegister, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Registers an existing group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @param _callback The callback to be executed when the API call finishes @@ -2466,15 +2610,16 @@ public ApiResponse registerGroupWithHttpInfo(String namespace, String arra 0 error response - */ - public okhttp3.Call registerGroupAsync(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerGroupAsync(String workspace, String teamspace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerGroupValidateBeforeCall(namespace, array, groupRegister, _callback); + okhttp3.Call localVarCall = registerGroupValidateBeforeCall(workspace, teamspace, array, groupRegister, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -2489,7 +2634,7 @@ public okhttp3.Call registerGroupAsync(String namespace, String array, GroupRegi 0 error response - */ - public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupCall(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2506,9 +2651,10 @@ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, Grou Object localVarPostBody = groupSharingRequest; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/share" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2532,35 +2678,44 @@ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, Grou localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling shareGroup(Async)"); - } - + private okhttp3.Call shareGroupValidateBeforeCall(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareGroup(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling shareGroup(Async)"); } - + // verify the required parameter 'groupSharingRequest' is set if (groupSharingRequest == null) { throw new ApiException("Missing the required parameter 'groupSharingRequest' when calling shareGroup(Async)"); } + - return shareGroupCall(groupNamespace, groupName, groupSharingRequest, _callback); + okhttp3.Call localVarCall = shareGroupCall(workspace, teamspace, groupName, groupSharingRequest, _callback); + return localVarCall; } /** * * Share a group with a namespace - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2573,14 +2728,15 @@ private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String 0 error response - */ - public void shareGroup(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { - shareGroupWithHttpInfo(groupNamespace, groupName, groupSharingRequest); + public void shareGroup(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { + shareGroupWithHttpInfo(workspace, teamspace, groupName, groupSharingRequest); } /** * * Share a group with a namespace - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -2594,15 +2750,16 @@ public void shareGroup(String groupNamespace, String groupName, GroupSharingRequ 0 error response - */ - public ApiResponse shareGroupWithHttpInfo(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { - okhttp3.Call localVarCall = shareGroupValidateBeforeCall(groupNamespace, groupName, groupSharingRequest, null); + public ApiResponse shareGroupWithHttpInfo(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { + okhttp3.Call localVarCall = shareGroupValidateBeforeCall(workspace, teamspace, groupName, groupSharingRequest, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share a group with a namespace - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -2617,15 +2774,16 @@ public ApiResponse shareGroupWithHttpInfo(String groupNamespace, String gr 0 error response - */ - public okhttp3.Call shareGroupAsync(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupAsync(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareGroupValidateBeforeCall(groupNamespace, groupName, groupSharingRequest, _callback); + okhttp3.Call localVarCall = shareGroupValidateBeforeCall(workspace, teamspace, groupName, groupSharingRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @param _callback Callback for upload/download progress @@ -2639,7 +2797,7 @@ public okhttp3.Call shareGroupAsync(String groupNamespace, String groupName, Gro 0 error response - */ - public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateGroupCall(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2656,9 +2814,10 @@ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, Gro Object localVarPostBody = groupUpdate; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2682,30 +2841,39 @@ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, Gro localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling updateGroup(Async)"); - } - + private okhttp3.Call updateGroupValidateBeforeCall(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateGroup(Async)"); + } + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling updateGroup(Async)"); } + - return updateGroupCall(groupNamespace, groupName, groupUpdate, _callback); + okhttp3.Call localVarCall = updateGroupCall(workspace, teamspace, groupName, groupUpdate, _callback); + return localVarCall; } /** * * Changes attributes of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2717,14 +2885,15 @@ private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String 0 error response - */ - public void updateGroup(String groupNamespace, String groupName, GroupUpdate groupUpdate) throws ApiException { - updateGroupWithHttpInfo(groupNamespace, groupName, groupUpdate); + public void updateGroup(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate) throws ApiException { + updateGroupWithHttpInfo(workspace, teamspace, groupName, groupUpdate); } /** * * Changes attributes of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @return ApiResponse<Void> @@ -2737,15 +2906,16 @@ public void updateGroup(String groupNamespace, String groupName, GroupUpdate gro 0 error response - */ - public ApiResponse updateGroupWithHttpInfo(String groupNamespace, String groupName, GroupUpdate groupUpdate) throws ApiException { - okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupNamespace, groupName, groupUpdate, null); + public ApiResponse updateGroupWithHttpInfo(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate) throws ApiException { + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(workspace, teamspace, groupName, groupUpdate, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Changes attributes of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @param _callback The callback to be executed when the API call finishes @@ -2759,9 +2929,9 @@ public ApiResponse updateGroupWithHttpInfo(String groupNamespace, String g 0 error response - */ - public okhttp3.Call updateGroupAsync(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateGroupAsync(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupNamespace, groupName, groupUpdate, _callback); + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(workspace, teamspace, groupName, groupUpdate, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java index a7f715a..6702350 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java @@ -19,18 +19,14 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.InvitationArrayShareEmail; import io.tiledb.cloud.rest_api.model.InvitationData; -import io.tiledb.cloud.rest_api.model.InvitationFailedRecipients; import io.tiledb.cloud.rest_api.model.InvitationGroupShareEmail; import io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail; import io.tiledb.cloud.rest_api.model.SharePaymentRequest; @@ -111,7 +107,7 @@ public okhttp3.Call acceptInvitationCall(String invitation, final ApiCallback _c // create path and map variables String localVarPath = "/invitations/{invitation}" - .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())); + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -128,24 +124,28 @@ public okhttp3.Call acceptInvitationCall(String invitation, final ApiCallback _c } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call acceptInvitationValidateBeforeCall(String invitation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'invitation' is set if (invitation == null) { throw new ApiException("Missing the required parameter 'invitation' when calling acceptInvitation(Async)"); } + - return acceptInvitationCall(invitation, _callback); + okhttp3.Call localVarCall = acceptInvitationCall(invitation, _callback); + return localVarCall; } @@ -243,8 +243,8 @@ public okhttp3.Call cancelJoinOrganizationCall(String invitation, String organiz // create path and map variables String localVarPath = "/invitations/{invitation}/{organization}/join" - .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -261,29 +261,33 @@ public okhttp3.Call cancelJoinOrganizationCall(String invitation, String organiz } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call cancelJoinOrganizationValidateBeforeCall(String invitation, String organization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'invitation' is set if (invitation == null) { throw new ApiException("Missing the required parameter 'invitation' when calling cancelJoinOrganization(Async)"); } - + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling cancelJoinOrganization(Async)"); } + - return cancelJoinOrganizationCall(invitation, organization, _callback); + okhttp3.Call localVarCall = cancelJoinOrganizationCall(invitation, organization, _callback); + return localVarCall; } @@ -352,7 +356,8 @@ public okhttp3.Call cancelJoinOrganizationAsync(String invitation, String organi } /** * Build call for cancelShareArrayByInvite - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress @@ -367,7 +372,7 @@ public okhttp3.Call cancelJoinOrganizationAsync(String invitation, String organi 0 error response - */ - public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareArrayByInviteCall(String workspace, String teamspace, String invitation, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -384,10 +389,11 @@ public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invita Object localVarPostBody = null; // create path and map variables - String localVarPath = "/invitations/{invitation}/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/invitations/{invitation}/{workspace}/{teamspace}/{array}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -404,41 +410,51 @@ public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invita } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareArrayByInvite(Async)"); + private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String workspace, String teamspace, String invitation, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling cancelShareArrayByInvite(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling cancelShareArrayByInvite(Async)"); + } + // verify the required parameter 'invitation' is set if (invitation == null) { throw new ApiException("Missing the required parameter 'invitation' when calling cancelShareArrayByInvite(Async)"); } - + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling cancelShareArrayByInvite(Async)"); } + - return cancelShareArrayByInviteCall(namespace, invitation, array, _callback); + okhttp3.Call localVarCall = cancelShareArrayByInviteCall(workspace, teamspace, invitation, array, _callback); + return localVarCall; } /** * * Cancels array sharing invitation - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -451,14 +467,15 @@ private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace 0 error response - */ - public void cancelShareArrayByInvite(String namespace, String invitation, String array) throws ApiException { - cancelShareArrayByInviteWithHttpInfo(namespace, invitation, array); + public void cancelShareArrayByInvite(String workspace, String teamspace, String invitation, String array) throws ApiException { + cancelShareArrayByInviteWithHttpInfo(workspace, teamspace, invitation, array); } /** * * Cancels array sharing invitation - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<Void> @@ -472,15 +489,16 @@ public void cancelShareArrayByInvite(String namespace, String invitation, String 0 error response - */ - public ApiResponse cancelShareArrayByInviteWithHttpInfo(String namespace, String invitation, String array) throws ApiException { - okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(namespace, invitation, array, null); + public ApiResponse cancelShareArrayByInviteWithHttpInfo(String workspace, String teamspace, String invitation, String array) throws ApiException { + okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(workspace, teamspace, invitation, array, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Cancels array sharing invitation - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes @@ -495,15 +513,16 @@ public ApiResponse cancelShareArrayByInviteWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call cancelShareArrayByInviteAsync(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareArrayByInviteAsync(String workspace, String teamspace, String invitation, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(namespace, invitation, array, _callback); + okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(workspace, teamspace, invitation, array, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for cancelShareGroupByInvite - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @param _callback Callback for upload/download progress @@ -518,7 +537,7 @@ public okhttp3.Call cancelShareArrayByInviteAsync(String namespace, String invit 0 error response - */ - public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareGroupByInviteCall(String workspace, String teamspace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -535,10 +554,11 @@ public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invita Object localVarPostBody = null; // create path and map variables - String localVarPath = "/invitations/group/{invitation}/{namespace}/{group_name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) - .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); + String localVarPath = "/invitations/group/{invitation}/{workspace}/{teamspace}/{group_name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -555,41 +575,51 @@ public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invita } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareGroupByInvite(Async)"); + private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String workspace, String teamspace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling cancelShareGroupByInvite(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling cancelShareGroupByInvite(Async)"); + } + // verify the required parameter 'invitation' is set if (invitation == null) { throw new ApiException("Missing the required parameter 'invitation' when calling cancelShareGroupByInvite(Async)"); } - + // verify the required parameter 'groupName' is set if (groupName == null) { throw new ApiException("Missing the required parameter 'groupName' when calling cancelShareGroupByInvite(Async)"); } + - return cancelShareGroupByInviteCall(namespace, invitation, groupName, _callback); + okhttp3.Call localVarCall = cancelShareGroupByInviteCall(workspace, teamspace, invitation, groupName, _callback); + return localVarCall; } /** * * Cancels group sharing invitation - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -602,14 +632,15 @@ private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace 0 error response - */ - public void cancelShareGroupByInvite(String namespace, String invitation, String groupName) throws ApiException { - cancelShareGroupByInviteWithHttpInfo(namespace, invitation, groupName); + public void cancelShareGroupByInvite(String workspace, String teamspace, String invitation, String groupName) throws ApiException { + cancelShareGroupByInviteWithHttpInfo(workspace, teamspace, invitation, groupName); } /** * * Cancels group sharing invitation - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @return ApiResponse<Void> @@ -623,15 +654,16 @@ public void cancelShareGroupByInvite(String namespace, String invitation, String 0 error response - */ - public ApiResponse cancelShareGroupByInviteWithHttpInfo(String namespace, String invitation, String groupName) throws ApiException { - okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, null); + public ApiResponse cancelShareGroupByInviteWithHttpInfo(String workspace, String teamspace, String invitation, String groupName) throws ApiException { + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(workspace, teamspace, invitation, groupName, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Cancels group sharing invitation - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes @@ -646,15 +678,16 @@ public ApiResponse cancelShareGroupByInviteWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call cancelShareGroupByInviteAsync(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareGroupByInviteAsync(String workspace, String teamspace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, _callback); + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(workspace, teamspace, invitation, groupName, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for cancelSharePayment - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -667,7 +700,7 @@ public okhttp3.Call cancelShareGroupByInviteAsync(String namespace, String invit 0 error response - */ - public okhttp3.Call cancelSharePaymentCall(String namespace, String target, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelSharePaymentCall(String workspace, String teamspace, String target, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -684,9 +717,10 @@ public okhttp3.Call cancelSharePaymentCall(String namespace, String target, fina Object localVarPostBody = null; // create path and map variables - String localVarPath = "/invitations/share_payment/{namespace}/{target}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "target" + "}", localVarApiClient.escapeString(target.toString())); + String localVarPath = "/invitations/share_payment/{workspace}/{teamspace}/{target}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "target" + "\\}", localVarApiClient.escapeString(target.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -703,36 +737,46 @@ public okhttp3.Call cancelSharePaymentCall(String namespace, String target, fina } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelSharePaymentValidateBeforeCall(String namespace, String target, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling cancelSharePayment(Async)"); + private okhttp3.Call cancelSharePaymentValidateBeforeCall(String workspace, String teamspace, String target, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling cancelSharePayment(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling cancelSharePayment(Async)"); + } + // verify the required parameter 'target' is set if (target == null) { throw new ApiException("Missing the required parameter 'target' when calling cancelSharePayment(Async)"); } + - return cancelSharePaymentCall(namespace, target, _callback); + okhttp3.Call localVarCall = cancelSharePaymentCall(workspace, teamspace, target, _callback); + return localVarCall; } /** * * Revokes invitation from the source namespace to the target. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -743,14 +787,15 @@ private okhttp3.Call cancelSharePaymentValidateBeforeCall(String namespace, Stri 0 error response - */ - public void cancelSharePayment(String namespace, String target) throws ApiException { - cancelSharePaymentWithHttpInfo(namespace, target); + public void cancelSharePayment(String workspace, String teamspace, String target) throws ApiException { + cancelSharePaymentWithHttpInfo(workspace, teamspace, target); } /** * * Revokes invitation from the source namespace to the target. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -762,15 +807,16 @@ public void cancelSharePayment(String namespace, String target) throws ApiExcept 0 error response - */ - public ApiResponse cancelSharePaymentWithHttpInfo(String namespace, String target) throws ApiException { - okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(namespace, target, null); + public ApiResponse cancelSharePaymentWithHttpInfo(String workspace, String teamspace, String target) throws ApiException { + okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(workspace, teamspace, target, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Revokes invitation from the source namespace to the target. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -783,9 +829,9 @@ public ApiResponse cancelSharePaymentWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call cancelSharePaymentAsync(String namespace, String target, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelSharePaymentAsync(String workspace, String teamspace, String target, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(namespace, target, _callback); + okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(workspace, teamspace, target, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -886,19 +932,23 @@ public okhttp3.Call fetchInvitationsCall(String organization, String array, Stri } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call fetchInvitationsValidateBeforeCall(String organization, String array, String group, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { - return fetchInvitationsCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); + + + okhttp3.Call localVarCall = fetchInvitationsCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); + return localVarCall; } @@ -1025,7 +1075,7 @@ public okhttp3.Call joinOrganizationCall(String organization, InvitationOrganiza // create path and map variables String localVarPath = "/invitations/{organization}/join" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1049,23 +1099,26 @@ public okhttp3.Call joinOrganizationCall(String organization, InvitationOrganiza localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call joinOrganizationValidateBeforeCall(String organization, InvitationOrganizationJoinEmail emailInvite, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling joinOrganization(Async)"); } - + // verify the required parameter 'emailInvite' is set if (emailInvite == null) { throw new ApiException("Missing the required parameter 'emailInvite' when calling joinOrganization(Async)"); } + - return joinOrganizationCall(organization, emailInvite, _callback); + okhttp3.Call localVarCall = joinOrganizationCall(organization, emailInvite, _callback); + return localVarCall; } @@ -1137,7 +1190,8 @@ public okhttp3.Call joinOrganizationAsync(String organization, InvitationOrganiz } /** * Build call for shareArrayByInvite - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @param _callback Callback for upload/download progress @@ -1153,7 +1207,7 @@ public okhttp3.Call joinOrganizationAsync(String organization, InvitationOrganiz 0 error response - */ - public okhttp3.Call shareArrayByInviteCall(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayByInviteCall(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1170,9 +1224,10 @@ public okhttp3.Call shareArrayByInviteCall(String namespace, String array, Invit Object localVarPostBody = emailInvite; // create path and map variables - String localVarPath = "/invitations/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/invitations/{workspace}/{teamspace}/{array}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1196,35 +1251,44 @@ public okhttp3.Call shareArrayByInviteCall(String namespace, String array, Invit localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareArrayByInvite(Async)"); + private okhttp3.Call shareArrayByInviteValidateBeforeCall(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareArrayByInvite(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareArrayByInvite(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling shareArrayByInvite(Async)"); } - + // verify the required parameter 'emailInvite' is set if (emailInvite == null) { throw new ApiException("Missing the required parameter 'emailInvite' when calling shareArrayByInvite(Async)"); } + - return shareArrayByInviteCall(namespace, array, emailInvite, _callback); + okhttp3.Call localVarCall = shareArrayByInviteCall(workspace, teamspace, array, emailInvite, _callback); + return localVarCall; } /** * * Sends email to multiple recipients with sharing information regarding an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1238,14 +1302,15 @@ private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, Stri 0 error response - */ - public void shareArrayByInvite(String namespace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { - shareArrayByInviteWithHttpInfo(namespace, array, emailInvite); + public void shareArrayByInvite(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { + shareArrayByInviteWithHttpInfo(workspace, teamspace, array, emailInvite); } /** * * Sends email to multiple recipients with sharing information regarding an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @return ApiResponse<Void> @@ -1260,15 +1325,16 @@ public void shareArrayByInvite(String namespace, String array, InvitationArraySh 0 error response - */ - public ApiResponse shareArrayByInviteWithHttpInfo(String namespace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { - okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(namespace, array, emailInvite, null); + public ApiResponse shareArrayByInviteWithHttpInfo(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(workspace, teamspace, array, emailInvite, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Sends email to multiple recipients with sharing information regarding an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @param _callback The callback to be executed when the API call finishes @@ -1284,15 +1350,16 @@ public ApiResponse shareArrayByInviteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call shareArrayByInviteAsync(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayByInviteAsync(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(namespace, array, emailInvite, _callback); + okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(workspace, teamspace, array, emailInvite, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareGroupByInvite - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @param _callback Callback for upload/download progress @@ -1308,7 +1375,7 @@ public okhttp3.Call shareArrayByInviteAsync(String namespace, String array, Invi 0 error response - */ - public okhttp3.Call shareGroupByInviteCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupByInviteCall(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1325,9 +1392,10 @@ public okhttp3.Call shareGroupByInviteCall(String namespace, String group, Invit Object localVarPostBody = emailInvite; // create path and map variables - String localVarPath = "/invitations/group/{namespace}/{group}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())); + String localVarPath = "/invitations/group/{workspace}/{teamspace}/{group}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1351,35 +1419,44 @@ public okhttp3.Call shareGroupByInviteCall(String namespace, String group, Invit localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareGroupByInvite(Async)"); + private okhttp3.Call shareGroupByInviteValidateBeforeCall(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareGroupByInvite(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareGroupByInvite(Async)"); + } + // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling shareGroupByInvite(Async)"); } - + // verify the required parameter 'emailInvite' is set if (emailInvite == null) { throw new ApiException("Missing the required parameter 'emailInvite' when calling shareGroupByInvite(Async)"); } + - return shareGroupByInviteCall(namespace, group, emailInvite, _callback); + okhttp3.Call localVarCall = shareGroupByInviteCall(workspace, teamspace, group, emailInvite, _callback); + return localVarCall; } /** * * Sends email to multiple recipients with sharing information regarding a group - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1393,14 +1470,15 @@ private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, Stri 0 error response - */ - public void shareGroupByInvite(String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { - shareGroupByInviteWithHttpInfo(namespace, group, emailInvite); + public void shareGroupByInvite(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + shareGroupByInviteWithHttpInfo(workspace, teamspace, group, emailInvite); } /** * * Sends email to multiple recipients with sharing information regarding a group - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @return ApiResponse<Void> @@ -1415,15 +1493,16 @@ public void shareGroupByInvite(String namespace, String group, InvitationGroupSh 0 error response - */ - public ApiResponse shareGroupByInviteWithHttpInfo(String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { - okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, null); + public ApiResponse shareGroupByInviteWithHttpInfo(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(workspace, teamspace, group, emailInvite, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Sends email to multiple recipients with sharing information regarding a group - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @param _callback The callback to be executed when the API call finishes @@ -1439,15 +1518,16 @@ public ApiResponse shareGroupByInviteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call shareGroupByInviteAsync(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupByInviteAsync(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, _callback); + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(workspace, teamspace, group, emailInvite, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for sharePayment - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1462,7 +1542,7 @@ public okhttp3.Call shareGroupByInviteAsync(String namespace, String group, Invi 0 error response - */ - public okhttp3.Call sharePaymentCall(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sharePaymentCall(String workspace, String teamspace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1479,8 +1559,9 @@ public okhttp3.Call sharePaymentCall(String namespace, SharePaymentRequest email Object localVarPostBody = emailInvite; // create path and map variables - String localVarPath = "/invitations/share_payment/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/invitations/share_payment/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1504,25 +1585,34 @@ public okhttp3.Call sharePaymentCall(String namespace, SharePaymentRequest email localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call sharePaymentValidateBeforeCall(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling sharePayment(Async)"); + private okhttp3.Call sharePaymentValidateBeforeCall(String workspace, String teamspace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling sharePayment(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling sharePayment(Async)"); } + - return sharePaymentCall(namespace, emailInvite, _callback); + okhttp3.Call localVarCall = sharePaymentCall(workspace, teamspace, emailInvite, _callback); + return localVarCall; } /** * * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1535,14 +1625,15 @@ private okhttp3.Call sharePaymentValidateBeforeCall(String namespace, SharePayme 0 error response - */ - public void sharePayment(String namespace, SharePaymentRequest emailInvite) throws ApiException { - sharePaymentWithHttpInfo(namespace, emailInvite); + public void sharePayment(String workspace, String teamspace, SharePaymentRequest emailInvite) throws ApiException { + sharePaymentWithHttpInfo(workspace, teamspace, emailInvite); } /** * * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1556,15 +1647,16 @@ public void sharePayment(String namespace, SharePaymentRequest emailInvite) thro 0 error response - */ - public ApiResponse sharePaymentWithHttpInfo(String namespace, SharePaymentRequest emailInvite) throws ApiException { - okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(namespace, emailInvite, null); + public ApiResponse sharePaymentWithHttpInfo(String workspace, String teamspace, SharePaymentRequest emailInvite) throws ApiException { + okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(workspace, teamspace, emailInvite, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1579,9 +1671,9 @@ public ApiResponse sharePaymentWithHttpInfo(String namespace, SharePayment 0 error response - */ - public okhttp3.Call sharePaymentAsync(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sharePaymentAsync(String workspace, String teamspace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(namespace, emailInvite, _callback); + okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(workspace, teamspace, emailInvite, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java index 676806c..11d9392 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -28,7 +26,7 @@ import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; -import io.tiledb.cloud.rest_api.model.Error; + import java.io.File; import io.tiledb.cloud.rest_api.model.FileUploaded; import io.tiledb.cloud.rest_api.model.NotebookCopied; @@ -80,7 +78,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getNotebookServerStatus - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -94,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookServerStatusCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +110,9 @@ public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallb Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/server/{namespace}/status" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/notebooks/server/{workspace}/{teamspace}/status" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -129,31 +129,41 @@ public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallb } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getNotebookServerStatus(Async)"); + private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getNotebookServerStatus(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getNotebookServerStatus(Async)"); } + - return getNotebookServerStatusCall(namespace, _callback); + okhttp3.Call localVarCall = getNotebookServerStatusCall(workspace, teamspace, _callback); + return localVarCall; } /** * * Get status of the notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return NotebookStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -166,15 +176,16 @@ private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace, 0 error response - */ - public NotebookStatus getNotebookServerStatus(String namespace) throws ApiException { - ApiResponse localVarResp = getNotebookServerStatusWithHttpInfo(namespace); + public NotebookStatus getNotebookServerStatus(String workspace, String teamspace) throws ApiException { + ApiResponse localVarResp = getNotebookServerStatusWithHttpInfo(workspace, teamspace); return localVarResp.getData(); } /** * * Get status of the notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return ApiResponse<NotebookStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -187,8 +198,8 @@ public NotebookStatus getNotebookServerStatus(String namespace) throws ApiExcept 0 error response - */ - public ApiResponse getNotebookServerStatusWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(namespace, null); + public ApiResponse getNotebookServerStatusWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(workspace, teamspace, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -196,7 +207,8 @@ public ApiResponse getNotebookServerStatusWithHttpInfo(String na /** * (asynchronously) * Get status of the notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -210,16 +222,17 @@ public ApiResponse getNotebookServerStatusWithHttpInfo(String na 0 error response - */ - public okhttp3.Call getNotebookServerStatusAsync(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookServerStatusAsync(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(workspace, teamspace, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleCopyNotebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -235,7 +248,7 @@ public okhttp3.Call getNotebookServerStatusAsync(String namespace, final ApiCall 0 error response - */ - public okhttp3.Call handleCopyNotebookCall(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyNotebookCall(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -252,9 +265,10 @@ public okhttp3.Call handleCopyNotebookCall(String namespace, String array, Noteb Object localVarPostBody = notebookCopy; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/copy" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/copy" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -286,35 +300,44 @@ public okhttp3.Call handleCopyNotebookCall(String namespace, String array, Noteb localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleCopyNotebook(Async)"); + private okhttp3.Call handleCopyNotebookValidateBeforeCall(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleCopyNotebook(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleCopyNotebook(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling handleCopyNotebook(Async)"); } - + // verify the required parameter 'notebookCopy' is set if (notebookCopy == null) { throw new ApiException("Missing the required parameter 'notebookCopy' when calling handleCopyNotebook(Async)"); } + - return handleCopyNotebookCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + okhttp3.Call localVarCall = handleCopyNotebookCall(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + return localVarCall; } /** * * Copy a tiledb notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -329,15 +352,16 @@ private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, Stri 0 error response - */ - public NotebookCopied handleCopyNotebook(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = handleCopyNotebookWithHttpInfo(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + public NotebookCopied handleCopyNotebook(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = handleCopyNotebookWithHttpInfo(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); return localVarResp.getData(); } /** * * Copy a tiledb notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -352,8 +376,8 @@ public NotebookCopied handleCopyNotebook(String namespace, String array, Noteboo 0 error response - */ - public ApiResponse handleCopyNotebookWithHttpInfo(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); + public ApiResponse handleCopyNotebookWithHttpInfo(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -361,7 +385,8 @@ public ApiResponse handleCopyNotebookWithHttpInfo(String namespa /** * (asynchronously) * Copy a tiledb notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -377,16 +402,17 @@ public ApiResponse handleCopyNotebookWithHttpInfo(String namespa 0 error response - */ - public okhttp3.Call handleCopyNotebookAsync(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyNotebookAsync(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleUploadNotebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -402,7 +428,7 @@ public okhttp3.Call handleCopyNotebookAsync(String namespace, String array, Note 0 error response - */ - public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadNotebookCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -419,8 +445,9 @@ public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/{namespace}/upload" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/notebooks/{workspace}/{teamspace}/upload" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -460,30 +487,39 @@ public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, S localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadNotebook(Async)"); + private okhttp3.Call handleUploadNotebookValidateBeforeCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleUploadNotebook(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleUploadNotebook(Async)"); + } + // verify the required parameter 'inputFile' is set if (inputFile == null) { throw new ApiException("Missing the required parameter 'inputFile' when calling handleUploadNotebook(Async)"); } + - return handleUploadNotebookCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + okhttp3.Call localVarCall = handleUploadNotebookCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + return localVarCall; } /** * * Upload a notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -498,15 +534,16 @@ private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, Fi 0 error response - */ - public FileUploaded handleUploadNotebook(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - ApiResponse localVarResp = handleUploadNotebookWithHttpInfo(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + public FileUploaded handleUploadNotebook(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + ApiResponse localVarResp = handleUploadNotebookWithHttpInfo(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); return localVarResp.getData(); } /** * * Upload a notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -521,8 +558,8 @@ public FileUploaded handleUploadNotebook(String namespace, File inputFile, Strin 0 error response - */ - public ApiResponse handleUploadNotebookWithHttpInfo(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); + public ApiResponse handleUploadNotebookWithHttpInfo(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -530,7 +567,8 @@ public ApiResponse handleUploadNotebookWithHttpInfo(String namespa /** * (asynchronously) * Upload a notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -546,16 +584,17 @@ public ApiResponse handleUploadNotebookWithHttpInfo(String namespa 0 error response - */ - public okhttp3.Call handleUploadNotebookAsync(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadNotebookAsync(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for shutdownNotebookServer - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -568,7 +607,7 @@ public okhttp3.Call handleUploadNotebookAsync(String namespace, File inputFile, 0 error response - */ - public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shutdownNotebookServerCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -585,8 +624,9 @@ public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallba Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/server/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/notebooks/server/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -603,31 +643,41 @@ public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallba } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shutdownNotebookServer(Async)"); + private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shutdownNotebookServer(Async)"); } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shutdownNotebookServer(Async)"); + } + - return shutdownNotebookServerCall(namespace, _callback); + okhttp3.Call localVarCall = shutdownNotebookServerCall(workspace, teamspace, _callback); + return localVarCall; } /** * * Shutdown a notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -638,14 +688,15 @@ private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String namespace,
0 error response -
*/ - public void shutdownNotebookServer(String namespace) throws ApiException { - shutdownNotebookServerWithHttpInfo(namespace); + public void shutdownNotebookServer(String workspace, String teamspace) throws ApiException { + shutdownNotebookServerWithHttpInfo(workspace, teamspace); } /** * * Shutdown a notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -657,15 +708,16 @@ public void shutdownNotebookServer(String namespace) throws ApiException { 0 error response - */ - public ApiResponse shutdownNotebookServerWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(namespace, null); + public ApiResponse shutdownNotebookServerWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(workspace, teamspace, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Shutdown a notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -678,15 +730,16 @@ public ApiResponse shutdownNotebookServerWithHttpInfo(String namespace) th 0 error response - */ - public okhttp3.Call shutdownNotebookServerAsync(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shutdownNotebookServerAsync(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(workspace, teamspace, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateNotebookName - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @param _callback Callback for upload/download progress @@ -700,7 +753,7 @@ public okhttp3.Call shutdownNotebookServerAsync(String namespace, final ApiCallb 0 error response - */ - public okhttp3.Call updateNotebookNameCall(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNotebookNameCall(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -717,9 +770,10 @@ public okhttp3.Call updateNotebookNameCall(String namespace, String array, Array Object localVarPostBody = notebookMetadata; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/rename" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/rename" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -743,35 +797,44 @@ public okhttp3.Call updateNotebookNameCall(String namespace, String array, Array localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateNotebookName(Async)"); + private okhttp3.Call updateNotebookNameValidateBeforeCall(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateNotebookName(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateNotebookName(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling updateNotebookName(Async)"); } - + // verify the required parameter 'notebookMetadata' is set if (notebookMetadata == null) { throw new ApiException("Missing the required parameter 'notebookMetadata' when calling updateNotebookName(Async)"); } + - return updateNotebookNameCall(namespace, array, notebookMetadata, _callback); + okhttp3.Call localVarCall = updateNotebookNameCall(workspace, teamspace, array, notebookMetadata, _callback); + return localVarCall; } /** * * update name on a notebok, moving related S3 object to new location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -783,14 +846,15 @@ private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, Stri 0 error response - */ - public void updateNotebookName(String namespace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { - updateNotebookNameWithHttpInfo(namespace, array, notebookMetadata); + public void updateNotebookName(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { + updateNotebookNameWithHttpInfo(workspace, teamspace, array, notebookMetadata); } /** * * update name on a notebok, moving related S3 object to new location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @return ApiResponse<Void> @@ -803,15 +867,16 @@ public void updateNotebookName(String namespace, String array, ArrayInfoUpdate n 0 error response - */ - public ApiResponse updateNotebookNameWithHttpInfo(String namespace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { - okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(namespace, array, notebookMetadata, null); + public ApiResponse updateNotebookNameWithHttpInfo(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { + okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(workspace, teamspace, array, notebookMetadata, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update name on a notebok, moving related S3 object to new location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @param _callback The callback to be executed when the API call finishes @@ -825,9 +890,9 @@ public ApiResponse updateNotebookNameWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call updateNotebookNameAsync(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNotebookNameAsync(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(namespace, array, notebookMetadata, _callback); + okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(workspace, teamspace, array, notebookMetadata, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java index e32dc2f..e423a42 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -28,7 +26,6 @@ import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.Error; import java.lang.reflect.Type; import java.util.ArrayList; @@ -74,8 +71,9 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for notebooksNamespaceArrayEndTimestampsGet - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for notebooksWorkspaceTeamspaceArrayEndTimestampsGet + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -90,7 +88,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayEndTimestampsGetCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -107,9 +105,10 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/end_timestamps" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/end_timestamps" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -134,36 +133,46 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayEndTimestampsGet(Async)"); + private okhttp3.Call notebooksWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling notebooksWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling notebooksWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayEndTimestampsGet(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling notebooksWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } + - return notebooksNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayEndTimestampsGetCall(workspace, teamspace, array, page, perPage, _callback); + return localVarCall; } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -177,15 +186,16 @@ private okhttp3.Call notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(S 0 error response - */ - public ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(String namespace, String array, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = notebooksNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + public ArrayEndTimestampData notebooksWorkspaceTeamspaceArrayEndTimestampsGet(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = notebooksWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(workspace, teamspace, array, page, perPage); return localVarResp.getData(); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -199,8 +209,8 @@ public ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(String name 0 error response - */ - public ApiResponse notebooksNamespaceArrayEndTimestampsGetWithHttpInfo(String namespace, String array, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + public ApiResponse notebooksWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -208,7 +218,8 @@ public ApiResponse notebooksNamespaceArrayEndTimestampsGe /** * (asynchronously) * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -223,16 +234,17 @@ public ApiResponse notebooksNamespaceArrayEndTimestampsGe 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetAsync(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayEndTimestampsGetAsync(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for notebooksNamespaceArrayPrunePost - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for notebooksWorkspaceTeamspaceArrayPrunePost + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @param _callback Callback for upload/download progress @@ -246,7 +258,7 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetAsync(String namespac 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayPrunePostCall(String workspace, String teamspace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -263,9 +275,10 @@ public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/prune" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/prune" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -286,36 +299,46 @@ public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, Strin } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call notebooksNamespaceArrayPrunePostValidateBeforeCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayPrunePost(Async)"); + private okhttp3.Call notebooksWorkspaceTeamspaceArrayPrunePostValidateBeforeCall(String workspace, String teamspace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling notebooksWorkspaceTeamspaceArrayPrunePost(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling notebooksWorkspaceTeamspaceArrayPrunePost(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayPrunePost(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling notebooksWorkspaceTeamspaceArrayPrunePost(Async)"); } + - return notebooksNamespaceArrayPrunePostCall(namespace, array, keepVersions, _callback); + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayPrunePostCall(workspace, teamspace, array, keepVersions, _callback); + return localVarCall; } /** * * prune fragments of the notebook - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -327,14 +350,15 @@ private okhttp3.Call notebooksNamespaceArrayPrunePostValidateBeforeCall(String n 0 error response - */ - public void notebooksNamespaceArrayPrunePost(String namespace, String array, Integer keepVersions) throws ApiException { - notebooksNamespaceArrayPrunePostWithHttpInfo(namespace, array, keepVersions); + public void notebooksWorkspaceTeamspaceArrayPrunePost(String workspace, String teamspace, String array, Integer keepVersions) throws ApiException { + notebooksWorkspaceTeamspaceArrayPrunePostWithHttpInfo(workspace, teamspace, array, keepVersions); } /** * * prune fragments of the notebook - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @return ApiResponse<Void> @@ -347,15 +371,16 @@ public void notebooksNamespaceArrayPrunePost(String namespace, String array, Int 0 error response - */ - public ApiResponse notebooksNamespaceArrayPrunePostWithHttpInfo(String namespace, String array, Integer keepVersions) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, null); + public ApiResponse notebooksWorkspaceTeamspaceArrayPrunePostWithHttpInfo(String workspace, String teamspace, String array, Integer keepVersions) throws ApiException { + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayPrunePostValidateBeforeCall(workspace, teamspace, array, keepVersions, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * prune fragments of the notebook - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @param _callback The callback to be executed when the API call finishes @@ -369,9 +394,9 @@ public ApiResponse notebooksNamespaceArrayPrunePostWithHttpInfo(String nam 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayPrunePostAsync(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayPrunePostAsync(String workspace, String teamspace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, _callback); + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayPrunePostValidateBeforeCall(workspace, teamspace, array, keepVersions, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java index 75fc700..677c09a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -29,7 +27,6 @@ import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; import io.tiledb.cloud.rest_api.model.DomainCheckResult; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.Organization; import io.tiledb.cloud.rest_api.model.OrganizationUpdate; import io.tiledb.cloud.rest_api.model.OrganizationUser; @@ -81,7 +78,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for addAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -94,7 +92,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +109,9 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -136,30 +135,39 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); - } - + private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addAWSAccessCredentials(Async)"); + } + // verify the required parameter 'awsAccessCredentials' is set if (awsAccessCredentials == null) { throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); } + - return addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = addAWSAccessCredentialsCall(workspace, teamspace, awsAccessCredentials, _callback); + return localVarCall; } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -170,14 +178,15 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, 0 error response - */ - public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); + public void addAWSAccessCredentials(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + addAWSAccessCredentialsWithHttpInfo(workspace, teamspace, awsAccessCredentials); } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -189,15 +198,16 @@ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAc 0 error response - */ - public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); + public ApiResponse addAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -210,9 +220,9 @@ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, A 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsAsync(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -249,7 +259,7 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU // create path and map variables String localVarPath = "/organizations/{organization}/user" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -273,23 +283,26 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling addUserToOrganization(Async)"); } - + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling addUserToOrganization(Async)"); } + - return addUserToOrganizationCall(organization, user, _callback); + okhttp3.Call localVarCall = addUserToOrganizationCall(organization, user, _callback); + return localVarCall; } @@ -355,7 +368,8 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization } /** * Build call for checkAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -367,7 +381,7 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -384,8 +398,9 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -402,31 +417,41 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); + private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentials(Async)"); } + - return checkAWSAccessCredentialsCall(namespace, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsCall(workspace, teamspace, _callback); + return localVarCall; } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return List<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -437,15 +462,16 @@ private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespac 0 error response - */ - public List checkAWSAccessCredentials(String namespace) throws ApiException { - ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); + public List checkAWSAccessCredentials(String workspace, String teamspace) throws ApiException { + ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(workspace, teamspace); return localVarResp.getData(); } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return ApiResponse<List<AWSAccessCredentials>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -456,8 +482,8 @@ public List checkAWSAccessCredentials(String namespace) th 0 error response - */ - public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); + public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -465,7 +491,8 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp /** * (asynchronously) * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -477,16 +504,17 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsAsync(String workspace, String teamspace, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for checkAWSAccessCredentialsByName - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -499,7 +527,7 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -516,9 +544,10 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -535,36 +564,46 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); - } - + private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentialsByName(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentialsByName(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); } + - return checkAWSAccessCredentialsByNameCall(namespace, name, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @return AWSAccessCredentials * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -576,15 +615,16 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na 0 error response - */ - public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) throws ApiException { - ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); + public AWSAccessCredentials checkAWSAccessCredentialsByName(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @return ApiResponse<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -596,8 +636,8 @@ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, St 0 error response - */ - public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); + public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -605,7 +645,8 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp /** * (asynchronously) * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -618,9 +659,9 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -657,8 +698,8 @@ public okhttp3.Call checkSSODomainCall(String organization, String uuid, final A // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}/run_check" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -675,29 +716,33 @@ public okhttp3.Call checkSSODomainCall(String organization, String uuid, final A } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call checkSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling checkSSODomain(Async)"); } - + // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling checkSSODomain(Async)"); } + - return checkSSODomainCall(organization, uuid, _callback); + okhttp3.Call localVarCall = checkSSODomainCall(organization, uuid, _callback); + return localVarCall; } @@ -817,18 +862,21 @@ public okhttp3.Call createOrganizationCall(Organization organization, final ApiC localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createOrganizationValidateBeforeCall(Organization organization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling createOrganization(Async)"); } + - return createOrganizationCall(organization, _callback); + okhttp3.Call localVarCall = createOrganizationCall(organization, _callback); + return localVarCall; } @@ -921,7 +969,7 @@ public okhttp3.Call createSSODomainCall(String organization, SSODomainConfig con // create path and map variables String localVarPath = "/organizations/{organization}/sso_domain" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -945,23 +993,26 @@ public okhttp3.Call createSSODomainCall(String organization, SSODomainConfig con localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSSODomainValidateBeforeCall(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling createSSODomain(Async)"); } - + // verify the required parameter 'config' is set if (config == null) { throw new ApiException("Missing the required parameter 'config' when calling createSSODomain(Async)"); } + - return createSSODomainCall(organization, config, _callback); + okhttp3.Call localVarCall = createSSODomainCall(organization, config, _callback); + return localVarCall; } @@ -1028,7 +1079,8 @@ public okhttp3.Call createSSODomainAsync(String organization, SSODomainConfig co } /** * Build call for deleteAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1041,7 +1093,7 @@ public okhttp3.Call createSSODomainAsync(String organization, SSODomainConfig co 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1058,9 +1110,10 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1077,36 +1130,46 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); - } - + private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteAWSAccessCredentials(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); } + - return deleteAWSAccessCredentialsCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteAWSAccessCredentialsCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1117,14 +1180,15 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { - deleteAWSAccessCredentialsWithHttpInfo(namespace, name); + public void deleteAWSAccessCredentials(String workspace, String teamspace, String name) throws ApiException { + deleteAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1136,15 +1200,16 @@ public void deleteAWSAccessCredentials(String namespace, String name) throws Api 0 error response - */ - public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); + public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1157,9 +1222,9 @@ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -1195,7 +1260,7 @@ public okhttp3.Call deleteOrganizationCall(String organization, final ApiCallbac // create path and map variables String localVarPath = "/organizations/{organization}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1212,24 +1277,28 @@ public okhttp3.Call deleteOrganizationCall(String organization, final ApiCallbac } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteOrganization(Async)"); } + - return deleteOrganizationCall(organization, _callback); + okhttp3.Call localVarCall = deleteOrganizationCall(organization, _callback); + return localVarCall; } @@ -1322,8 +1391,8 @@ public okhttp3.Call deleteSSODomainCall(String organization, String uuid, final // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1340,29 +1409,33 @@ public okhttp3.Call deleteSSODomainCall(String organization, String uuid, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteSSODomain(Async)"); } - + // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling deleteSSODomain(Async)"); } + - return deleteSSODomainCall(organization, uuid, _callback); + okhttp3.Call localVarCall = deleteSSODomainCall(organization, uuid, _callback); + return localVarCall; } @@ -1456,8 +1529,8 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1474,29 +1547,33 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)"); } - + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)"); } + - return deleteUserFromOrganizationCall(organization, username, _callback); + okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback); + return localVarCall; } @@ -1609,19 +1686,23 @@ public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllOrganizationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAllOrganizationsCall(_callback); + + + okhttp3.Call localVarCall = getAllOrganizationsCall(_callback); + return localVarCall; } @@ -1722,7 +1803,7 @@ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _ // create path and map variables String localVarPath = "/organizations/{organization}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1739,24 +1820,28 @@ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _ } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getOrganization(Async)"); } + - return getOrganizationCall(organization, _callback); + okhttp3.Call localVarCall = getOrganizationCall(organization, _callback); + return localVarCall; } @@ -1858,8 +1943,8 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1876,29 +1961,33 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getOrganizationUser(Async)"); } - + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)"); } + - return getOrganizationUserCall(organization, username, _callback); + okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); + return localVarCall; } @@ -2001,8 +2090,8 @@ public okhttp3.Call getSSODomainCall(String organization, String uuid, final Api // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2019,29 +2108,33 @@ public okhttp3.Call getSSODomainCall(String organization, String uuid, final Api } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getSSODomain(Async)"); } - + // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling getSSODomain(Async)"); } + - return getSSODomainCall(organization, uuid, _callback); + okhttp3.Call localVarCall = getSSODomainCall(organization, uuid, _callback); + return localVarCall; } @@ -2137,7 +2230,7 @@ public okhttp3.Call getSSODomainsCall(String organization, final ApiCallback _ca // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2154,24 +2247,28 @@ public okhttp3.Call getSSODomainsCall(String organization, final ApiCallback _ca } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSSODomainsValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getSSODomains(Async)"); } + - return getSSODomainsCall(organization, _callback); + okhttp3.Call localVarCall = getSSODomainsCall(organization, _callback); + return localVarCall; } @@ -2235,7 +2332,8 @@ public okhttp3.Call getSSODomainsAsync(String organization, final ApiCallback 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2266,9 +2364,10 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2292,35 +2391,44 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); - } - + private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateAWSAccessCredentials(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling updateAWSAccessCredentials(Async)"); } - + // verify the required parameter 'awsAccessCredentials' is set if (awsAccessCredentials == null) { throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); } + - return updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = updateAWSAccessCredentialsCall(workspace, teamspace, name, awsAccessCredentials, _callback); + return localVarCall; } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2332,14 +2440,15 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void updateAWSAccessCredentials(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); + public void updateAWSAccessCredentials(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + updateAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name, awsAccessCredentials); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @return ApiResponse<Void> @@ -2352,15 +2461,16 @@ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessC 0 error response - */ - public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); + public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback The callback to be executed when the API call finishes @@ -2374,9 +2484,9 @@ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsAsync(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -2413,7 +2523,7 @@ public okhttp3.Call updateOrganizationCall(String organization, OrganizationUpda // create path and map variables String localVarPath = "/organizations/{organization}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2437,23 +2547,26 @@ public okhttp3.Call updateOrganizationCall(String organization, OrganizationUpda localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateOrganizationValidateBeforeCall(String organization, OrganizationUpdate organizationDetails, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateOrganization(Async)"); } - + // verify the required parameter 'organizationDetails' is set if (organizationDetails == null) { throw new ApiException("Missing the required parameter 'organizationDetails' when calling updateOrganization(Async)"); } + - return updateOrganizationCall(organization, organizationDetails, _callback); + okhttp3.Call localVarCall = updateOrganizationCall(organization, organizationDetails, _callback); + return localVarCall; } @@ -2550,8 +2663,8 @@ public okhttp3.Call updateSSODomainCall(String organization, String uuid, SSODom // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2575,28 +2688,31 @@ public okhttp3.Call updateSSODomainCall(String organization, String uuid, SSODom localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateSSODomainValidateBeforeCall(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateSSODomain(Async)"); } - + // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling updateSSODomain(Async)"); } - + // verify the required parameter 'config' is set if (config == null) { throw new ApiException("Missing the required parameter 'config' when calling updateSSODomain(Async)"); } + - return updateSSODomainCall(organization, uuid, config, _callback); + okhttp3.Call localVarCall = updateSSODomainCall(organization, uuid, config, _callback); + return localVarCall; } @@ -2698,8 +2814,8 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2723,28 +2839,31 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateUserInOrganization(Async)"); } - + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUserInOrganization(Async)"); } - + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling updateUserInOrganization(Async)"); } + - return updateUserInOrganizationCall(organization, username, user, _callback); + okhttp3.Call localVarCall = updateUserInOrganizationCall(organization, username, user, _callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java index fff1ee2..7187ed1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import java.io.File; import io.tiledb.cloud.rest_api.model.Query; import io.tiledb.cloud.rest_api.model.QueryJson; @@ -77,7 +74,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for finalizeQuery - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -96,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call finalizeQueryCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call finalizeQueryCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -113,9 +111,10 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ Object localVarPostBody = query; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/finalize" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/finalize" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -140,8 +139,7 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ } final String[] localVarAccepts = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -149,53 +147,61 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ } final String[] localVarContentTypes = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling finalizeQuery(Async)"); + private okhttp3.Call finalizeQueryValidateBeforeCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling finalizeQuery(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling finalizeQuery(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling finalizeQuery(Async)"); } - + // verify the required parameter 'type' is set if (type == null) { throw new ApiException("Missing the required parameter 'type' when calling finalizeQuery(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling finalizeQuery(Async)"); } - + // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling finalizeQuery(Async)"); } + - return finalizeQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = finalizeQueryCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); + return localVarCall; } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -213,15 +219,16 @@ private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String ar 0 error response - */ - public Query finalizeQuery(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - ApiResponse localVarResp = finalizeQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + public Query finalizeQuery(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + ApiResponse localVarResp = finalizeQueryWithHttpInfo(workspace, teamspace, array, type, contentType, query, xPayer, openAt); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -239,8 +246,8 @@ public Query finalizeQuery(String namespace, String array, String type, String c 0 error response - */ - public ApiResponse finalizeQueryWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + public ApiResponse finalizeQueryWithHttpInfo(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -248,7 +255,8 @@ public ApiResponse finalizeQueryWithHttpInfo(String namespace, String arr /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -267,16 +275,17 @@ public ApiResponse finalizeQueryWithHttpInfo(String namespace, String arr 0 error response - */ - public okhttp3.Call finalizeQueryAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call finalizeQueryAsync(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getEstResultSizes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -295,7 +304,7 @@ public okhttp3.Call finalizeQueryAsync(String namespace, String array, String ty 0 error response - */ - public okhttp3.Call getEstResultSizesCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEstResultSizesCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -312,9 +321,10 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String Object localVarPostBody = query; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/est_result_sizes" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/est_result_sizes" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -339,8 +349,7 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String } final String[] localVarAccepts = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -348,53 +357,61 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String } final String[] localVarContentTypes = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getEstResultSizes(Async)"); + private okhttp3.Call getEstResultSizesValidateBeforeCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getEstResultSizes(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getEstResultSizes(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getEstResultSizes(Async)"); } - + // verify the required parameter 'type' is set if (type == null) { throw new ApiException("Missing the required parameter 'type' when calling getEstResultSizes(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling getEstResultSizes(Async)"); } - + // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling getEstResultSizes(Async)"); } + - return getEstResultSizesCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = getEstResultSizesCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); + return localVarCall; } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -412,15 +429,16 @@ private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, Strin 0 error response - */ - public Query getEstResultSizes(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - ApiResponse localVarResp = getEstResultSizesWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + public Query getEstResultSizes(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + ApiResponse localVarResp = getEstResultSizesWithHttpInfo(workspace, teamspace, array, type, contentType, query, xPayer, openAt); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -438,8 +456,8 @@ public Query getEstResultSizes(String namespace, String array, String type, Stri 0 error response - */ - public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + public ApiResponse getEstResultSizesWithHttpInfo(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -447,7 +465,8 @@ public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -466,16 +485,17 @@ public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call getEstResultSizesAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEstResultSizesAsync(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getFile - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -490,7 +510,7 @@ public okhttp3.Call getEstResultSizesAsync(String namespace, String array, Strin 0 error response - */ - public okhttp3.Call getFileCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFileCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -507,9 +527,10 @@ public okhttp3.Call getFileCall(String namespace, String array, String contentTy Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/get_file" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/get_file" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -534,41 +555,51 @@ public okhttp3.Call getFileCall(String namespace, String array, String contentTy } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getFile(Async)"); + private okhttp3.Call getFileValidateBeforeCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getFile(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getFile(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getFile(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling getFile(Async)"); } + - return getFileCall(namespace, array, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getFileCall(workspace, teamspace, array, contentType, xPayer, _callback); + return localVarCall; } /** * * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -582,15 +613,16 @@ private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, S 0 error response - */ - public File getFile(String namespace, String array, String contentType, String xPayer) throws ApiException { - ApiResponse localVarResp = getFileWithHttpInfo(namespace, array, contentType, xPayer); + public File getFile(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getFileWithHttpInfo(workspace, teamspace, array, contentType, xPayer); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -604,8 +636,8 @@ public File getFile(String namespace, String array, String contentType, String x 0 error response - */ - public ApiResponse getFileWithHttpInfo(String namespace, String array, String contentType, String xPayer) throws ApiException { - okhttp3.Call localVarCall = getFileValidateBeforeCall(namespace, array, contentType, xPayer, null); + public ApiResponse getFileWithHttpInfo(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getFileValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -613,7 +645,8 @@ public ApiResponse getFileWithHttpInfo(String namespace, String array, Str /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -628,16 +661,17 @@ public ApiResponse getFileWithHttpInfo(String namespace, String array, Str 0 error response - */ - public okhttp3.Call getFileAsync(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFileAsync(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFileValidateBeforeCall(namespace, array, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getFileValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitQuery - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -656,7 +690,7 @@ public okhttp3.Call getFileAsync(String namespace, String array, String contentT 0 error response - */ - public okhttp3.Call submitQueryCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,9 +707,10 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, Object localVarPostBody = query; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/submit" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -700,8 +735,7 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, } final String[] localVarAccepts = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -709,53 +743,61 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, } final String[] localVarContentTypes = { - "application/json", - "application/capnp" + "application/json", "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitQuery(Async)"); + private okhttp3.Call submitQueryValidateBeforeCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitQuery(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling submitQuery(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling submitQuery(Async)"); } - + // verify the required parameter 'type' is set if (type == null) { throw new ApiException("Missing the required parameter 'type' when calling submitQuery(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling submitQuery(Async)"); } - + // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling submitQuery(Async)"); } + - return submitQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = submitQueryCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); + return localVarCall; } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -773,15 +815,16 @@ private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String arra 0 error response - */ - public Query submitQuery(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - ApiResponse localVarResp = submitQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + public Query submitQuery(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + ApiResponse localVarResp = submitQueryWithHttpInfo(workspace, teamspace, array, type, contentType, query, xPayer, openAt); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -799,8 +842,8 @@ public Query submitQuery(String namespace, String array, String type, String con 0 error response - */ - public ApiResponse submitQueryWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + public ApiResponse submitQueryWithHttpInfo(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + okhttp3.Call localVarCall = submitQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -808,7 +851,8 @@ public ApiResponse submitQueryWithHttpInfo(String namespace, String array /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -827,16 +871,17 @@ public ApiResponse submitQueryWithHttpInfo(String namespace, String array 0 error response - */ - public okhttp3.Call submitQueryAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryAsync(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = submitQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitQueryJson - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -852,7 +897,7 @@ public okhttp3.Call submitQueryAsync(String namespace, String array, String type 0 error response - */ - public okhttp3.Call submitQueryJsonCall(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryJsonCall(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -869,9 +914,10 @@ public okhttp3.Call submitQueryJsonCall(String namespace, String array, String c Object localVarPostBody = queryJson; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/submit_query_json" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/submit_query_json" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -903,40 +949,49 @@ public okhttp3.Call submitQueryJsonCall(String namespace, String array, String c localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitQueryJson(Async)"); + private okhttp3.Call submitQueryJsonValidateBeforeCall(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitQueryJson(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling submitQueryJson(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling submitQueryJson(Async)"); } - + // verify the required parameter 'contentType' is set if (contentType == null) { throw new ApiException("Missing the required parameter 'contentType' when calling submitQueryJson(Async)"); } - + // verify the required parameter 'queryJson' is set if (queryJson == null) { throw new ApiException("Missing the required parameter 'queryJson' when calling submitQueryJson(Async)"); } + - return submitQueryJsonCall(namespace, array, contentType, queryJson, xPayer, _callback); + okhttp3.Call localVarCall = submitQueryJsonCall(workspace, teamspace, array, contentType, queryJson, xPayer, _callback); + return localVarCall; } /** * * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -951,15 +1006,16 @@ private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String 0 error response - */ - public Object submitQueryJson(String namespace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { - ApiResponse localVarResp = submitQueryJsonWithHttpInfo(namespace, array, contentType, queryJson, xPayer); + public Object submitQueryJson(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { + ApiResponse localVarResp = submitQueryJsonWithHttpInfo(workspace, teamspace, array, contentType, queryJson, xPayer); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -974,8 +1030,8 @@ public Object submitQueryJson(String namespace, String array, String contentType 0 error response - */ - public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { - okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(namespace, array, contentType, queryJson, xPayer, null); + public ApiResponse submitQueryJsonWithHttpInfo(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { + okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(workspace, teamspace, array, contentType, queryJson, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -983,7 +1039,8 @@ public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -999,9 +1056,9 @@ public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call submitQueryJsonAsync(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryJsonAsync(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(namespace, array, contentType, queryJson, xPayer, _callback); + okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(workspace, teamspace, array, contentType, queryJson, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java index d204743..b6a522d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; import io.tiledb.cloud.rest_api.model.TaskGraphSharing; @@ -76,7 +73,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for deleteRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -89,7 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRegisteredTaskGraphCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -106,9 +103,9 @@ public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -125,36 +122,40 @@ public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteRegisteredTaskGraph(Async)"); + private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteRegisteredTaskGraph(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteRegisteredTaskGraph(Async)"); } + - return deleteRegisteredTaskGraphCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteRegisteredTaskGraphCall(workspace, name, _callback); + return localVarCall; } /** * * Delete the given registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,14 +166,14 @@ private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespac 0 error response - */ - public void deleteRegisteredTaskGraph(String namespace, String name) throws ApiException { - deleteRegisteredTaskGraphWithHttpInfo(namespace, name); + public void deleteRegisteredTaskGraph(String workspace, String name) throws ApiException { + deleteRegisteredTaskGraphWithHttpInfo(workspace, name); } /** * * Delete the given registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -184,15 +185,15 @@ public void deleteRegisteredTaskGraph(String namespace, String name) throws ApiE 0 error response - */ - public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(namespace, name, null); + public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete the given registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -205,15 +206,15 @@ public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call deleteRegisteredTaskGraphAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRegisteredTaskGraphAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -226,7 +227,7 @@ public okhttp3.Call deleteRegisteredTaskGraphAsync(String namespace, String name 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -243,9 +244,9 @@ public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, fi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -262,36 +263,40 @@ public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, fi } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getRegisteredTaskGraph(Async)"); + private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getRegisteredTaskGraph(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getRegisteredTaskGraph(Async)"); } + - return getRegisteredTaskGraphCall(namespace, name, _callback); + okhttp3.Call localVarCall = getRegisteredTaskGraphCall(workspace, name, _callback); + return localVarCall; } /** * * Fetch the contents of this registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @return RegisteredTaskGraph * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -303,15 +308,15 @@ private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, 0 error response - */ - public RegisteredTaskGraph getRegisteredTaskGraph(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getRegisteredTaskGraphWithHttpInfo(namespace, name); + public RegisteredTaskGraph getRegisteredTaskGraph(String workspace, String name) throws ApiException { + ApiResponse localVarResp = getRegisteredTaskGraphWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Fetch the contents of this registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @return ApiResponse<RegisteredTaskGraph> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -323,8 +328,8 @@ public RegisteredTaskGraph getRegisteredTaskGraph(String namespace, String name) 0 error response - */ - public ApiResponse getRegisteredTaskGraphWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(namespace, name, null); + public ApiResponse getRegisteredTaskGraphWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -332,7 +337,7 @@ public ApiResponse getRegisteredTaskGraphWithHttpInfo(Strin /** * (asynchronously) * Fetch the contents of this registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -345,16 +350,16 @@ public ApiResponse getRegisteredTaskGraphWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getRegisteredTaskGraphSharingPolicies - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -368,7 +373,7 @@ public okhttp3.Call getRegisteredTaskGraphAsync(String namespace, String name, f 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -385,9 +390,9 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/taskgraphs/{workspace}/registered/{name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -404,36 +409,40 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getRegisteredTaskGraphSharingPolicies(Async)"); + private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getRegisteredTaskGraphSharingPolicies(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getRegisteredTaskGraphSharingPolicies(Async)"); } + - return getRegisteredTaskGraphSharingPoliciesCall(namespace, name, _callback); + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesCall(workspace, name, _callback); + return localVarCall; } /** * * Get sharing policies for the task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @return List<TaskGraphSharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -446,15 +455,15 @@ private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(Str 0 error response - */ - public List getRegisteredTaskGraphSharingPolicies(String namespace, String name) throws ApiException { - ApiResponse> localVarResp = getRegisteredTaskGraphSharingPoliciesWithHttpInfo(namespace, name); + public List getRegisteredTaskGraphSharingPolicies(String workspace, String name) throws ApiException { + ApiResponse> localVarResp = getRegisteredTaskGraphSharingPoliciesWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Get sharing policies for the task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @return ApiResponse<List<TaskGraphSharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -467,8 +476,8 @@ public List getRegisteredTaskGraphSharingPolicies(String names 0 error response - */ - public ApiResponse> getRegisteredTaskGraphSharingPoliciesWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(namespace, name, null); + public ApiResponse> getRegisteredTaskGraphSharingPoliciesWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -476,7 +485,7 @@ public ApiResponse> getRegisteredTaskGraphSharingPolicies /** * (asynchronously) * Get sharing policies for the task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -490,16 +499,16 @@ public ApiResponse> getRegisteredTaskGraphSharingPolicies 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String namespace, String name, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String workspace, String name, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for registerRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @param _callback Callback for upload/download progress @@ -513,7 +522,7 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String namespace, 0 error response - */ - public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerRegisteredTaskGraphCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,9 +539,9 @@ public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String nam Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -556,30 +565,33 @@ public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String nam localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerRegisteredTaskGraph(Async)"); + private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerRegisteredTaskGraph(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling registerRegisteredTaskGraph(Async)"); } + - return registerRegisteredTaskGraphCall(namespace, name, graph, _callback); + okhttp3.Call localVarCall = registerRegisteredTaskGraphCall(workspace, name, graph, _callback); + return localVarCall; } /** * * Register a task graph in the given namespace, with the given name. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -591,14 +603,14 @@ private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namesp 0 error response - */ - public void registerRegisteredTaskGraph(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - registerRegisteredTaskGraphWithHttpInfo(namespace, name, graph); + public void registerRegisteredTaskGraph(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + registerRegisteredTaskGraphWithHttpInfo(workspace, name, graph); } /** * * Register a task graph in the given namespace, with the given name. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @return ApiResponse<Void> @@ -611,15 +623,15 @@ public void registerRegisteredTaskGraph(String namespace, String name, Registere 0 error response - */ - public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, null); + public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Register a task graph in the given namespace, with the given name. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @param _callback The callback to be executed when the API call finishes @@ -633,15 +645,15 @@ public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String namespac 0 error response - */ - public okhttp3.Call registerRegisteredTaskGraphAsync(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerRegisteredTaskGraphAsync(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, _callback); + okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareRegisteredTaskGraph - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -656,7 +668,7 @@ public okhttp3.Call registerRegisteredTaskGraphAsync(String namespace, String na 0 error response - */ - public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareRegisteredTaskGraphCall(String workspace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,9 +685,9 @@ public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, Object localVarPostBody = taskGraphSharing; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/taskgraphs/{workspace}/registered/{name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -699,35 +711,38 @@ public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareRegisteredTaskGraph(Async)"); + private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String workspace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareRegisteredTaskGraph(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling shareRegisteredTaskGraph(Async)"); } - + // verify the required parameter 'taskGraphSharing' is set if (taskGraphSharing == null) { throw new ApiException("Missing the required parameter 'taskGraphSharing' when calling shareRegisteredTaskGraph(Async)"); } + - return shareRegisteredTaskGraphCall(namespace, name, taskGraphSharing, _callback); + okhttp3.Call localVarCall = shareRegisteredTaskGraphCall(workspace, name, taskGraphSharing, _callback); + return localVarCall; } /** * * Share a task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -740,14 +755,14 @@ private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace 0 error response - */ - public void shareRegisteredTaskGraph(String namespace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { - shareRegisteredTaskGraphWithHttpInfo(namespace, name, taskGraphSharing); + public void shareRegisteredTaskGraph(String workspace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { + shareRegisteredTaskGraphWithHttpInfo(workspace, name, taskGraphSharing); } /** * * Share a task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -761,15 +776,15 @@ public void shareRegisteredTaskGraph(String namespace, String name, TaskGraphSha 0 error response - */ - public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String namespace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { - okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(namespace, name, taskGraphSharing, null); + public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String workspace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { + okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(workspace, name, taskGraphSharing, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share a task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -784,15 +799,15 @@ public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call shareRegisteredTaskGraphAsync(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareRegisteredTaskGraphAsync(String workspace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(namespace, name, taskGraphSharing, _callback); + okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(workspace, name, taskGraphSharing, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @param _callback Callback for upload/download progress @@ -806,7 +821,7 @@ public okhttp3.Call shareRegisteredTaskGraphAsync(String namespace, String name, 0 error response - */ - public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateRegisteredTaskGraphCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -823,9 +838,9 @@ public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -849,30 +864,33 @@ public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateRegisteredTaskGraph(Async)"); + private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateRegisteredTaskGraph(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling updateRegisteredTaskGraph(Async)"); } + - return updateRegisteredTaskGraphCall(namespace, name, graph, _callback); + okhttp3.Call localVarCall = updateRegisteredTaskGraphCall(workspace, name, graph, _callback); + return localVarCall; } /** * * Update the contents of an existing registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -884,14 +902,14 @@ private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespac 0 error response - */ - public void updateRegisteredTaskGraph(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - updateRegisteredTaskGraphWithHttpInfo(namespace, name, graph); + public void updateRegisteredTaskGraph(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + updateRegisteredTaskGraphWithHttpInfo(workspace, name, graph); } /** * * Update the contents of an existing registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @return ApiResponse<Void> @@ -904,15 +922,15 @@ public void updateRegisteredTaskGraph(String namespace, String name, RegisteredT 0 error response - */ - public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, null); + public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update the contents of an existing registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @param _callback The callback to be executed when the API call finishes @@ -926,9 +944,9 @@ public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call updateRegisteredTaskGraphAsync(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateRegisteredTaskGraphAsync(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, _callback); + okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java index bcdd50a..82da371 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.SQLParameters; import java.lang.reflect.Type; @@ -75,7 +72,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for runSQL - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -90,7 +88,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call runSQLCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -107,8 +105,9 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep Object localVarPostBody = sql; // create path and map variables - String localVarPath = "/sql/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/sql/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -136,33 +135,42 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling runSQL(Async)"); + private okhttp3.Call runSQLValidateBeforeCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling runSQL(Async)"); } - + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling runSQL(Async)"); + } + // verify the required parameter 'sql' is set if (sql == null) { throw new ApiException("Missing the required parameter 'sql' when calling runSQL(Async)"); } + - return runSQLCall(namespace, sql, acceptEncoding, _callback); + okhttp3.Call localVarCall = runSQLCall(workspace, teamspace, sql, acceptEncoding, _callback); + return localVarCall; } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) - * @return List<Map<String, Object>> + * @return List<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -173,18 +181,19 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq
0 error response -
*/ - public List> runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse>> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + public List runSQL(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse> localVarResp = runSQLWithHttpInfo(workspace, teamspace, sql, acceptEncoding); return localVarResp.getData(); } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<List<Map<String, Object>>> + * @return ApiResponse<List<Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -195,16 +204,17 @@ public List> runSQL(String namespace, SQLParameters sql, Str
0 error response -
*/ - public ApiResponse>> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken>>(){}.getType(); + public ApiResponse> runSQLWithHttpInfo(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -219,54 +229,11 @@ public ApiResponse>> runSQLWithHttpInfo(String namespac 0 error response - */ - public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback>> _callback) throws ApiException { + public okhttp3.Call runSQLAsync(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, _callback); - Type localVarReturnType = new TypeToken>>(){}.getType(); + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - - /** - * - * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) - * @param sql sql being submitted (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse with byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response -
- */ - public ApiResponse runSQLWithHttpInfoBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) - * @param sql sql being submitted (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response -
- */ - public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = runSQLWithHttpInfoBytes(namespace, sql, acceptEncoding); - return localVarResp.getData(); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java index acc0f9e..43595f4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; import java.lang.reflect.Type; @@ -120,19 +117,23 @@ public okhttp3.Call getTiledbStatsCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTiledbStatsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getTiledbStatsCall(_callback); + + + okhttp3.Call localVarCall = getTiledbStatsCall(_callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java index f9fb203..3f89bae 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import java.time.OffsetDateTime; import io.tiledb.cloud.rest_api.model.TaskGraphClientNodeStatus; import io.tiledb.cloud.rest_api.model.TaskGraphLog; @@ -78,7 +75,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createTaskGraphLog - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -91,7 +88,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphLogCall(String workspace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -108,8 +105,8 @@ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, f Object localVarPostBody = log; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/log" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/taskgraphs/{workspace}/log" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -133,30 +130,33 @@ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, f localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraphLog(Async)"); + private okhttp3.Call createTaskGraphLogValidateBeforeCall(String workspace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createTaskGraphLog(Async)"); } - + // verify the required parameter 'log' is set if (log == null) { throw new ApiException("Missing the required parameter 'log' when calling createTaskGraphLog(Async)"); } + - return createTaskGraphLogCall(namespace, log, _callback); + okhttp3.Call localVarCall = createTaskGraphLogCall(workspace, log, _callback); + return localVarCall; } /** * * Create a task graph log. - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -168,15 +168,15 @@ private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, Task 0 error response - */ - public TaskGraphLog createTaskGraphLog(String namespace, TaskGraphLog log) throws ApiException { - ApiResponse localVarResp = createTaskGraphLogWithHttpInfo(namespace, log); + public TaskGraphLog createTaskGraphLog(String workspace, TaskGraphLog log) throws ApiException { + ApiResponse localVarResp = createTaskGraphLogWithHttpInfo(workspace, log); return localVarResp.getData(); } /** * * Create a task graph log. - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -188,8 +188,8 @@ public TaskGraphLog createTaskGraphLog(String namespace, TaskGraphLog log) throw 0 error response - */ - public ApiResponse createTaskGraphLogWithHttpInfo(String namespace, TaskGraphLog log) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(namespace, log, null); + public ApiResponse createTaskGraphLogWithHttpInfo(String workspace, TaskGraphLog log) throws ApiException { + okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(workspace, log, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -197,7 +197,7 @@ public ApiResponse createTaskGraphLogWithHttpInfo(String namespace /** * (asynchronously) * Create a task graph log. - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -210,16 +210,16 @@ public ApiResponse createTaskGraphLogWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call createTaskGraphLogAsync(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphLogAsync(String workspace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(namespace, log, _callback); + okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(workspace, log, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTaskGraphLog - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -232,7 +232,7 @@ public okhttp3.Call createTaskGraphLogAsync(String namespace, TaskGraphLog log, 0 error response - */ - public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphLogCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -249,9 +249,9 @@ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/logs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/logs/{id}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -268,36 +268,40 @@ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCa } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraphLog(Async)"); + private okhttp3.Call getTaskGraphLogValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getTaskGraphLog(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getTaskGraphLog(Async)"); } + - return getTaskGraphLogCall(namespace, id, _callback); + okhttp3.Call localVarCall = getTaskGraphLogCall(workspace, id, _callback); + return localVarCall; } /** * * Fetch information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -309,15 +313,15 @@ private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog getTaskGraphLog(String namespace, String id) throws ApiException { - ApiResponse localVarResp = getTaskGraphLogWithHttpInfo(namespace, id); + public TaskGraphLog getTaskGraphLog(String workspace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphLogWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Fetch information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -329,8 +333,8 @@ public TaskGraphLog getTaskGraphLog(String namespace, String id) throws ApiExcep 0 error response - */ - public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(namespace, id, null); + public ApiResponse getTaskGraphLogWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,7 +342,7 @@ public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, S /** * (asynchronously) * Fetch information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -351,9 +355,9 @@ public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call getTaskGraphLogAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphLogAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -445,19 +449,23 @@ public okhttp3.Call listTaskGraphLogsCall(String namespace, String createdBy, St } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listTaskGraphLogsValidateBeforeCall(String namespace, String createdBy, String status, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - return listTaskGraphLogsCall(namespace, createdBy, status, search, startTime, endTime, page, perPage, _callback); + + + okhttp3.Call localVarCall = listTaskGraphLogsCall(namespace, createdBy, status, search, startTime, endTime, page, perPage, _callback); + return localVarCall; } @@ -545,7 +553,7 @@ public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, S } /** * Build call for reportClientNode - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @param _callback Callback for upload/download progress @@ -559,7 +567,7 @@ public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, S 0 error response - */ - public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + public okhttp3.Call reportClientNodeCall(String workspace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -576,9 +584,9 @@ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphC Object localVarPostBody = report; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/logs/{id}/report_client_node" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/logs/{id}/report_client_node" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -602,35 +610,38 @@ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphC localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling reportClientNode(Async)"); + private okhttp3.Call reportClientNodeValidateBeforeCall(String workspace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling reportClientNode(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling reportClientNode(Async)"); } - + // verify the required parameter 'report' is set if (report == null) { throw new ApiException("Missing the required parameter 'report' when calling reportClientNode(Async)"); } + - return reportClientNodeCall(namespace, id, report, _callback); + okhttp3.Call localVarCall = reportClientNodeCall(workspace, id, report, _callback); + return localVarCall; } /** * * - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -642,14 +653,14 @@ private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String 0 error response - */ - public void reportClientNode(String namespace, String id, TaskGraphClientNodeStatus report) throws ApiException { - reportClientNodeWithHttpInfo(namespace, id, report); + public void reportClientNode(String workspace, String id, TaskGraphClientNodeStatus report) throws ApiException { + reportClientNodeWithHttpInfo(workspace, id, report); } /** * * - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @return ApiResponse<Void> @@ -662,15 +673,15 @@ public void reportClientNode(String namespace, String id, TaskGraphClientNodeSta 0 error response - */ - public ApiResponse reportClientNodeWithHttpInfo(String namespace, String id, TaskGraphClientNodeStatus report) throws ApiException { - okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(namespace, id, report, null); + public ApiResponse reportClientNodeWithHttpInfo(String workspace, String id, TaskGraphClientNodeStatus report) throws ApiException { + okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(workspace, id, report, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @param _callback The callback to be executed when the API call finishes @@ -684,15 +695,15 @@ public ApiResponse reportClientNodeWithHttpInfo(String namespace, String i 0 error response - */ - public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + public okhttp3.Call reportClientNodeAsync(String workspace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(namespace, id, report, _callback); + okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(workspace, id, report, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for resubmitTaskGraphExecution - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -705,7 +716,7 @@ public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraph 0 error response - */ - public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call resubmitTaskGraphExecutionCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -722,9 +733,9 @@ public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/executions/{id}/resubmit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/executions/{id}/resubmit" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -741,36 +752,40 @@ public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling resubmitTaskGraphExecution(Async)"); + private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling resubmitTaskGraphExecution(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling resubmitTaskGraphExecution(Async)"); } + - return resubmitTaskGraphExecutionCall(namespace, id, _callback); + okhttp3.Call localVarCall = resubmitTaskGraphExecutionCall(workspace, id, _callback); + return localVarCall; } /** * * Resubmits a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -782,15 +797,15 @@ private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespa 0 error response - */ - public TaskGraphLog resubmitTaskGraphExecution(String namespace, String id) throws ApiException { - ApiResponse localVarResp = resubmitTaskGraphExecutionWithHttpInfo(namespace, id); + public TaskGraphLog resubmitTaskGraphExecution(String workspace, String id) throws ApiException { + ApiResponse localVarResp = resubmitTaskGraphExecutionWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Resubmits a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -802,8 +817,8 @@ public TaskGraphLog resubmitTaskGraphExecution(String namespace, String id) thro 0 error response - */ - public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, null); + public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -811,7 +826,7 @@ public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String n /** * (asynchronously) * Resubmits a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -824,16 +839,16 @@ public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String n 0 error response - */ - public okhttp3.Call resubmitTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call resubmitTaskGraphExecutionAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for retryTaskGraphExecution - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -846,7 +861,7 @@ public okhttp3.Call resubmitTaskGraphExecutionAsync(String namespace, String id, 0 error response - */ - public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call retryTaskGraphExecutionCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -863,9 +878,9 @@ public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, fin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/executions/{id}/retry" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/executions/{id}/retry" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -882,36 +897,40 @@ public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, fin } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling retryTaskGraphExecution(Async)"); + private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling retryTaskGraphExecution(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling retryTaskGraphExecution(Async)"); } + - return retryTaskGraphExecutionCall(namespace, id, _callback); + okhttp3.Call localVarCall = retryTaskGraphExecutionCall(workspace, id, _callback); + return localVarCall; } /** * * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -923,15 +942,15 @@ private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, 0 error response - */ - public TaskGraphLog retryTaskGraphExecution(String namespace, String id) throws ApiException { - ApiResponse localVarResp = retryTaskGraphExecutionWithHttpInfo(namespace, id); + public TaskGraphLog retryTaskGraphExecution(String workspace, String id) throws ApiException { + ApiResponse localVarResp = retryTaskGraphExecutionWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -943,8 +962,8 @@ public TaskGraphLog retryTaskGraphExecution(String namespace, String id) throws 0 error response - */ - public ApiResponse retryTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, null); + public ApiResponse retryTaskGraphExecutionWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -952,7 +971,7 @@ public ApiResponse retryTaskGraphExecutionWithHttpInfo(String name /** * (asynchronously) * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -965,16 +984,16 @@ public ApiResponse retryTaskGraphExecutionWithHttpInfo(String name 0 error response - */ - public okhttp3.Call retryTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call retryTaskGraphExecutionAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for stopTaskGraphExecution - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -987,7 +1006,7 @@ public okhttp3.Call retryTaskGraphExecutionAsync(String namespace, String id, fi 0 error response - */ - public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call stopTaskGraphExecutionCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1004,9 +1023,9 @@ public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, fina Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/executions/{id}/stop" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/executions/{id}/stop" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1023,36 +1042,40 @@ public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, fina } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling stopTaskGraphExecution(Async)"); + private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling stopTaskGraphExecution(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling stopTaskGraphExecution(Async)"); } + - return stopTaskGraphExecutionCall(namespace, id, _callback); + okhttp3.Call localVarCall = stopTaskGraphExecutionCall(workspace, id, _callback); + return localVarCall; } /** * * Stops a task graph execution in the given namespace using the associated associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1063,14 +1086,14 @@ private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, 0 error response - */ - public void stopTaskGraphExecution(String namespace, String id) throws ApiException { - stopTaskGraphExecutionWithHttpInfo(namespace, id); + public void stopTaskGraphExecution(String workspace, String id) throws ApiException { + stopTaskGraphExecutionWithHttpInfo(workspace, id); } /** * * Stops a task graph execution in the given namespace using the associated associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1082,15 +1105,15 @@ public void stopTaskGraphExecution(String namespace, String id) throws ApiExcept 0 error response - */ - public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, null); + public ApiResponse stopTaskGraphExecutionWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(workspace, id, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Stops a task graph execution in the given namespace using the associated associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1103,16 +1126,17 @@ public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, St 0 error response - */ - public okhttp3.Call stopTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call stopTaskGraphExecutionAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(workspace, id, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for submitTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1124,7 +1148,7 @@ public okhttp3.Call stopTaskGraphExecutionAsync(String namespace, String id, fin 0 error response - */ - public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1141,9 +1165,9 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}/submit" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1151,6 +1175,10 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (rootTaskGraphUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootTaskGraphUuid)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1160,37 +1188,42 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitTaskGraph(Async)"); + private okhttp3.Call submitTaskGraphValidateBeforeCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitTaskGraph(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); } + - return submitTaskGraphCall(namespace, id, _callback); + okhttp3.Call localVarCall = submitTaskGraphCall(workspace, id, rootTaskGraphUuid, _callback); + return localVarCall; } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1201,16 +1234,17 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiException { - ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id); + public TaskGraphLog submitTaskGraph(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(workspace, id, rootTaskGraphUuid); return localVarResp.getData(); } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1221,8 +1255,8 @@ public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiExcep 0 error response - */ - public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, null); + public ApiResponse submitTaskGraphWithHttpInfo(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1230,8 +1264,9 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S /** * (asynchronously) * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1243,16 +1278,16 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphAsync(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateTaskGraphLog - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @param _callback Callback for upload/download progress @@ -1266,7 +1301,7 @@ public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiC 0 error response - */ - public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphLogCall(String workspace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1283,9 +1318,9 @@ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGrap Object localVarPostBody = log; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/logs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/logs/{id}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1309,35 +1344,38 @@ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGrap localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraphLog(Async)"); + private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String workspace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateTaskGraphLog(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling updateTaskGraphLog(Async)"); } - + // verify the required parameter 'log' is set if (log == null) { throw new ApiException("Missing the required parameter 'log' when calling updateTaskGraphLog(Async)"); } + - return updateTaskGraphLogCall(namespace, id, log, _callback); + okhttp3.Call localVarCall = updateTaskGraphLogCall(workspace, id, log, _callback); + return localVarCall; } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1349,14 +1387,14 @@ private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, Stri 0 error response - */ - public void updateTaskGraphLog(String namespace, String id, TaskGraphLog log) throws ApiException { - updateTaskGraphLogWithHttpInfo(namespace, id, log); + public void updateTaskGraphLog(String workspace, String id, TaskGraphLog log) throws ApiException { + updateTaskGraphLogWithHttpInfo(workspace, id, log); } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @return ApiResponse<Void> @@ -1369,15 +1407,15 @@ public void updateTaskGraphLog(String namespace, String id, TaskGraphLog log) th 0 error response - */ - public ApiResponse updateTaskGraphLogWithHttpInfo(String namespace, String id, TaskGraphLog log) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(namespace, id, log, null); + public ApiResponse updateTaskGraphLogWithHttpInfo(String workspace, String id, TaskGraphLog log) throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(workspace, id, log, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @param _callback The callback to be executed when the API call finishes @@ -1391,9 +1429,9 @@ public ApiResponse updateTaskGraphLogWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call updateTaskGraphLogAsync(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphLogAsync(String workspace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(namespace, id, log, _callback); + okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(workspace, id, log, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java index d8cd4d8..c3cd968 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java @@ -19,15 +19,12 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.TaskGraph; import io.tiledb.cloud.rest_api.model.TaskGraphLog; import io.tiledb.cloud.rest_api.model.TaskGraphs; @@ -77,7 +74,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createTaskGraph - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -90,7 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphCall(String workspace, TaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -107,8 +104,8 @@ public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -132,30 +129,33 @@ public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraph(Async)"); + private okhttp3.Call createTaskGraphValidateBeforeCall(String workspace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createTaskGraph(Async)"); } - + // verify the required parameter 'graph' is set if (graph == null) { throw new ApiException("Missing the required parameter 'graph' when calling createTaskGraph(Async)"); } + - return createTaskGraphCall(namespace, graph, _callback); + okhttp3.Call localVarCall = createTaskGraphCall(workspace, graph, _callback); + return localVarCall; } /** * * Create a single task graph for execution. - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @return TaskGraph * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -167,15 +167,15 @@ private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGra 0 error response - */ - public TaskGraph createTaskGraph(String namespace, TaskGraph graph) throws ApiException { - ApiResponse localVarResp = createTaskGraphWithHttpInfo(namespace, graph); + public TaskGraph createTaskGraph(String workspace, TaskGraph graph) throws ApiException { + ApiResponse localVarResp = createTaskGraphWithHttpInfo(workspace, graph); return localVarResp.getData(); } /** * * Create a single task graph for execution. - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @return ApiResponse<TaskGraph> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -187,8 +187,8 @@ public TaskGraph createTaskGraph(String namespace, TaskGraph graph) throws ApiEx 0 error response - */ - public ApiResponse createTaskGraphWithHttpInfo(String namespace, TaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, null); + public ApiResponse createTaskGraphWithHttpInfo(String workspace, TaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(workspace, graph, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -196,7 +196,7 @@ public ApiResponse createTaskGraphWithHttpInfo(String namespace, Task /** * (asynchronously) * Create a single task graph for execution. - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -209,16 +209,16 @@ public ApiResponse createTaskGraphWithHttpInfo(String namespace, Task 0 error response - */ - public okhttp3.Call createTaskGraphAsync(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphAsync(String workspace, TaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, _callback); + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(workspace, graph, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -231,7 +231,7 @@ public okhttp3.Call createTaskGraphAsync(String namespace, TaskGraph graph, fina 0 error response - */ - public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -248,9 +248,9 @@ public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallb Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -267,36 +267,40 @@ public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallb } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraph(Async)"); + private okhttp3.Call getTaskGraphValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getTaskGraph(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getTaskGraph(Async)"); } + - return getTaskGraphCall(namespace, id, _callback); + okhttp3.Call localVarCall = getTaskGraphCall(workspace, id, _callback); + return localVarCall; } /** * * Fetch information about a single task graph. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @return TaskGraph * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -308,15 +312,15 @@ private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, 0 error response - */ - public TaskGraph getTaskGraph(String namespace, String id) throws ApiException { - ApiResponse localVarResp = getTaskGraphWithHttpInfo(namespace, id); + public TaskGraph getTaskGraph(String workspace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Fetch information about a single task graph. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @return ApiResponse<TaskGraph> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -328,8 +332,8 @@ public TaskGraph getTaskGraph(String namespace, String id) throws ApiException { 0 error response - */ - public ApiResponse getTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, null); + public ApiResponse getTaskGraphWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -337,7 +341,7 @@ public ApiResponse getTaskGraphWithHttpInfo(String namespace, String /** * (asynchronously) * Fetch information about a single task graph. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -350,16 +354,16 @@ public ApiResponse getTaskGraphWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call getTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listTaskGraphs - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -371,7 +375,7 @@ public okhttp3.Call getTaskGraphAsync(String namespace, String id, final ApiCall 0 error response - */ - public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listTaskGraphsCall(String workspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -388,8 +392,8 @@ public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _call Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -406,31 +410,35 @@ public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _call } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listTaskGraphsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listTaskGraphs(Async)"); + private okhttp3.Call listTaskGraphsValidateBeforeCall(String workspace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling listTaskGraphs(Async)"); } + - return listTaskGraphsCall(namespace, _callback); + okhttp3.Call localVarCall = listTaskGraphsCall(workspace, _callback); + return localVarCall; } /** * * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @return TaskGraphs * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -441,15 +449,15 @@ private okhttp3.Call listTaskGraphsValidateBeforeCall(String namespace, final Ap 0 error response - */ - public TaskGraphs listTaskGraphs(String namespace) throws ApiException { - ApiResponse localVarResp = listTaskGraphsWithHttpInfo(namespace); + public TaskGraphs listTaskGraphs(String workspace) throws ApiException { + ApiResponse localVarResp = listTaskGraphsWithHttpInfo(workspace); return localVarResp.getData(); } /** * * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @return ApiResponse<TaskGraphs> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -460,8 +468,8 @@ public TaskGraphs listTaskGraphs(String namespace) throws ApiException { 0 error response - */ - public ApiResponse listTaskGraphsWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, null); + public ApiResponse listTaskGraphsWithHttpInfo(String workspace) throws ApiException { + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(workspace, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -469,7 +477,7 @@ public ApiResponse listTaskGraphsWithHttpInfo(String namespace) thro /** * (asynchronously) * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -481,17 +489,18 @@ public ApiResponse listTaskGraphsWithHttpInfo(String namespace) thro 0 error response - */ - public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listTaskGraphsAsync(String workspace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(workspace, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -503,7 +512,7 @@ public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback 0 error response - */ - public okhttp3.Call submitTaskGraphCall(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -520,9 +529,9 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, String root Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}/submit" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -530,8 +539,8 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, String root Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (rootId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootId)); + if (rootTaskGraphUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootTaskGraphUuid)); } final String[] localVarAccepts = { @@ -543,37 +552,42 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, String root } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitTaskGraph(Async)"); + private okhttp3.Call submitTaskGraphValidateBeforeCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitTaskGraph(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); } + - return submitTaskGraphCall(namespace, id, rootId, _callback); + okhttp3.Call localVarCall = submitTaskGraphCall(workspace, id, rootTaskGraphUuid, _callback); + return localVarCall; } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -584,16 +598,17 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog submitTaskGraph(String namespace, String id, String rootId) throws ApiException { - ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id, rootId); + public TaskGraphLog submitTaskGraph(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(workspace, id, rootTaskGraphUuid); return localVarResp.getData(); } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -604,8 +619,8 @@ public TaskGraphLog submitTaskGraph(String namespace, String id, String rootId) 0 error response - */ - public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id, String rootId) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootId, null); + public ApiResponse submitTaskGraphWithHttpInfo(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -613,8 +628,9 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S /** * (asynchronously) * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -626,16 +642,16 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call submitTaskGraphAsync(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphAsync(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootId, _callback); + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @param _callback Callback for upload/download progress @@ -649,7 +665,7 @@ public okhttp3.Call submitTaskGraphAsync(String namespace, String id, String roo 0 error response - */ - public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphCall(String workspace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -666,9 +682,9 @@ public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph g Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -692,35 +708,38 @@ public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph g localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraph(Async)"); + private okhttp3.Call updateTaskGraphValidateBeforeCall(String workspace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateTaskGraph(Async)"); } - + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling updateTaskGraph(Async)"); } - + // verify the required parameter 'graph' is set if (graph == null) { throw new ApiException("Missing the required parameter 'graph' when calling updateTaskGraph(Async)"); } + - return updateTaskGraphCall(namespace, id, graph, _callback); + okhttp3.Call localVarCall = updateTaskGraphCall(workspace, id, graph, _callback); + return localVarCall; } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -732,14 +751,14 @@ private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public void updateTaskGraph(String namespace, String id, TaskGraph graph) throws ApiException { - updateTaskGraphWithHttpInfo(namespace, id, graph); + public void updateTaskGraph(String workspace, String id, TaskGraph graph) throws ApiException { + updateTaskGraphWithHttpInfo(workspace, id, graph); } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @return ApiResponse<Void> @@ -752,15 +771,15 @@ public void updateTaskGraph(String namespace, String id, TaskGraph graph) throws 0 error response - */ - public ApiResponse updateTaskGraphWithHttpInfo(String namespace, String id, TaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, null); + public ApiResponse updateTaskGraphWithHttpInfo(String workspace, String id, TaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(workspace, id, graph, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @param _callback The callback to be executed when the API call finishes @@ -774,9 +793,9 @@ public ApiResponse updateTaskGraphWithHttpInfo(String namespace, String id 0 error response - */ - public okhttp3.Call updateTaskGraphAsync(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphAsync(String workspace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, _callback); + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(workspace, id, graph, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java index 078670c..8f62002 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -29,7 +27,6 @@ import io.tiledb.cloud.rest_api.model.ArrayTask; import io.tiledb.cloud.rest_api.model.ArrayTaskData; -import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.SQLParameters; import java.lang.reflect.Type; @@ -77,7 +74,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for runSQL - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -92,7 +90,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call runSQLCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -109,8 +107,9 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep Object localVarPostBody = sql; // create path and map variables - String localVarPath = "/sql/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/sql/{workspace}/{teamspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -138,33 +137,42 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling runSQL(Async)"); - } - + private okhttp3.Call runSQLValidateBeforeCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling runSQL(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling runSQL(Async)"); + } + // verify the required parameter 'sql' is set if (sql == null) { throw new ApiException("Missing the required parameter 'sql' when calling runSQL(Async)"); } + - return runSQLCall(namespace, sql, acceptEncoding, _callback); + okhttp3.Call localVarCall = runSQLCall(workspace, teamspace, sql, acceptEncoding, _callback); + return localVarCall; } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) - * @return List<Map<String, Object>> + * @return List<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -175,18 +183,19 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq
0 error response -
*/ - public List> runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse>> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + public List runSQL(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse> localVarResp = runSQLWithHttpInfo(workspace, teamspace, sql, acceptEncoding); return localVarResp.getData(); } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<List<Map<String, Object>>> + * @return ApiResponse<List<Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -197,16 +206,17 @@ public List> runSQL(String namespace, SQLParameters sql, Str
0 error response -
*/ - public ApiResponse>> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken>>(){}.getType(); + public ApiResponse> runSQLWithHttpInfo(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -221,10 +231,10 @@ public ApiResponse>> runSQLWithHttpInfo(String namespac 0 error response - */ - public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback>> _callback) throws ApiException { + public okhttp3.Call runSQLAsync(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, _callback); - Type localVarReturnType = new TypeToken>>(){}.getType(); + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -260,7 +270,7 @@ public okhttp3.Call taskIdGetCall(String id, final ApiCallback _callback) throws // create path and map variables String localVarPath = "/task/{id}" - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -277,24 +287,28 @@ public okhttp3.Call taskIdGetCall(String id, final ApiCallback _callback) throws } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call taskIdGetValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling taskIdGet(Async)"); } + - return taskIdGetCall(id, _callback); + okhttp3.Call localVarCall = taskIdGetCall(id, _callback); + return localVarCall; } @@ -394,7 +408,7 @@ public okhttp3.Call taskIdResultGetCall(String id, String acceptEncoding, final // create path and map variables String localVarPath = "/task/{id}/result" - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -415,24 +429,28 @@ public okhttp3.Call taskIdResultGetCall(String id, String acceptEncoding, final } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call taskIdResultGetValidateBeforeCall(String id, String acceptEncoding, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling taskIdResultGet(Async)"); } + - return taskIdResultGetCall(id, acceptEncoding, _callback); + okhttp3.Call localVarCall = taskIdResultGetCall(id, acceptEncoding, _callback); + return localVarCall; } @@ -623,19 +641,23 @@ public okhttp3.Call tasksGetCall(String namespace, String createdBy, String arra } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call tasksGetValidateBeforeCall(String namespace, String createdBy, String array, Integer start, Integer end, Integer page, Integer perPage, String type, List excludeType, List fileType, List excludeFileType, String status, String search, String orderby, final ApiCallback _callback) throws ApiException { - return tasksGetCall(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby, _callback); + + + okhttp3.Call localVarCall = tasksGetCall(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby, _callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java index 4eb656b..b018cbb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -28,7 +26,7 @@ import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.Error; + import java.io.File; import io.tiledb.cloud.rest_api.model.GenericUDF; import io.tiledb.cloud.rest_api.model.MultiArrayUDF; @@ -83,7 +81,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for deleteUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -96,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFInfoCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -113,9 +111,9 @@ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -132,36 +130,40 @@ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCa } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteUDFInfo(Async)"); + private okhttp3.Call deleteUDFInfoValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteUDFInfo(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteUDFInfo(Async)"); } + - return deleteUDFInfoCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteUDFInfoCall(workspace, name, _callback); + return localVarCall; } /** * * delete a registered UDF -- this will remove all sharing and can not be undone - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -172,14 +174,14 @@ private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String na 0 error response - */ - public void deleteUDFInfo(String namespace, String name) throws ApiException { - deleteUDFInfoWithHttpInfo(namespace, name); + public void deleteUDFInfo(String workspace, String name) throws ApiException { + deleteUDFInfoWithHttpInfo(workspace, name); } /** * * delete a registered UDF -- this will remove all sharing and can not be undone - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -191,15 +193,15 @@ public void deleteUDFInfo(String namespace, String name) throws ApiException { 0 error response - */ - public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, null); + public ApiResponse deleteUDFInfoWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a registered UDF -- this will remove all sharing and can not be undone - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -212,15 +214,15 @@ public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name 0 error response - */ - public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFInfoAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -234,7 +236,7 @@ public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiC 0 error response - */ - public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -251,9 +253,9 @@ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallb Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -270,36 +272,40 @@ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallb } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getUDFInfo(Async)"); + private okhttp3.Call getUDFInfoValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getUDFInfo(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getUDFInfo(Async)"); } + - return getUDFInfoCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFInfoCall(workspace, name, _callback); + return localVarCall; } /** * * get a specific UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @return UDFInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -312,15 +318,15 @@ private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, 0 error response - */ - public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getUDFInfoWithHttpInfo(namespace, name); + public UDFInfo getUDFInfo(String workspace, String name) throws ApiException { + ApiResponse localVarResp = getUDFInfoWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * get a specific UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @return ApiResponse<UDFInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -333,8 +339,8 @@ public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { 0 error response - */ - public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, null); + public ApiResponse getUDFInfoWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -342,7 +348,7 @@ public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name /** * (asynchronously) * get a specific UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -356,16 +362,16 @@ public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name 0 error response - */ - public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUDFInfoSharingPolicies - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -379,7 +385,7 @@ public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCall 0 error response - */ - public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoSharingPoliciesCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -396,9 +402,9 @@ public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -415,36 +421,40 @@ public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getUDFInfoSharingPolicies(Async)"); + private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getUDFInfoSharingPolicies(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getUDFInfoSharingPolicies(Async)"); } + - return getUDFInfoSharingPoliciesCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesCall(workspace, name, _callback); + return localVarCall; } /** * * Get all sharing details of the UDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @return List<UDFSharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -457,15 +467,15 @@ private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespac 0 error response - */ - public List getUDFInfoSharingPolicies(String namespace, String name) throws ApiException { - ApiResponse> localVarResp = getUDFInfoSharingPoliciesWithHttpInfo(namespace, name); + public List getUDFInfoSharingPolicies(String workspace, String name) throws ApiException { + ApiResponse> localVarResp = getUDFInfoSharingPoliciesWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Get all sharing details of the UDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @return ApiResponse<List<UDFSharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -478,8 +488,8 @@ public List getUDFInfoSharingPolicies(String namespace, String name) 0 error response - */ - public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(namespace, name, null); + public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -487,7 +497,7 @@ public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(Strin /** * (asynchronously) * Get all sharing details of the UDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -501,16 +511,16 @@ public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getUDFInfoSharingPoliciesAsync(String namespace, String name, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getUDFInfoSharingPoliciesAsync(String workspace, String name, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleCopyUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -526,7 +536,7 @@ public okhttp3.Call getUDFInfoSharingPoliciesAsync(String namespace, String name 0 error response - */ - public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyUDFCall(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -543,9 +553,9 @@ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udF Object localVarPostBody = udFCopy; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}/copy" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}/copy" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -577,35 +587,38 @@ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udF localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleCopyUDF(Async)"); + private okhttp3.Call handleCopyUDFValidateBeforeCall(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleCopyUDF(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling handleCopyUDF(Async)"); } - + // verify the required parameter 'udFCopy' is set if (udFCopy == null) { throw new ApiException("Missing the required parameter 'udFCopy' when calling handleCopyUDF(Async)"); } + - return handleCopyUDFCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + okhttp3.Call localVarCall = handleCopyUDFCall(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + return localVarCall; } /** * * Copy a tiledb udf at the specified location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -620,15 +633,15 @@ private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String na 0 error response - */ - public UDFCopied handleCopyUDF(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = handleCopyUDFWithHttpInfo(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + public UDFCopied handleCopyUDF(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = handleCopyUDFWithHttpInfo(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); return localVarResp.getData(); } /** * * Copy a tiledb udf at the specified location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -643,8 +656,8 @@ public UDFCopied handleCopyUDF(String namespace, String name, UDFCopy udFCopy, S 0 error response - */ - public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); + public ApiResponse handleCopyUDFWithHttpInfo(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -652,7 +665,7 @@ public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String /** * (asynchronously) * Copy a tiledb udf at the specified location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -668,16 +681,16 @@ public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call handleCopyUDFAsync(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyUDFAsync(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for registerUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @param _callback Callback for upload/download progress @@ -691,7 +704,7 @@ public okhttp3.Call handleCopyUDFAsync(String namespace, String name, UDFCopy ud 0 error response - */ - public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerUDFInfoCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -708,9 +721,9 @@ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUp Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -734,35 +747,38 @@ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUp localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerUDFInfo(Async)"); + private okhttp3.Call registerUDFInfoValidateBeforeCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerUDFInfo(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling registerUDFInfo(Async)"); } - + // verify the required parameter 'udf' is set if (udf == null) { throw new ApiException("Missing the required parameter 'udf' when calling registerUDFInfo(Async)"); } + - return registerUDFInfoCall(namespace, name, udf, _callback); + okhttp3.Call localVarCall = registerUDFInfoCall(workspace, name, udf, _callback); + return localVarCall; } /** * * register a UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -774,14 +790,14 @@ private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String 0 error response - */ - public void registerUDFInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - registerUDFInfoWithHttpInfo(namespace, name, udf); + public void registerUDFInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + registerUDFInfoWithHttpInfo(workspace, name, udf); } /** * * register a UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @return ApiResponse<Void> @@ -794,15 +810,15 @@ public void registerUDFInfo(String namespace, String name, UDFInfoUpdate udf) th 0 error response - */ - public ApiResponse registerUDFInfoWithHttpInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(namespace, name, udf, null); + public ApiResponse registerUDFInfoWithHttpInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(workspace, name, udf, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * register a UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @param _callback The callback to be executed when the API call finishes @@ -816,15 +832,15 @@ public ApiResponse registerUDFInfoWithHttpInfo(String namespace, String na 0 error response - */ - public okhttp3.Call registerUDFInfoAsync(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerUDFInfoAsync(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(namespace, name, udf, _callback); + okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(workspace, name, udf, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -839,7 +855,7 @@ public okhttp3.Call registerUDFInfoAsync(String namespace, String name, UDFInfoU 0 error response - */ - public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareUDFInfoCall(String workspace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -856,9 +872,9 @@ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing u Object localVarPostBody = udfSharing; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}/share" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -882,35 +898,38 @@ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing u localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareUDFInfo(Async)"); + private okhttp3.Call shareUDFInfoValidateBeforeCall(String workspace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareUDFInfo(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling shareUDFInfo(Async)"); } - + // verify the required parameter 'udfSharing' is set if (udfSharing == null) { throw new ApiException("Missing the required parameter 'udfSharing' when calling shareUDFInfo(Async)"); } + - return shareUDFInfoCall(namespace, name, udfSharing, _callback); + okhttp3.Call localVarCall = shareUDFInfoCall(workspace, name, udfSharing, _callback); + return localVarCall; } /** * * Share a UDF with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -923,14 +942,14 @@ private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String nam 0 error response - */ - public void shareUDFInfo(String namespace, String name, UDFSharing udfSharing) throws ApiException { - shareUDFInfoWithHttpInfo(namespace, name, udfSharing); + public void shareUDFInfo(String workspace, String name, UDFSharing udfSharing) throws ApiException { + shareUDFInfoWithHttpInfo(workspace, name, udfSharing); } /** * * Share a UDF with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -944,15 +963,15 @@ public void shareUDFInfo(String namespace, String name, UDFSharing udfSharing) t 0 error response - */ - public ApiResponse shareUDFInfoWithHttpInfo(String namespace, String name, UDFSharing udfSharing) throws ApiException { - okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(namespace, name, udfSharing, null); + public ApiResponse shareUDFInfoWithHttpInfo(String workspace, String name, UDFSharing udfSharing) throws ApiException { + okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(workspace, name, udfSharing, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share a UDF with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -967,15 +986,15 @@ public ApiResponse shareUDFInfoWithHttpInfo(String namespace, String name, 0 error response - */ - public okhttp3.Call shareUDFInfoAsync(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareUDFInfoAsync(String workspace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(namespace, name, udfSharing, _callback); + okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(workspace, name, udfSharing, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for submitGenericUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -989,7 +1008,7 @@ public okhttp3.Call shareUDFInfoAsync(String namespace, String name, UDFSharing 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitGenericUDFCall(String workspace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1006,8 +1025,8 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udfs/generic/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/udfs/generic/{workspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1035,30 +1054,33 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitGenericUDF(Async)"); + private okhttp3.Call submitGenericUDFValidateBeforeCall(String workspace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitGenericUDF(Async)"); } - + // verify the required parameter 'udf' is set if (udf == null) { throw new ApiException("Missing the required parameter 'udf' when calling submitGenericUDF(Async)"); } + - return submitGenericUDFCall(namespace, udf, acceptEncoding, _callback); + okhttp3.Call localVarCall = submitGenericUDFCall(workspace, udf, acceptEncoding, _callback); + return localVarCall; } /** * * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return File @@ -1071,15 +1093,15 @@ private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, Generi 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public File submitGenericUDF(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfo(namespace, udf, acceptEncoding); + public File submitGenericUDF(String workspace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfo(workspace, 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 workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return ApiResponse<File> @@ -1092,8 +1114,8 @@ public File submitGenericUDF(String namespace, GenericUDF udf, String acceptEnco 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + public ApiResponse submitGenericUDFWithHttpInfo(String workspace, GenericUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(workspace, udf, acceptEncoding, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1101,7 +1123,7 @@ public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericU /** * (asynchronously) * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -1115,16 +1137,16 @@ public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericU 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitGenericUDFAsync(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitGenericUDFAsync(String workspace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, _callback); + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(workspace, udf, acceptEncoding, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitMultiArrayUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -1138,7 +1160,7 @@ public okhttp3.Call submitGenericUDFAsync(String namespace, GenericUDF udf, Stri 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitMultiArrayUDFCall(String workspace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1155,8 +1177,8 @@ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udfs/arrays/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/udfs/arrays/{workspace}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1184,30 +1206,33 @@ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitMultiArrayUDF(Async)"); + private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String workspace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitMultiArrayUDF(Async)"); } - + // verify the required parameter 'udf' is set if (udf == null) { throw new ApiException("Missing the required parameter 'udf' when calling submitMultiArrayUDF(Async)"); } + - return submitMultiArrayUDFCall(namespace, udf, acceptEncoding, _callback); + okhttp3.Call localVarCall = submitMultiArrayUDFCall(workspace, udf, acceptEncoding, _callback); + return localVarCall; } /** * * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return File @@ -1220,15 +1245,15 @@ private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, Mul 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public File submitMultiArrayUDF(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfo(namespace, udf, acceptEncoding); + public File submitMultiArrayUDF(String workspace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfo(workspace, 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 workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return ApiResponse<File> @@ -1241,8 +1266,8 @@ public File submitMultiArrayUDF(String namespace, MultiArrayUDF udf, String acce 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + public ApiResponse submitMultiArrayUDFWithHttpInfo(String workspace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(workspace, udf, acceptEncoding, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1250,7 +1275,7 @@ public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, Multi /** * (asynchronously) * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -1264,16 +1289,17 @@ public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, Multi 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitMultiArrayUDFAsync(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitMultiArrayUDFAsync(String workspace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, _callback); + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(workspace, udf, acceptEncoding, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1290,7 +1316,7 @@ public okhttp3.Call submitMultiArrayUDFAsync(String namespace, MultiArrayUDF udf 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitUDFCall(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1307,9 +1333,10 @@ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/udf/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/udf/submit" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1345,35 +1372,44 @@ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitUDF(Async)"); - } - + private okhttp3.Call submitUDFValidateBeforeCall(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitUDF(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling submitUDF(Async)"); + } + // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling submitUDF(Async)"); } - + // verify the required parameter 'udf' is set if (udf == null) { throw new ApiException("Missing the required parameter 'udf' when calling submitUDF(Async)"); } + - return submitUDFCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); + okhttp3.Call localVarCall = submitUDFCall(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2, _callback); + return localVarCall; } /** * * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1389,15 +1425,16 @@ private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public File submitUDF(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfo(namespace, array, udf, xPayer, acceptEncoding, v2); + public File submitUDF(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfo(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2); return localVarResp.getData(); } /** * * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1413,8 +1450,8 @@ public File submitUDF(String namespace, String array, MultiArrayUDF udf, String 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitUDFWithHttpInfo(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); + public ApiResponse submitUDFWithHttpInfo(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1422,7 +1459,8 @@ public ApiResponse submitUDFWithHttpInfo(String namespace, String array, M /** * (asynchronously) * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1439,16 +1477,16 @@ public ApiResponse submitUDFWithHttpInfo(String namespace, String array, M 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitUDFAsync(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitUDFAsync(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for udfNamespaceArrayEndTimestampsGet - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for udfWorkspaceArrayEndTimestampsGet + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1463,7 +1501,7 @@ public okhttp3.Call submitUDFAsync(String namespace, String array, MultiArrayUDF 0 error response - */ - public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call udfWorkspaceArrayEndTimestampsGetCall(String workspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1480,9 +1518,9 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{array}/end_timestamps" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); + String localVarPath = "/udf/{workspace}/{array}/end_timestamps" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1507,36 +1545,40 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, Stri } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call udfNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling udfNamespaceArrayEndTimestampsGet(Async)"); + private okhttp3.Call udfWorkspaceArrayEndTimestampsGetValidateBeforeCall(String workspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling udfWorkspaceArrayEndTimestampsGet(Async)"); } - + // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling udfNamespaceArrayEndTimestampsGet(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling udfWorkspaceArrayEndTimestampsGet(Async)"); } + - return udfNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = udfWorkspaceArrayEndTimestampsGetCall(workspace, array, page, perPage, _callback); + return localVarCall; } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1550,15 +1592,15 @@ private okhttp3.Call udfNamespaceArrayEndTimestampsGetValidateBeforeCall(String 0 error response - */ - public ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(String namespace, String array, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = udfNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + public ArrayEndTimestampData udfWorkspaceArrayEndTimestampsGet(String workspace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = udfWorkspaceArrayEndTimestampsGetWithHttpInfo(workspace, array, page, perPage); return localVarResp.getData(); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1572,8 +1614,8 @@ public ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(String namespace, 0 error response - */ - public ApiResponse udfNamespaceArrayEndTimestampsGetWithHttpInfo(String namespace, String array, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + public ApiResponse udfWorkspaceArrayEndTimestampsGetWithHttpInfo(String workspace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = udfWorkspaceArrayEndTimestampsGetValidateBeforeCall(workspace, array, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1581,7 +1623,7 @@ public ApiResponse udfNamespaceArrayEndTimestampsGetWithH /** * (asynchronously) * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1596,16 +1638,16 @@ public ApiResponse udfNamespaceArrayEndTimestampsGetWithH 0 error response - */ - public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call udfWorkspaceArrayEndTimestampsGetAsync(String workspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = udfWorkspaceArrayEndTimestampsGetValidateBeforeCall(workspace, array, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @param _callback Callback for upload/download progress @@ -1619,7 +1661,7 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync(String namespace, Str 0 error response - */ - public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUDFInfoCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1636,9 +1678,9 @@ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpda Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/udf/{workspace}/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1662,35 +1704,38 @@ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpda localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateUDFInfo(Async)"); + private okhttp3.Call updateUDFInfoValidateBeforeCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateUDFInfo(Async)"); } - + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling updateUDFInfo(Async)"); } - + // verify the required parameter 'udf' is set if (udf == null) { throw new ApiException("Missing the required parameter 'udf' when calling updateUDFInfo(Async)"); } + - return updateUDFInfoCall(namespace, name, udf, _callback); + okhttp3.Call localVarCall = updateUDFInfoCall(workspace, name, udf, _callback); + return localVarCall; } /** * * update an existing registered UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1702,14 +1747,14 @@ private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String na 0 error response - */ - public void updateUDFInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - updateUDFInfoWithHttpInfo(namespace, name, udf); + public void updateUDFInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + updateUDFInfoWithHttpInfo(workspace, name, udf); } /** * * update an existing registered UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @return ApiResponse<Void> @@ -1722,15 +1767,15 @@ public void updateUDFInfo(String namespace, String name, UDFInfoUpdate udf) thro 0 error response - */ - public ApiResponse updateUDFInfoWithHttpInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(namespace, name, udf, null); + public ApiResponse updateUDFInfoWithHttpInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(workspace, name, udf, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update an existing registered UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @param _callback The callback to be executed when the API call finishes @@ -1744,309 +1789,10 @@ public ApiResponse updateUDFInfoWithHttpInfo(String namespace, String name 0 error response - */ - public okhttp3.Call updateUDFInfoAsync(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUDFInfoAsync(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(namespace, name, udf, _callback); + okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(workspace, name, udf, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitGenericUDFString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitGenericUDFBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<byte[]> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return Object - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<Object> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitMultiArrayUDFWithHttpInfoString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<byte[]> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitUDFString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoString(namespace, array, udf, xPayer, acceptEncoding, v2); - return localVarResp.getData(); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitUDFWithHttpInfoString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitUDFBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoBytes(namespace, array, udf, xPayer, acceptEncoding, v2); - return localVarResp.getData(); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return ApiResponse<byte[]> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitUDFWithHttpInfoBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java index 829c985..260add0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java @@ -19,8 +19,6 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; -import io.tiledb.cloud.rest_api.ProgressRequestBody; -import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -28,7 +26,8 @@ import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; -import io.tiledb.cloud.rest_api.model.Error; + +import java.time.OffsetDateTime; import io.tiledb.cloud.rest_api.model.OrganizationUser; import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; import io.tiledb.cloud.rest_api.model.Token; @@ -81,7 +80,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for addAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -94,7 +94,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +111,9 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -136,30 +137,39 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); - } - + private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addAWSAccessCredentials(Async)"); + } + // verify the required parameter 'awsAccessCredentials' is set if (awsAccessCredentials == null) { throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); } + - return addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = addAWSAccessCredentialsCall(workspace, teamspace, awsAccessCredentials, _callback); + return localVarCall; } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -170,14 +180,15 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, 0 error response - */ - public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); + public void addAWSAccessCredentials(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + addAWSAccessCredentialsWithHttpInfo(workspace, teamspace, awsAccessCredentials); } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -189,15 +200,16 @@ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAc 0 error response - */ - public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); + public ApiResponse addAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -210,9 +222,9 @@ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, A 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsAsync(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -249,7 +261,7 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU // create path and map variables String localVarPath = "/organizations/{organization}/user" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -273,23 +285,26 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling addUserToOrganization(Async)"); } - + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling addUserToOrganization(Async)"); } + - return addUserToOrganizationCall(organization, user, _callback); + okhttp3.Call localVarCall = addUserToOrganizationCall(organization, user, _callback); + return localVarCall; } @@ -355,7 +370,8 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization } /** * Build call for checkAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -367,7 +383,7 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -384,8 +400,9 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -402,31 +419,41 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); + private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentials(Async)"); } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentials(Async)"); + } + - return checkAWSAccessCredentialsCall(namespace, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsCall(workspace, teamspace, _callback); + return localVarCall; } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return List<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -437,15 +464,16 @@ private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespac 0 error response - */ - public List checkAWSAccessCredentials(String namespace) throws ApiException { - ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); + public List checkAWSAccessCredentials(String workspace, String teamspace) throws ApiException { + ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(workspace, teamspace); return localVarResp.getData(); } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return ApiResponse<List<AWSAccessCredentials>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -456,8 +484,8 @@ public List checkAWSAccessCredentials(String namespace) th 0 error response - */ - public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); + public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -465,7 +493,8 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp /** * (asynchronously) * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -477,16 +506,17 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsAsync(String workspace, String teamspace, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for checkAWSAccessCredentialsByName - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -499,7 +529,7 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -516,9 +546,10 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -535,36 +566,46 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); - } - + private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentialsByName(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentialsByName(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); } + - return checkAWSAccessCredentialsByNameCall(namespace, name, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @return AWSAccessCredentials * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -576,15 +617,16 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na 0 error response - */ - public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) throws ApiException { - ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); + public AWSAccessCredentials checkAWSAccessCredentialsByName(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @return ApiResponse<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -596,8 +638,8 @@ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, St 0 error response - */ - public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); + public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -605,7 +647,8 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp /** * (asynchronously) * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -618,9 +661,9 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -672,19 +715,23 @@ public okhttp3.Call confirmEmailCall(final ApiCallback _callback) throws ApiExce } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call confirmEmailValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return confirmEmailCall(_callback); + + + okhttp3.Call localVarCall = confirmEmailCall(_callback); + return localVarCall; } @@ -797,18 +844,21 @@ public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throw localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); } + - return createUserCall(user, _callback); + okhttp3.Call localVarCall = createUserCall(user, _callback); + return localVarCall; } @@ -871,7 +921,8 @@ public okhttp3.Call createUserAsync(User user, final ApiCallback _callback } /** * Build call for deleteAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -884,7 +935,7 @@ public okhttp3.Call createUserAsync(User user, final ApiCallback _callback 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -901,9 +952,10 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -920,36 +972,46 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); - } - + private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteAWSAccessCredentials(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); } + - return deleteAWSAccessCredentialsCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteAWSAccessCredentialsCall(workspace, teamspace, name, _callback); + return localVarCall; } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -960,14 +1022,15 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { - deleteAWSAccessCredentialsWithHttpInfo(namespace, name); + public void deleteAWSAccessCredentials(String workspace, String teamspace, String name) throws ApiException { + deleteAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -979,15 +1042,16 @@ public void deleteAWSAccessCredentials(String namespace, String name) throws Api 0 error response - */ - public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); + public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1000,9 +1064,9 @@ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -1038,7 +1102,7 @@ public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) // create path and map variables String localVarPath = "/users/{username}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1055,24 +1119,28 @@ public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); } + - return deleteUserCall(username, _callback); + okhttp3.Call localVarCall = deleteUserCall(username, _callback); + return localVarCall; } @@ -1166,8 +1234,8 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1184,29 +1252,33 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)"); } - + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)"); } + - return deleteUserFromOrganizationCall(organization, username, _callback); + okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback); + return localVarCall; } @@ -1304,8 +1376,8 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1322,29 +1394,33 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getOrganizationUser(Async)"); } - + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)"); } + - return getOrganizationUserCall(organization, username, _callback); + okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); + return localVarCall; } @@ -1418,6 +1494,7 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam /** * Build call for getSession * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1429,7 +1506,7 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam 0 error response - */ - public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSessionCall(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1458,6 +1535,10 @@ public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callbac localVarQueryParams.addAll(localVarApiClient.parameterToPair("remember_me", rememberMe)); } + if (expires != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("expires", expires)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1467,19 +1548,23 @@ public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callbac } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCallback _callback) throws ApiException { - return getSessionCall(rememberMe, _callback); + private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getSessionCall(rememberMe, expires, _callback); + return localVarCall; } @@ -1487,6 +1572,7 @@ private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCa * * Get session token for user * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @return Token * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1497,8 +1583,8 @@ private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCa 0 error response - */ - public Token getSession(String rememberMe) throws ApiException { - ApiResponse localVarResp = getSessionWithHttpInfo(rememberMe); + public Token getSession(String rememberMe, OffsetDateTime expires) throws ApiException { + ApiResponse localVarResp = getSessionWithHttpInfo(rememberMe, expires); return localVarResp.getData(); } @@ -1506,6 +1592,7 @@ public Token getSession(String rememberMe) throws ApiException { * * Get session token for user * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @return ApiResponse<Token> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1516,8 +1603,8 @@ public Token getSession(String rememberMe) throws ApiException { 0 error response - */ - public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiException { - okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, null); + public ApiResponse getSessionWithHttpInfo(String rememberMe, OffsetDateTime expires) throws ApiException { + okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, expires, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1526,6 +1613,7 @@ public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiEx * (asynchronously) * Get session token for user * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1537,9 +1625,9 @@ public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiEx 0 error response - */ - public okhttp3.Call getSessionAsync(String rememberMe, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSessionAsync(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, _callback); + okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, expires, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1591,19 +1679,23 @@ public okhttp3.Call getTokenScopesCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTokenScopesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getTokenScopesCall(_callback); + + + okhttp3.Call localVarCall = getTokenScopesCall(_callback); + return localVarCall; } @@ -1712,19 +1804,23 @@ public okhttp3.Call getUserCall(final ApiCallback _callback) throws ApiException } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getUserValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getUserCall(_callback); + + + okhttp3.Call localVarCall = getUserCall(_callback); + return localVarCall; } @@ -1819,7 +1915,7 @@ public okhttp3.Call getUserWithUsernameCall(String username, final ApiCallback _ // create path and map variables String localVarPath = "/users/{username}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1836,24 +1932,28 @@ public okhttp3.Call getUserWithUsernameCall(String username, final ApiCallback _ } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getUserWithUsernameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserWithUsername(Async)"); } + - return getUserWithUsernameCall(username, _callback); + okhttp3.Call localVarCall = getUserWithUsernameCall(username, _callback); + return localVarCall; } @@ -1976,13 +2076,16 @@ public okhttp3.Call requestTokenCall(TokenRequest tokenRequest, final ApiCallbac localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call requestTokenValidateBeforeCall(TokenRequest tokenRequest, final ApiCallback _callback) throws ApiException { - return requestTokenCall(tokenRequest, _callback); + + + okhttp3.Call localVarCall = requestTokenCall(tokenRequest, _callback); + return localVarCall; } @@ -2103,18 +2206,21 @@ public okhttp3.Call resetUserPasswordCall(ResetUserPasswordRequest user, final A localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call resetUserPasswordValidateBeforeCall(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling resetUserPassword(Async)"); } + - return resetUserPasswordCall(user, _callback); + okhttp3.Call localVarCall = resetUserPasswordCall(user, _callback); + return localVarCall; } @@ -2210,7 +2316,7 @@ public okhttp3.Call revokeTokenCall(String token, final ApiCallback _callback) t // create path and map variables String localVarPath = "/tokens/{token}" - .replace("{" + "token" + "}", localVarApiClient.escapeString(token.toString())); + .replaceAll("\\{" + "token" + "\\}", localVarApiClient.escapeString(token.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2227,24 +2333,28 @@ public okhttp3.Call revokeTokenCall(String token, final ApiCallback _callback) t } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call revokeTokenValidateBeforeCall(String token, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'token' is set if (token == null) { throw new ApiException("Missing the required parameter 'token' when calling revokeToken(Async)"); } + - return revokeTokenCall(token, _callback); + okhttp3.Call localVarCall = revokeTokenCall(token, _callback); + return localVarCall; } @@ -2352,19 +2462,23 @@ public okhttp3.Call tokensGetCall(final ApiCallback _callback) throws ApiExcepti } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call tokensGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return tokensGetCall(_callback); + + + okhttp3.Call localVarCall = tokensGetCall(_callback); + return localVarCall; } @@ -2473,19 +2587,23 @@ public okhttp3.Call tokensSessionGetCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call tokensSessionGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return tokensSessionGetCall(_callback); + + + okhttp3.Call localVarCall = tokensSessionGetCall(_callback); + return localVarCall; } @@ -2549,7 +2667,8 @@ public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callba } /** * Build call for updateAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback Callback for upload/download progress @@ -2563,7 +2682,7 @@ public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callba 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2580,9 +2699,10 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replaceAll("\\{" + "workspace" + "\\}", localVarApiClient.escapeString(workspace.toString())) + .replaceAll("\\{" + "teamspace" + "\\}", localVarApiClient.escapeString(teamspace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2606,35 +2726,44 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); - } - + private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateAWSAccessCredentials(Async)"); + } + // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling updateAWSAccessCredentials(Async)"); } - + // verify the required parameter 'awsAccessCredentials' is set if (awsAccessCredentials == null) { throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); } + - return updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = updateAWSAccessCredentialsCall(workspace, teamspace, name, awsAccessCredentials, _callback); + return localVarCall; } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2646,14 +2775,15 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void updateAWSAccessCredentials(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); + public void updateAWSAccessCredentials(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + updateAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name, awsAccessCredentials); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @return ApiResponse<Void> @@ -2666,15 +2796,16 @@ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessC 0 error response - */ - public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); + public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback The callback to be executed when the API call finishes @@ -2688,9 +2819,9 @@ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsAsync(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -2727,7 +2858,7 @@ public okhttp3.Call updateUserCall(String username, User user, final ApiCallback // create path and map variables String localVarPath = "/users/{username}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2751,23 +2882,26 @@ public okhttp3.Call updateUserCall(String username, User user, final ApiCallback localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); } - + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)"); } + - return updateUserCall(username, user, _callback); + okhttp3.Call localVarCall = updateUserCall(username, user, _callback); + return localVarCall; } @@ -2865,8 +2999,8 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2890,28 +3024,31 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateUserInOrganization(Async)"); } - + // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUserInOrganization(Async)"); } - + // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling updateUserInOrganization(Async)"); } + - return updateUserInOrganizationCall(organization, username, user, _callback); + okhttp3.Call localVarCall = updateUserInOrganizationCall(organization, username, user, _callback); + return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java index e32026b..bcd4cf4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java index 1ff06ac..4abe027 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java @@ -22,6 +22,8 @@ import java.util.Map; import java.util.List; +import java.io.UnsupportedEncodingException; + public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java index 7ee8914..b2ccd72 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java @@ -17,15 +17,13 @@ import io.tiledb.cloud.rest_api.Pair; import java.net.URI; -import java.util.List; import java.util.Map; -import java.util.Optional; -import java.util.function.Supplier; +import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class HttpBearerAuth implements Authentication { private final String scheme; - private Supplier tokenSupplier; + private String bearerToken; public HttpBearerAuth(String scheme) { this.scheme = scheme; @@ -37,7 +35,7 @@ public HttpBearerAuth(String scheme) { * @return The bearer token */ public String getBearerToken() { - return tokenSupplier.get(); + return bearerToken; } /** @@ -46,22 +44,12 @@ public String getBearerToken() { * @param bearerToken The bearer token to send in the Authorization header */ public void setBearerToken(String bearerToken) { - this.tokenSupplier = () -> bearerToken; - } - - /** - * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. - * - * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header - */ - public void setBearerToken(Supplier tokenSupplier) { - this.tokenSupplier = tokenSupplier; + this.bearerToken = bearerToken; } @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { - String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); if (bearerToken == null) { return; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java index be06af4..978ca5c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java index b826d7d..89259b0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java @@ -16,7 +16,7 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java index f945585..acfd332 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java @@ -65,8 +65,8 @@ public RetryingOAuth( .setClientSecret(clientSecret)); setFlow(flow); if (parameters != null) { - for (Map.Entry entry : parameters.entrySet()) { - tokenRequestBuilder.setParameter(entry.getKey(), entry.getValue()); + for (String paramName : parameters.keySet()) { + tokenRequestBuilder.setParameter(paramName, parameters.get(paramName)); } } } @@ -129,8 +129,8 @@ private Response retryingIntercept(Chain chain, boolean updateTokenAndRetryOnAut } Map headers = oAuthRequest.getHeaders(); - for (Map.Entry entry : headers.entrySet()) { - requestBuilder.addHeader(entry.getKey(), entry.getValue()); + for (String headerName : headers.keySet()) { + requestBuilder.addHeader(headerName, headers.get(headerName)); } requestBuilder.url(oAuthRequest.getLocationUri()); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java index 42621e9..28dd72b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +44,8 @@ /** * Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class AWSAccessCredentials { public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) @@ -76,7 +69,7 @@ public class AWSAccessCredentials { public static final String SERIALIZED_NAME_BUCKETS = "buckets"; @SerializedName(SERIALIZED_NAME_BUCKETS) - private List buckets = new ArrayList<>(); + private List buckets = null; public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -86,9 +79,10 @@ public class AWSAccessCredentials { @SerializedName(SERIALIZED_NAME_UPDATED_AT) private OffsetDateTime updatedAt; - public AWSAccessCredentials() { + public AWSAccessCredentials() { } + public AWSAccessCredentials( OffsetDateTime createdAt, OffsetDateTime updatedAt @@ -99,101 +93,122 @@ public AWSAccessCredentials( } public AWSAccessCredentials secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey; return this; } - /** + /** * aws secret access key, never returned in get requests * @return secretAccessKey - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "aws secret access key, never returned in get requests") + public String getSecretAccessKey() { return secretAccessKey; } + public void setSecretAccessKey(String secretAccessKey) { this.secretAccessKey = secretAccessKey; } public AWSAccessCredentials accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId; return this; } - /** + /** * aws access key * @return accessKeyId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "aws access key") + public String getAccessKeyId() { return accessKeyId; } + public void setAccessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; } public AWSAccessCredentials serviceRoleArn(String serviceRoleArn) { + this.serviceRoleArn = serviceRoleArn; return this; } - /** + /** * aws service role to use for access * @return serviceRoleArn - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "aws service role to use for access") + public String getServiceRoleArn() { return serviceRoleArn; } + public void setServiceRoleArn(String serviceRoleArn) { this.serviceRoleArn = serviceRoleArn; } public AWSAccessCredentials name(String name) { + this.name = name; return this; } - /** + /** * human readable name * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "human readable name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public AWSAccessCredentials _default(Boolean _default) { + this._default = _default; return this; } - /** + /** * true if this is the default credential to be used within this namespace * @return _default - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "true if this is the default credential to be used within this namespace") + public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } public AWSAccessCredentials buckets(List buckets) { + this.buckets = buckets; return this; } @@ -206,41 +221,50 @@ public AWSAccessCredentials addBucketsItem(String bucketsItem) { return this; } - /** + /** * a whitelist of one or more buckets this key should access * @return buckets - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "a whitelist of one or more buckets this key should access") + public List getBuckets() { return buckets; } + public void setBuckets(List buckets) { this.buckets = buckets; } - /** + /** * Time when UDF dependencies were created (rfc3339) * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Time when UDF dependencies were created (rfc3339)") + public OffsetDateTime getCreatedAt() { return createdAt; } - /** + + /** * Time when UDF dependencies was last updated (rfc3339) * @return updatedAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Time when UDF dependencies was last updated (rfc3339)") + public OffsetDateTime getUpdatedAt() { return updatedAt; } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -251,10 +275,6 @@ public OffsetDateTime getUpdatedAt() { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AWSAccessCredentials instance itself */ public AWSAccessCredentials putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -266,8 +286,6 @@ public AWSAccessCredentials putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -275,9 +293,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -360,33 +375,34 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AWSAccessCredentials - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AWSAccessCredentials.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AWSAccessCredentials + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AWSAccessCredentials.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in AWSAccessCredentials is not found in the empty JSON string", AWSAccessCredentials.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonNull()) && !jsonObj.get("secret_access_key").isJsonPrimitive()) { + if (jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `secret_access_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret_access_key").toString())); } - if ((jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonNull()) && !jsonObj.get("access_key_id").isJsonPrimitive()) { + if (jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_key_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_key_id").toString())); } - if ((jsonObj.get("service_role_arn") != null && !jsonObj.get("service_role_arn").isJsonNull()) && !jsonObj.get("service_role_arn").isJsonPrimitive()) { + if (jsonObj.get("service_role_arn") != null && !jsonObj.get("service_role_arn").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `service_role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service_role_arn").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("buckets") != null && !jsonObj.get("buckets").isJsonNull() && !jsonObj.get("buckets").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("buckets") != null && !jsonObj.get("buckets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buckets` to be an array in the JSON string but got `%s`", jsonObj.get("buckets").toString())); } } @@ -407,7 +423,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AWSAccessCredentials value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -419,12 +435,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -433,9 +444,8 @@ else if (entry.getValue() instanceof Character) @Override public AWSAccessCredentials read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance AWSAccessCredentials instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -449,10 +459,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -463,22 +471,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AWSAccessCredentials given an JSON string - * - * @param jsonString JSON string - * @return An instance of AWSAccessCredentials - * @throws IOException if the JSON string is invalid with respect to AWSAccessCredentials - */ + /** + * Create an instance of AWSAccessCredentials given an JSON string + * + * @param jsonString JSON string + * @return An instance of AWSAccessCredentials + * @throws IOException if the JSON string is invalid with respect to AWSAccessCredentials + */ public static AWSAccessCredentials fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AWSAccessCredentials.class); } - /** - * Convert an instance of AWSAccessCredentials to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AWSAccessCredentials to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java index 49769f1..e26aec3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java @@ -13,15 +13,17 @@ package io.tiledb.cloud.rest_api.model; -import io.tiledb.cloud.rest_api.ApiException; import java.util.Objects; import java.lang.reflect.Type; import java.util.Map; +import javax.ws.rs.core.GenericType; + +//import com.fasterxml.jackson.annotation.JsonValue; /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -43,7 +45,7 @@ public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { * * @return an instance of the actual schema/object */ - public abstract Map> getSchemas(); + public abstract Map getSchemas(); /** * Get the actual instance diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java index 8573205..a6fb118 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -59,7 +58,9 @@ public enum ActivityEventType { READ_FRAGMENT_INFO("read_fragment_info"), - READ_ENUMERATIONS("read_enumerations"); + READ_ENUMERATIONS("read_enumerations"), + + NEXTFLOW("nextflow"); private String value; @@ -97,10 +98,5 @@ public ActivityEventType read(final JsonReader jsonReader) throws IOException { return ActivityEventType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ActivityEventType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java index a9af199..3973a23 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java @@ -14,36 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Querytype; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +42,8 @@ /** * Represents an open array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Represents an open array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Array { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @SerializedName(SERIALIZED_NAME_TIMESTAMP) @@ -65,61 +57,73 @@ public class Array { @SerializedName(SERIALIZED_NAME_URI) private String uri; - public Array() { + public Array() { } public Array timestamp(BigDecimal timestamp) { + this.timestamp = timestamp; return this; } - /** + /** * timestamp (epoch milliseconds) array is opened at * @return timestamp - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "1540471791873", required = true, value = "timestamp (epoch milliseconds) array is opened at") + public BigDecimal getTimestamp() { return timestamp; } + public void setTimestamp(BigDecimal timestamp) { this.timestamp = timestamp; } public Array queryType(Querytype queryType) { + this.queryType = queryType; return this; } - /** + /** * Get queryType * @return queryType - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Querytype getQueryType() { return queryType; } + public void setQueryType(Querytype queryType) { this.queryType = queryType; } public Array uri(String uri) { + this.uri = uri; return this; } - /** + /** * Array uri * @return uri - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Array uri") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } @@ -134,10 +138,6 @@ public void setUri(String uri) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Array instance itself */ public Array putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -149,8 +149,6 @@ public Array putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -158,9 +156,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -231,29 +226,28 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("uri"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Array - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Array.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Array + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Array.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Array is not found in the empty JSON string", Array.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Array.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `queryType` - Querytype.validateJsonElement(jsonObj.get("queryType")); - if (!jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } } @@ -274,7 +268,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Array value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -286,12 +280,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -300,9 +289,8 @@ else if (entry.getValue() instanceof Character) @Override public Array read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Array instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -316,10 +304,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -330,22 +316,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Array given an JSON string - * - * @param jsonString JSON string - * @return An instance of Array - * @throws IOException if the JSON string is invalid with respect to Array - */ + /** + * Create an instance of Array given an JSON string + * + * @param jsonString JSON string + * @return An instance of Array + * @throws IOException if the JSON string is invalid with respect to Array + */ public static Array fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Array.class); } - /** - * Convert an instance of Array to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Array to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java index a45a6cf..0b59ed7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -77,10 +76,5 @@ public ArrayActions read(final JsonReader jsonReader) throws IOException { return ArrayActions.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ArrayActions.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java index 098a6ee..a3f0228 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java @@ -14,36 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ActivityEventType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +42,8 @@ /** * Actvity of an Array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Actvity of an Array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayActivityLog { public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; @SerializedName(SERIALIZED_NAME_EVENT_AT) @@ -89,175 +81,211 @@ public class ArrayActivityLog { @SerializedName(SERIALIZED_NAME_QUERY_STATS) private String queryStats; - public ArrayActivityLog() { + public ArrayActivityLog() { } public ArrayActivityLog eventAt(OffsetDateTime eventAt) { + this.eventAt = eventAt; return this; } - /** + /** * time event took place (RFC3339) * @return eventAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "time event took place (RFC3339)") + public OffsetDateTime getEventAt() { return eventAt; } + public void setEventAt(OffsetDateTime eventAt) { this.eventAt = eventAt; } public ArrayActivityLog action(ActivityEventType action) { + this.action = action; return this; } - /** + /** * Get action * @return action - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ActivityEventType getAction() { return action; } + public void setAction(ActivityEventType action) { this.action = action; } public ArrayActivityLog username(String username) { + this.username = username; return this; } - /** + /** * User who performed action * @return username - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "user1", value = "User who performed action") + public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public ArrayActivityLog bytesSent(Integer bytesSent) { + this.bytesSent = bytesSent; return this; } - /** + /** * Bytes sent to client * @return bytesSent - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "Bytes sent to client") + public Integer getBytesSent() { return bytesSent; } + public void setBytesSent(Integer bytesSent) { this.bytesSent = bytesSent; } public ArrayActivityLog bytesReceived(Integer bytesReceived) { + this.bytesReceived = bytesReceived; return this; } - /** + /** * Bytes recieved from client * @return bytesReceived - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "Bytes recieved from client") + public Integer getBytesReceived() { return bytesReceived; } + public void setBytesReceived(Integer bytesReceived) { this.bytesReceived = bytesReceived; } public ArrayActivityLog arrayTaskId(String arrayTaskId) { + this.arrayTaskId = arrayTaskId; return this; } - /** + /** * UUID of associated array task * @return arrayTaskId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "UUID of associated array task") + public String getArrayTaskId() { return arrayTaskId; } + public void setArrayTaskId(String arrayTaskId) { this.arrayTaskId = arrayTaskId; } public ArrayActivityLog id(String id) { + this.id = id; return this; } - /** + /** * ID of the activity * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "ID of the activity") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public ArrayActivityLog queryRanges(String queryRanges) { + this.queryRanges = queryRanges; return this; } - /** + /** * ranges for query * @return queryRanges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}", value = "ranges for query") + public String getQueryRanges() { return queryRanges; } + public void setQueryRanges(String queryRanges) { this.queryRanges = queryRanges; } public ArrayActivityLog queryStats(String queryStats) { + this.queryStats = queryStats; return this; } - /** + /** * stats for query * @return queryStats - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\": 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\": 191, \"...\": \"...\"}}", value = "stats for query") + public String getQueryStats() { return queryStats; } + public void setQueryStats(String queryStats) { this.queryStats = queryStats; } @@ -272,10 +300,6 @@ public void setQueryStats(String queryStats) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayActivityLog instance itself */ public ArrayActivityLog putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -287,8 +311,6 @@ public ArrayActivityLog putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -296,9 +318,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -384,67 +403,33 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayActivityLog - */ + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayActivityLog + */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); - } - if (jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); - } - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayActivityLog - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayActivityLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + if (jsonObj == null) { + if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `action` - if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { - ActivityEventType.validateJsonElement(jsonObj.get("action")); - } - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } - if ((jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonNull()) && !jsonObj.get("array_task_id").isJsonPrimitive()) { + if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) && !jsonObj.get("query_ranges").isJsonPrimitive()) { + if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); } - if ((jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonNull()) && !jsonObj.get("query_stats").isJsonPrimitive()) { + if (jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); } } @@ -465,7 +450,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayActivityLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -477,12 +462,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -491,9 +471,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayActivityLog read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayActivityLog instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -507,10 +486,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -521,22 +498,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayActivityLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayActivityLog - * @throws IOException if the JSON string is invalid with respect to ArrayActivityLog - */ + /** + * Create an instance of ArrayActivityLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayActivityLog + * @throws IOException if the JSON string is invalid with respect to ArrayActivityLog + */ public static ArrayActivityLog fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayActivityLog.class); } - /** - * Convert an instance of ArrayActivityLog to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayActivityLog to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java index 6733bbc..3162ead 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Object including array info and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including array info and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayBrowserData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) - private List arrays = new ArrayList<>(); + private List arrays = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayBrowserData() { + public ArrayBrowserData() { } public ArrayBrowserData arrays(List arrays) { + this.arrays = arrays; return this; } @@ -79,34 +72,41 @@ public ArrayBrowserData addArraysItem(ArrayInfo arraysItem) { return this; } - /** + /** * Array Info * @return arrays - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Array Info") + public List getArrays() { return arrays; } + public void setArrays(List arrays) { this.arrays = arrays; } public ArrayBrowserData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayBrowserData instance itself */ public ArrayBrowserData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public ArrayBrowserData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayBrowserData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayBrowserData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayBrowserData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayBrowserData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserData is not found in the empty JSON string", ArrayBrowserData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); - } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - ArrayInfo.validateJsonElement(jsonArrayarrays.get(i)); - }; + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + ArrayInfo.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayBrowserData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayBrowserData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayBrowserData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayBrowserData - * @throws IOException if the JSON string is invalid with respect to ArrayBrowserData - */ + /** + * Create an instance of ArrayBrowserData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayBrowserData + * @throws IOException if the JSON string is invalid with respect to ArrayBrowserData + */ public static ArrayBrowserData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayBrowserData.class); } - /** - * Convert an instance of ArrayBrowserData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayBrowserData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java index 2fe35b3..3c2260d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,11 +43,12 @@ /** * Object for ui array tasks browser page */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object for ui array tasks browser page") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayBrowserSidebar { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = new ArrayList<>(); + private List namespaces = null; public static final String SERIALIZED_NAME_RESULT_COUNT_FOR_ALL = "result_count_for_all"; @SerializedName(SERIALIZED_NAME_RESULT_COUNT_FOR_ALL) @@ -65,10 +58,11 @@ public class ArrayBrowserSidebar { @SerializedName(SERIALIZED_NAME_RESULT_COUNT_BY_NAMESPACE) private Object resultCountByNamespace; - public ArrayBrowserSidebar() { + public ArrayBrowserSidebar() { } public ArrayBrowserSidebar namespaces(List namespaces) { + this.namespaces = namespaces; return this; } @@ -81,53 +75,64 @@ public ArrayBrowserSidebar addNamespacesItem(String namespacesItem) { return this; } - /** + /** * list of all unique namespaces to display * @return namespaces - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of all unique namespaces to display") + public List getNamespaces() { return namespaces; } + public void setNamespaces(List namespaces) { this.namespaces = namespaces; } public ArrayBrowserSidebar resultCountForAll(Integer resultCountForAll) { + this.resultCountForAll = resultCountForAll; return this; } - /** + /** * A count of \"all\" of category * @return resultCountForAll - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A count of \"all\" of category") + public Integer getResultCountForAll() { return resultCountForAll; } + public void setResultCountForAll(Integer resultCountForAll) { this.resultCountForAll = resultCountForAll; } public ArrayBrowserSidebar resultCountByNamespace(Object resultCountByNamespace) { + this.resultCountByNamespace = resultCountByNamespace; return this; } - /** + /** * A map that includes the result count by namespace * @return resultCountByNamespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A map that includes the result count by namespace") + public Object getResultCountByNamespace() { return resultCountByNamespace; } + public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } @@ -142,10 +147,6 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayBrowserSidebar instance itself */ public ArrayBrowserSidebar putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -157,8 +158,6 @@ public ArrayBrowserSidebar putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -166,9 +165,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -236,21 +232,22 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayBrowserSidebar - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayBrowserSidebar.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayBrowserSidebar + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayBrowserSidebar.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserSidebar is not found in the empty JSON string", ArrayBrowserSidebar.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); } } @@ -271,7 +268,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -283,12 +280,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -297,9 +289,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayBrowserSidebar read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -313,10 +304,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -327,22 +316,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayBrowserSidebar given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayBrowserSidebar - * @throws IOException if the JSON string is invalid with respect to ArrayBrowserSidebar - */ + /** + * Create an instance of ArrayBrowserSidebar given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayBrowserSidebar + * @throws IOException if the JSON string is invalid with respect to ArrayBrowserSidebar + */ public static ArrayBrowserSidebar fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayBrowserSidebar.class); } - /** - * Convert an instance of ArrayBrowserSidebar to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayBrowserSidebar to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java index f492694..719ef85 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +43,8 @@ /** * Request to consolidate an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Request to consolidate an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayConsolidationRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -60,31 +52,36 @@ public class ArrayConsolidationRequest { public static final String SERIALIZED_NAME_FRAGMENTS = "fragments"; @SerializedName(SERIALIZED_NAME_FRAGMENTS) - private List fragments = new ArrayList<>(); + private List fragments = null; - public ArrayConsolidationRequest() { + public ArrayConsolidationRequest() { } public ArrayConsolidationRequest config(TileDBConfig config) { + this.config = config; return this; } - /** + /** * Get config * @return config - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TileDBConfig getConfig() { return config; } + public void setConfig(TileDBConfig config) { this.config = config; } public ArrayConsolidationRequest fragments(List fragments) { + this.fragments = fragments; return this; } @@ -97,15 +94,18 @@ public ArrayConsolidationRequest addFragmentsItem(String fragmentsItem) { return this; } - /** + /** * list of fragments in the array to consolidate * @return fragments - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of fragments in the array to consolidate") + public List getFragments() { return fragments; } + public void setFragments(List fragments) { this.fragments = fragments; } @@ -120,10 +120,6 @@ public void setFragments(List fragments) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayConsolidationRequest instance itself */ public ArrayConsolidationRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -135,8 +131,6 @@ public ArrayConsolidationRequest putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -144,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -211,25 +202,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayConsolidationRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayConsolidationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayConsolidationRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayConsolidationRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayConsolidationRequest is not found in the empty JSON string", ArrayConsolidationRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); + if (jsonObj.getAsJsonObject("config") != null) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); } - // ensure the optional json data is an array if present - if (jsonObj.get("fragments") != null && !jsonObj.get("fragments").isJsonNull() && !jsonObj.get("fragments").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fragments") != null && !jsonObj.get("fragments").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragments` to be an array in the JSON string but got `%s`", jsonObj.get("fragments").toString())); } } @@ -250,7 +242,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayConsolidationRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -262,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -276,9 +263,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayConsolidationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayConsolidationRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -292,10 +278,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -306,22 +290,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayConsolidationRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayConsolidationRequest - * @throws IOException if the JSON string is invalid with respect to ArrayConsolidationRequest - */ + /** + * Create an instance of ArrayConsolidationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayConsolidationRequest + * @throws IOException if the JSON string is invalid with respect to ArrayConsolidationRequest + */ public static ArrayConsolidationRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayConsolidationRequest.class); } - /** - * Convert an instance of ArrayConsolidationRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayConsolidationRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java index de322f0..46c75a1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,20 +43,22 @@ /** * Object including array end_timestamps (list of Unix epoch timestamps in milliseconds) and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including array end_timestamps (list of Unix epoch timestamps in milliseconds) and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayEndTimestampData { public static final String SERIALIZED_NAME_END_TIMESTAMPS = "end_timestamps"; @SerializedName(SERIALIZED_NAME_END_TIMESTAMPS) - private List endTimestamps = new ArrayList<>(); + private List endTimestamps = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayEndTimestampData() { + public ArrayEndTimestampData() { } public ArrayEndTimestampData endTimestamps(List endTimestamps) { + this.endTimestamps = endTimestamps; return this; } @@ -78,34 +71,41 @@ public ArrayEndTimestampData addEndTimestampsItem(Integer endTimestampsItem) { return this; } - /** + /** * List of timestamps expressed in milliseconds since Unix epoch * @return endTimestamps - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of timestamps expressed in milliseconds since Unix epoch") + public List getEndTimestamps() { return endTimestamps; } + public void setEndTimestamps(List endTimestamps) { this.endTimestamps = endTimestamps; } public ArrayEndTimestampData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -120,10 +120,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayEndTimestampData instance itself */ public ArrayEndTimestampData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -135,8 +131,6 @@ public ArrayEndTimestampData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -144,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -211,26 +202,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayEndTimestampData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayEndTimestampData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayEndTimestampData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayEndTimestampData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayEndTimestampData is not found in the empty JSON string", ArrayEndTimestampData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("end_timestamps") != null && !jsonObj.get("end_timestamps").isJsonNull() && !jsonObj.get("end_timestamps").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("end_timestamps") != null && !jsonObj.get("end_timestamps").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `end_timestamps` to be an array in the JSON string but got `%s`", jsonObj.get("end_timestamps").toString())); } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -250,7 +242,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayEndTimestampData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -262,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -276,9 +263,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayEndTimestampData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayEndTimestampData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -292,10 +278,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -306,22 +290,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayEndTimestampData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayEndTimestampData - * @throws IOException if the JSON string is invalid with respect to ArrayEndTimestampData - */ + /** + * Create an instance of ArrayEndTimestampData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayEndTimestampData + * @throws IOException if the JSON string is invalid with respect to ArrayEndTimestampData + */ public static ArrayEndTimestampData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayEndTimestampData.class); } - /** - * Convert an instance of ArrayEndTimestampData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayEndTimestampData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java index 6074007..e74d30c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * A user-favorite array item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A user-favorite array item") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayFavorite { public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) @@ -63,61 +56,73 @@ public class ArrayFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public ArrayFavorite() { + public ArrayFavorite() { } public ArrayFavorite arrayUuid(String arrayUuid) { + this.arrayUuid = arrayUuid; return this; } - /** + /** * unique UUID of the array * @return arrayUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "unique UUID of the array") + public String getArrayUuid() { return arrayUuid; } + public void setArrayUuid(String arrayUuid) { this.arrayUuid = arrayUuid; } public ArrayFavorite namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * the namespace of the array * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the namespace of the array") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public ArrayFavorite name(String name) { + this.name = name; return this; } - /** + /** * the name of the array * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the array") + public String getName() { return name; } + public void setName(String name) { this.name = name; } @@ -132,10 +137,6 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayFavorite instance itself */ public ArrayFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public ArrayFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayFavorite - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavorite is not found in the empty JSON string", ArrayFavorite.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonNull()) && !jsonObj.get("array_uuid").isJsonPrimitive()) { + if (jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayFavorite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayFavorite - * @throws IOException if the JSON string is invalid with respect to ArrayFavorite - */ + /** + * Create an instance of ArrayFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayFavorite + * @throws IOException if the JSON string is invalid with respect to ArrayFavorite + */ public static ArrayFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayFavorite.class); } - /** - * Convert an instance of ArrayFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayFavorite to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java index d44a0d3..e7345fe 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java @@ -14,59 +14,51 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Object including array favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including array favorites and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayFavoritesData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) - private List arrays = new ArrayList<>(); + private List arrays = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayFavoritesData() { + public ArrayFavoritesData() { } public ArrayFavoritesData arrays(List arrays) { + this.arrays = arrays; return this; } @@ -79,34 +71,41 @@ public ArrayFavoritesData addArraysItem(ArrayInfo arraysItem) { return this; } - /** + /** * List of array infos * @return arrays - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of array infos") + public List getArrays() { return arrays; } + public void setArrays(List arrays) { this.arrays = arrays; } public ArrayFavoritesData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +120,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayFavoritesData instance itself */ public ArrayFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +131,6 @@ public ArrayFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +202,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayFavoritesData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavoritesData is not found in the empty JSON string", ArrayFavoritesData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); - } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - ArrayInfo.validateJsonElement(jsonArrayarrays.get(i)); - }; + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + ArrayInfo.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +262,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +271,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayFavoritesData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +286,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +298,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayFavoritesData - * @throws IOException if the JSON string is invalid with respect to ArrayFavoritesData - */ + /** + * Create an instance of ArrayFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayFavoritesData + * @throws IOException if the JSON string is invalid with respect to ArrayFavoritesData + */ public static ArrayFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayFavoritesData.class); } - /** - * Convert an instance of ArrayFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayFavoritesData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java index c5b0c45..86bef8f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java @@ -14,47 +14,33 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.ArrayType; -import io.tiledb.cloud.rest_api.model.FileType; -import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; -import io.tiledb.cloud.rest_api.model.Pricing; -import io.tiledb.cloud.rest_api.model.Subscription; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; -import java.util.HashMap; import java.util.HashSet; -import java.util.List; -import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -62,19 +48,24 @@ /** * metadata of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "metadata of an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; + public static final String SERIALIZED_NAME_ASSET_ID = "asset_id"; + @SerializedName(SERIALIZED_NAME_ASSET_ID) + private String assetId; + public static final String SERIALIZED_NAME_FILE_TYPE = "file_type"; @SerializedName(SERIALIZED_NAME_FILE_TYPE) private FileType fileType; public static final String SERIALIZED_NAME_FILE_PROPERTIES = "file_properties"; @SerializedName(SERIALIZED_NAME_FILE_PROPERTIES) - private Map fileProperties = new HashMap<>(); + private Map fileProperties = null; public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -102,15 +93,15 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = new ArrayList<>(); + private List allowedActions = null; public static final String SERIALIZED_NAME_PRICING = "pricing"; @SerializedName(SERIALIZED_NAME_PRICING) - private List pricing = new ArrayList<>(); + private List pricing = null; public static final String SERIALIZED_NAME_SUBSCRIPTIONS = "subscriptions"; @SerializedName(SERIALIZED_NAME_SUBSCRIPTIONS) - private List subscriptions = new ArrayList<>(); + private List subscriptions = null; public static final String SERIALIZED_NAME_LOGO = "logo"; @SerializedName(SERIALIZED_NAME_LOGO) @@ -142,7 +133,7 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -170,11 +161,12 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) - private List metadata = new ArrayList<>(); + private List metadata = null; - public ArrayInfo() { + public ArrayInfo() { } + public ArrayInfo( Boolean namespaceSubscribed ) { @@ -183,44 +175,76 @@ public ArrayInfo( } public ArrayInfo id(String id) { + this.id = id; return this; } - /** + /** * unique ID of registered array * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of registered array") + public String getId() { return id; } + public void setId(String id) { this.id = id; } + public ArrayInfo assetId(String assetId) { + + this.assetId = assetId; + return this; + } + + /** + * The asset id of the created array + * @return assetId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The asset id of the created array") + + public String getAssetId() { + return assetId; + } + + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public ArrayInfo fileType(FileType fileType) { + this.fileType = fileType; return this; } - /** + /** * Get fileType * @return fileType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public FileType getFileType() { return fileType; } + public void setFileType(FileType fileType) { this.fileType = fileType; } public ArrayInfo fileProperties(Map fileProperties) { + this.fileProperties = fileProperties; return this; } @@ -233,135 +257,163 @@ public ArrayInfo putFilePropertiesItem(String key, String filePropertiesItem) { return this; } - /** + /** * map of file properties created for this array * @return fileProperties - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "map of file properties created for this array") + public Map getFileProperties() { return fileProperties; } + public void setFileProperties(Map fileProperties) { this.fileProperties = fileProperties; } public ArrayInfo uri(String uri) { + this.uri = uri; return this; } - /** + /** * uri of array * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "s3://bucket/array", value = "uri of array") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public ArrayInfo namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace array is in * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "user1", value = "namespace array is in") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public ArrayInfo size(BigDecimal size) { + this.size = size; return this; } - /** + /** * size in bytes of array * @return size - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1024.0", value = "size in bytes of array") + public BigDecimal getSize() { return size; } + public void setSize(BigDecimal size) { this.size = size; } public ArrayInfo lastAccessed(OffsetDateTime lastAccessed) { + this.lastAccessed = lastAccessed; return this; } - /** + /** * Datetime array was last accessed in UTC * @return lastAccessed - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime array was last accessed in UTC") + public OffsetDateTime getLastAccessed() { return lastAccessed; } + public void setLastAccessed(OffsetDateTime lastAccessed) { this.lastAccessed = lastAccessed; } public ArrayInfo description(String description) { + this.description = description; return this; } - /** + /** * description of array * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "description of array") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public ArrayInfo name(String name) { + this.name = name; return this; } - /** + /** * name of array * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "myarray1", value = "name of array") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public ArrayInfo allowedActions(List allowedActions) { + this.allowedActions = allowedActions; return this; } @@ -374,21 +426,25 @@ public ArrayInfo addAllowedActionsItem(ArrayActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this array * @return allowedActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of actions user is allowed to do on this array") + public List getAllowedActions() { return allowedActions; } + public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } public ArrayInfo pricing(List pricing) { + this.pricing = pricing; return this; } @@ -401,21 +457,25 @@ public ArrayInfo addPricingItem(Pricing pricingItem) { return this; } - /** + /** * list of pricing created for this array * @return pricing - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of pricing created for this array") + public List getPricing() { return pricing; } + public void setPricing(List pricing) { this.pricing = pricing; } public ArrayInfo subscriptions(List subscriptions) { + this.subscriptions = subscriptions; return this; } @@ -428,146 +488,177 @@ public ArrayInfo addSubscriptionsItem(Subscription subscriptionsItem) { return this; } - /** + /** * list of subscriptions created for this array * @return subscriptions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of subscriptions created for this array") + public List getSubscriptions() { return subscriptions; } + public void setSubscriptions(List subscriptions) { this.subscriptions = subscriptions; } public ArrayInfo logo(String logo) { + this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the array. Optional * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logo (base64 encoded) for the array. Optional") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public ArrayInfo accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public ArrayInfo type(ArrayType type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayType getType() { return type; } + public void setType(ArrayType type) { this.type = type; } public ArrayInfo shareCount(BigDecimal shareCount) { + this.shareCount = shareCount; return this; } - /** + /** * number of unique namespaces this array is shared with * @return shareCount - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "number of unique namespaces this array is shared with") + public BigDecimal getShareCount() { return shareCount; } + public void setShareCount(BigDecimal shareCount) { this.shareCount = shareCount; } public ArrayInfo publicShare(Boolean publicShare) { + this.publicShare = publicShare; return this; } - /** + /** * Suggests if the array was shared to public by owner * @return publicShare - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Suggests if the array was shared to public by owner") + public Boolean getPublicShare() { return publicShare; } + public void setPublicShare(Boolean publicShare) { this.publicShare = publicShare; } - /** + /** * Depends on the namespace asking, denotes the existence of subscription of namespace to this array * @return namespaceSubscribed - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Depends on the namespace asking, denotes the existence of subscription of namespace to this array") + public Boolean getNamespaceSubscribed() { return namespaceSubscribed; } + public ArrayInfo tiledbUri(String tiledbUri) { + this.tiledbUri = tiledbUri; return this; } - /** + /** * uri for access through TileDB cloud * @return tiledbUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "uri for access through TileDB cloud") + public String getTiledbUri() { return tiledbUri; } + public void setTiledbUri(String tiledbUri) { this.tiledbUri = tiledbUri; } public ArrayInfo tags(List tags) { + this.tags = tags; return this; } @@ -580,135 +671,163 @@ public ArrayInfo addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for array * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for array") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public ArrayInfo licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public ArrayInfo licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public ArrayInfo readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } - /** + /** * Suggests if the array is in read_only mode * @return readOnly - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Suggests if the array is in read_only mode") + public Boolean getReadOnly() { return readOnly; } + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } public ArrayInfo isFavorite(Boolean isFavorite) { + this.isFavorite = isFavorite; return this; } - /** + /** * Indicates whether the array is in user favorites * @return isFavorite - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the array is in user favorites") + public Boolean getIsFavorite() { return isFavorite; } + public void setIsFavorite(Boolean isFavorite) { this.isFavorite = isFavorite; } public ArrayInfo createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } - /** + /** * Datetime array was registered with tiledb * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime array was registered with tiledb") + public OffsetDateTime getCreatedAt() { return createdAt; } + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } public ArrayInfo createdBy(String createdBy) { + this.createdBy = createdBy; return this; } - /** + /** * The user who created the array, if known. * @return createdBy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The user who created the array, if known.") + public String getCreatedBy() { return createdBy; } + public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } public ArrayInfo metadata(List metadata) { + this.metadata = metadata; return this; } @@ -721,15 +840,18 @@ public ArrayInfo addMetadataItem(MetadataStringifiedEntry metadataItem) { return this; } - /** + /** * Contains the metadata of the array. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. * @return metadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Contains the metadata of the array. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. ") + public List getMetadata() { return metadata; } + public void setMetadata(List metadata) { this.metadata = metadata; } @@ -744,10 +866,6 @@ public void setMetadata(List metadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayInfo instance itself */ public ArrayInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -759,8 +877,6 @@ public ArrayInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -768,9 +884,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -790,6 +903,7 @@ public boolean equals(Object o) { } ArrayInfo arrayInfo = (ArrayInfo) o; return Objects.equals(this.id, arrayInfo.id) && + Objects.equals(this.assetId, arrayInfo.assetId) && Objects.equals(this.fileType, arrayInfo.fileType) && Objects.equals(this.fileProperties, arrayInfo.fileProperties) && Objects.equals(this.uri, arrayInfo.uri) && @@ -825,7 +939,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, fileType, fileProperties, uri, namespace, size, lastAccessed, description, name, allowedActions, pricing, subscriptions, logo, accessCredentialsName, type, shareCount, publicShare, namespaceSubscribed, tiledbUri, tags, licenseId, licenseText, readOnly, isFavorite, createdAt, createdBy, metadata, additionalProperties); + return Objects.hash(id, assetId, fileType, fileProperties, uri, namespace, size, lastAccessed, description, name, allowedActions, pricing, subscriptions, logo, accessCredentialsName, type, shareCount, publicShare, namespaceSubscribed, tiledbUri, tags, licenseId, licenseText, readOnly, isFavorite, createdAt, createdBy, metadata, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -840,6 +954,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArrayInfo {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); sb.append(" fileProperties: ").append(toIndentedString(fileProperties)).append("\n"); sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); @@ -890,6 +1005,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("id"); + openapiFields.add("asset_id"); openapiFields.add("file_type"); openapiFields.add("file_properties"); openapiFields.add("uri"); @@ -921,109 +1037,99 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfo is not found in the empty JSON string", ArrayInfo.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - // validate the optional field `file_type` - if (jsonObj.get("file_type") != null && !jsonObj.get("file_type").isJsonNull()) { - FileType.validateJsonElement(jsonObj.get("file_type")); + if (jsonObj.get("asset_id") != null && !jsonObj.get("asset_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("asset_id").toString())); } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - if (jsonObj.get("pricing") != null && !jsonObj.get("pricing").isJsonNull()) { - JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); - if (jsonArraypricing != null) { - // ensure the json data is an array - if (!jsonObj.get("pricing").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); - } - - // validate the optional field `pricing` (array) - for (int i = 0; i < jsonArraypricing.size(); i++) { - Pricing.validateJsonElement(jsonArraypricing.get(i)); - }; + JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); + if (jsonArraypricing != null) { + // ensure the json data is an array + if (!jsonObj.get("pricing").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); } + + // validate the optional field `pricing` (array) + for (int i = 0; i < jsonArraypricing.size(); i++) { + Pricing.validateJsonObject(jsonArraypricing.get(i).getAsJsonObject()); + }; } - if (jsonObj.get("subscriptions") != null && !jsonObj.get("subscriptions").isJsonNull()) { - JsonArray jsonArraysubscriptions = jsonObj.getAsJsonArray("subscriptions"); - if (jsonArraysubscriptions != null) { - // ensure the json data is an array - if (!jsonObj.get("subscriptions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `subscriptions` to be an array in the JSON string but got `%s`", jsonObj.get("subscriptions").toString())); - } - - // validate the optional field `subscriptions` (array) - for (int i = 0; i < jsonArraysubscriptions.size(); i++) { - Subscription.validateJsonElement(jsonArraysubscriptions.get(i)); - }; + JsonArray jsonArraysubscriptions = jsonObj.getAsJsonArray("subscriptions"); + if (jsonArraysubscriptions != null) { + // ensure the json data is an array + if (!jsonObj.get("subscriptions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subscriptions` to be an array in the JSON string but got `%s`", jsonObj.get("subscriptions").toString())); } + + // validate the optional field `subscriptions` (array) + for (int i = 0; i < jsonArraysubscriptions.size(); i++) { + Subscription.validateJsonObject(jsonArraysubscriptions.get(i).getAsJsonObject()); + }; } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - ArrayType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonNull()) && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { + if (jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } - if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { + if (jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - MetadataStringifiedEntry.validateJsonElement(jsonArraymetadata.get(i)); - }; + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + MetadataStringifiedEntry.validateJsonObject(jsonArraymetadata.get(i).getAsJsonObject()); + }; } } @@ -1043,7 +1149,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -1055,12 +1161,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -1069,9 +1170,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -1085,10 +1185,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -1099,22 +1197,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayInfo - * @throws IOException if the JSON string is invalid with respect to ArrayInfo - */ + /** + * Create an instance of ArrayInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayInfo + * @throws IOException if the JSON string is invalid with respect to ArrayInfo + */ public static ArrayInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayInfo.class); } - /** - * Convert an instance of ArrayInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java index e730e88..20a6a45 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java @@ -14,40 +14,30 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.FileType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; -import java.util.HashMap; import java.util.HashSet; -import java.util.List; -import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,7 +45,8 @@ /** * metadata of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "metadata of an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -75,7 +66,7 @@ public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_FILE_PROPERTIES = "file_properties"; @SerializedName(SERIALIZED_NAME_FILE_PROPERTIES) - private Map fileProperties = new HashMap<>(); + private Map fileProperties = null; public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME = "access_credentials_name"; @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME) @@ -87,7 +78,7 @@ public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -101,86 +92,103 @@ public class ArrayInfoUpdate { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; - public ArrayInfoUpdate() { + public ArrayInfoUpdate() { } public ArrayInfoUpdate description(String description) { + this.description = description; return this; } - /** + /** * description of array * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "description of array") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public ArrayInfoUpdate name(String name) { + this.name = name; return this; } - /** + /** * description of array * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "myarray1", value = "description of array") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public ArrayInfoUpdate uri(String uri) { + this.uri = uri; return this; } - /** + /** * uri of array * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "s3://bucket/array", value = "uri of array") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public ArrayInfoUpdate fileType(FileType fileType) { + this.fileType = fileType; return this; } - /** + /** * Get fileType * @return fileType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public FileType getFileType() { return fileType; } + public void setFileType(FileType fileType) { this.fileType = fileType; } public ArrayInfoUpdate fileProperties(Map fileProperties) { + this.fileProperties = fileProperties; return this; } @@ -193,59 +201,71 @@ public ArrayInfoUpdate putFilePropertiesItem(String key, String filePropertiesIt return this; } - /** + /** * map of file properties created for this array * @return fileProperties - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "map of file properties created for this array") + public Map getFileProperties() { return fileProperties; } + public void setFileProperties(Map fileProperties) { this.fileProperties = fileProperties; } public ArrayInfoUpdate accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public ArrayInfoUpdate logo(String logo) { + this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the array. Optional * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logo (base64 encoded) for the array. Optional") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public ArrayInfoUpdate tags(List tags) { + this.tags = tags; return this; } @@ -258,72 +278,87 @@ public ArrayInfoUpdate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for array * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for array") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public ArrayInfoUpdate licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public ArrayInfoUpdate licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public ArrayInfoUpdate readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } - /** + /** * Suggests if the array is in read_only mode * @return readOnly - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Suggests if the array is in read_only mode") + public Boolean getReadOnly() { return readOnly; } + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -338,10 +373,6 @@ public void setReadOnly(Boolean readOnly) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayInfoUpdate instance itself */ public ArrayInfoUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -353,8 +384,6 @@ public ArrayInfoUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -362,9 +391,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -467,46 +493,43 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayInfoUpdate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayInfoUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayInfoUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayInfoUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfoUpdate is not found in the empty JSON string", ArrayInfoUpdate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - // validate the optional field `file_type` - if (jsonObj.get("file_type") != null && !jsonObj.get("file_type").isJsonNull()) { - FileType.validateJsonElement(jsonObj.get("file_type")); - } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } } @@ -527,7 +550,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -539,12 +562,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -553,9 +571,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayInfoUpdate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -569,10 +586,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -583,22 +598,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayInfoUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayInfoUpdate - * @throws IOException if the JSON string is invalid with respect to ArrayInfoUpdate - */ + /** + * Create an instance of ArrayInfoUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayInfoUpdate + * @throws IOException if the JSON string is invalid with respect to ArrayInfoUpdate + */ public static ArrayInfoUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayInfoUpdate.class); } - /** - * Convert an instance of ArrayInfoUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayInfoUpdate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java index b3c286a..04df947 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayMetadataEntry; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,16 +44,18 @@ /** * user's TileDB array metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "user's TileDB array metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayMetadata { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = new ArrayList<>(); + private List entries = null; - public ArrayMetadata() { + public ArrayMetadata() { } public ArrayMetadata entries(List entries) { + this.entries = entries; return this; } @@ -74,15 +68,18 @@ public ArrayMetadata addEntriesItem(ArrayMetadataEntry entriesItem) { return this; } - /** + /** * List of metadata entries * @return entries - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of metadata entries") + public List getEntries() { return entries; } + public void setEntries(List entries) { this.entries = entries; } @@ -97,10 +94,6 @@ public void setEntries(List entries) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayMetadata instance itself */ public ArrayMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +105,6 @@ public ArrayMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +112,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +173,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayMetadata - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadata is not found in the empty JSON string", ArrayMetadata.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - ArrayMetadataEntry.validateJsonElement(jsonArrayentries.get(i)); - }; + JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); + if (jsonArrayentries != null) { + // ensure the json data is an array + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + ArrayMetadataEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; } } @@ -230,7 +217,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +238,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +253,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +265,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayMetadata - * @throws IOException if the JSON string is invalid with respect to ArrayMetadata - */ + /** + * Create an instance of ArrayMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayMetadata + * @throws IOException if the JSON string is invalid with respect to ArrayMetadata + */ public static ArrayMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayMetadata.class); } - /** - * Convert an instance of ArrayMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java index cc29788..8363c2e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +43,8 @@ /** * key/value pair representing an array metadata map entry */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "key/value pair representing an array metadata map entry") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -67,73 +60,86 @@ public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) - private List value = new ArrayList<>(); + private List value = null; public static final String SERIALIZED_NAME_DEL = "del"; @SerializedName(SERIALIZED_NAME_DEL) private Boolean del; - public ArrayMetadataEntry() { + public ArrayMetadataEntry() { } public ArrayMetadataEntry key(String key) { + this.key = key; return this; } - /** + /** * Get key * @return key - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getKey() { return key; } + public void setKey(String key) { this.key = key; } public ArrayMetadataEntry type(String type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getType() { return type; } + public void setType(String type) { this.type = type; } public ArrayMetadataEntry valueNum(Integer valueNum) { + this.valueNum = valueNum; return this; } - /** + /** * Get valueNum * @return valueNum - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getValueNum() { return valueNum; } + public void setValueNum(Integer valueNum) { this.valueNum = valueNum; } public ArrayMetadataEntry value(List value) { + this.value = value; return this; } @@ -146,34 +152,41 @@ public ArrayMetadataEntry addValueItem(Integer valueItem) { return this; } - /** + /** * Get value * @return value - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getValue() { return value; } + public void setValue(List value) { this.value = value; } public ArrayMetadataEntry del(Boolean del) { + this.del = del; return this; } - /** + /** * Get del * @return del - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getDel() { return del; } + public void setDel(Boolean del) { this.del = del; } @@ -188,10 +201,6 @@ public void setDel(Boolean del) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayMetadataEntry instance itself */ public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -203,8 +212,6 @@ public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -212,9 +219,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -288,27 +292,28 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayMetadataEntry - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayMetadataEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayMetadataEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayMetadataEntry.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadataEntry is not found in the empty JSON string", ArrayMetadataEntry.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull() && !jsonObj.get("value").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `value` to be an array in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -329,7 +334,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -341,12 +346,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -355,9 +355,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayMetadataEntry read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayMetadataEntry instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -371,10 +370,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -385,22 +382,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayMetadataEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayMetadataEntry - * @throws IOException if the JSON string is invalid with respect to ArrayMetadataEntry - */ + /** + * Create an instance of ArrayMetadataEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayMetadataEntry + * @throws IOException if the JSON string is invalid with respect to ArrayMetadataEntry + */ public static ArrayMetadataEntry fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayMetadataEntry.class); } - /** - * Convert an instance of ArrayMetadataEntry to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayMetadataEntry to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java index 800642c..43c393a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java @@ -14,64 +14,60 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Sample data from array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Sample data from array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArraySample { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private Object data; - public ArraySample() { + public ArraySample() { } public ArraySample data(Object data) { + this.data = data; return this; } - /** + /** * Get data * @return data - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Object getData() { return data; } + public void setData(Object data) { this.data = data; } @@ -86,10 +82,6 @@ public void setData(Object data) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArraySample instance itself */ public ArraySample putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -101,8 +93,6 @@ public ArraySample putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,9 +100,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -174,19 +161,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArraySample - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArraySample.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArraySample + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArraySample.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySample is not found in the empty JSON string", ArraySample.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -205,7 +193,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArraySample value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -217,12 +205,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -231,9 +214,8 @@ else if (entry.getValue() instanceof Character) @Override public ArraySample read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArraySample instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -247,10 +229,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -261,22 +241,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArraySample given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySample - * @throws IOException if the JSON string is invalid with respect to ArraySample - */ + /** + * Create an instance of ArraySample given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySample + * @throws IOException if the JSON string is invalid with respect to ArraySample + */ public static ArraySample fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArraySample.class); } - /** - * Convert an instance of ArraySample to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArraySample to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java index ce36e90..dcbb7ec 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java @@ -14,41 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayType; -import io.tiledb.cloud.rest_api.model.Attribute; -import io.tiledb.cloud.rest_api.model.Domain; -import io.tiledb.cloud.rest_api.model.FilterPipeline; -import io.tiledb.cloud.rest_api.model.Layout; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -56,7 +44,8 @@ /** * ArraySchema during creation or retrieval */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "ArraySchema during creation or retrieval") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArraySchema { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -102,229 +91,267 @@ public class ArraySchema { @SerializedName(SERIALIZED_NAME_ALLOWS_DUPLICATES) private Boolean allowsDuplicates; - public ArraySchema() { + public ArraySchema() { } public ArraySchema uri(String uri) { + this.uri = uri; return this; } - /** + /** * URI of schema * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "s3:///test_array", value = "URI of schema") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public ArraySchema version(List version) { + this.version = version; return this; } public ArraySchema addVersionItem(Integer versionItem) { - if (this.version == null) { - this.version = new ArrayList<>(); - } this.version.add(versionItem); return this; } - /** + /** * file format version * @return version - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "[1, 3, 0]", required = true, value = "file format version") + public List getVersion() { return version; } + public void setVersion(List version) { this.version = version; } public ArraySchema arrayType(ArrayType arrayType) { + this.arrayType = arrayType; return this; } - /** + /** * Get arrayType * @return arrayType - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ArrayType getArrayType() { return arrayType; } + public void setArrayType(ArrayType arrayType) { this.arrayType = arrayType; } public ArraySchema tileOrder(Layout tileOrder) { + this.tileOrder = tileOrder; return this; } - /** + /** * Get tileOrder * @return tileOrder - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Layout getTileOrder() { return tileOrder; } + public void setTileOrder(Layout tileOrder) { this.tileOrder = tileOrder; } public ArraySchema cellOrder(Layout cellOrder) { + this.cellOrder = cellOrder; return this; } - /** + /** * Get cellOrder * @return cellOrder - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Layout getCellOrder() { return cellOrder; } + public void setCellOrder(Layout cellOrder) { this.cellOrder = cellOrder; } public ArraySchema capacity(Integer capacity) { + this.capacity = capacity; return this; } - /** + /** * Capacity of array * @return capacity - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "100000", required = true, value = "Capacity of array") + public Integer getCapacity() { return capacity; } + public void setCapacity(Integer capacity) { this.capacity = capacity; } public ArraySchema coordsFilterPipeline(FilterPipeline coordsFilterPipeline) { + this.coordsFilterPipeline = coordsFilterPipeline; return this; } - /** + /** * Get coordsFilterPipeline * @return coordsFilterPipeline - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public FilterPipeline getCoordsFilterPipeline() { return coordsFilterPipeline; } + public void setCoordsFilterPipeline(FilterPipeline coordsFilterPipeline) { this.coordsFilterPipeline = coordsFilterPipeline; } public ArraySchema offsetFilterPipeline(FilterPipeline offsetFilterPipeline) { + this.offsetFilterPipeline = offsetFilterPipeline; return this; } - /** + /** * Get offsetFilterPipeline * @return offsetFilterPipeline - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public FilterPipeline getOffsetFilterPipeline() { return offsetFilterPipeline; } + public void setOffsetFilterPipeline(FilterPipeline offsetFilterPipeline) { this.offsetFilterPipeline = offsetFilterPipeline; } public ArraySchema domain(Domain domain) { + this.domain = domain; return this; } - /** + /** * Get domain * @return domain - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Domain getDomain() { return domain; } + public void setDomain(Domain domain) { this.domain = domain; } public ArraySchema attributes(List attributes) { + this.attributes = attributes; return this; } public ArraySchema addAttributesItem(Attribute attributesItem) { - if (this.attributes == null) { - this.attributes = new ArrayList<>(); - } this.attributes.add(attributesItem); return this; } - /** + /** * Attributes of array * @return attributes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Attributes of array") + public List getAttributes() { return attributes; } + public void setAttributes(List attributes) { this.attributes = attributes; } public ArraySchema allowsDuplicates(Boolean allowsDuplicates) { + this.allowsDuplicates = allowsDuplicates; return this; } - /** + /** * True if the array allows coordinate duplicates. Applicable only to sparse arrays. * @return allowsDuplicates - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "True if the array allows coordinate duplicates. Applicable only to sparse arrays.") + public Boolean getAllowsDuplicates() { return allowsDuplicates; } + public void setAllowsDuplicates(Boolean allowsDuplicates) { this.allowsDuplicates = allowsDuplicates; } @@ -339,10 +366,6 @@ public void setAllowsDuplicates(Boolean allowsDuplicates) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArraySchema instance itself */ public ArraySchema putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -354,8 +377,6 @@ public ArraySchema putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -363,9 +384,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -466,57 +484,58 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("attributes"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArraySchema - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArraySchema.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArraySchema + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArraySchema.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchema is not found in the empty JSON string", ArraySchema.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ArraySchema.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - // ensure the required json array is present - if (jsonObj.get("version") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("version").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be an array in the JSON string but got `%s`", jsonObj.get("version").toString())); } - // validate the required field `arrayType` - ArrayType.validateJsonElement(jsonObj.get("arrayType")); - // validate the required field `tileOrder` - Layout.validateJsonElement(jsonObj.get("tileOrder")); - // validate the required field `cellOrder` - Layout.validateJsonElement(jsonObj.get("cellOrder")); - // validate the required field `coordsFilterPipeline` - FilterPipeline.validateJsonElement(jsonObj.get("coordsFilterPipeline")); - // validate the required field `offsetFilterPipeline` - FilterPipeline.validateJsonElement(jsonObj.get("offsetFilterPipeline")); - // validate the required field `domain` - Domain.validateJsonElement(jsonObj.get("domain")); - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + // validate the optional field `coordsFilterPipeline` + if (jsonObj.getAsJsonObject("coordsFilterPipeline") != null) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("coordsFilterPipeline")); + } + // validate the optional field `offsetFilterPipeline` + if (jsonObj.getAsJsonObject("offsetFilterPipeline") != null) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("offsetFilterPipeline")); + } + // validate the optional field `domain` + if (jsonObj.getAsJsonObject("domain") != null) { + Domain.validateJsonObject(jsonObj.getAsJsonObject("domain")); } - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - // validate the required field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - Attribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + Attribute.validateJsonObject(jsonArrayattributes.get(i).getAsJsonObject()); + }; + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -535,7 +554,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArraySchema value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -547,12 +566,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -561,9 +575,8 @@ else if (entry.getValue() instanceof Character) @Override public ArraySchema read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArraySchema instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -577,10 +590,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -591,22 +602,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArraySchema given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySchema - * @throws IOException if the JSON string is invalid with respect to ArraySchema - */ + /** + * Create an instance of ArraySchema given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySchema + * @throws IOException if the JSON string is invalid with respect to ArraySchema + */ public static ArraySchema fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArraySchema.class); } - /** - * Convert an instance of ArraySchema to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArraySchema to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java index e6aad94..0ce60d3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,11 +43,12 @@ /** * details for sharing a given array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "details for sharing a given array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArraySharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList<>(); + private List actions = null; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -66,10 +58,11 @@ public class ArraySharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public ArraySharing() { + public ArraySharing() { } public ArraySharing actions(List actions) { + this.actions = actions; return this; } @@ -82,53 +75,64 @@ public ArraySharing addActionsItem(ArrayActions actionsItem) { return this; } - /** + /** * List of permitted actions * @return actions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[read, write]", value = "List of permitted actions") + public List getActions() { return actions; } + public void setActions(List actions) { this.actions = actions; } public ArraySharing namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace being granted array access can be a user or organization * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "MyOrganization", value = "namespace being granted array access can be a user or organization") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public ArraySharing namespaceType(String namespaceType) { + this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") + public String getNamespaceType() { return namespaceType; } + public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -143,10 +147,6 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArraySharing instance itself */ public ArraySharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -158,8 +158,6 @@ public ArraySharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -167,9 +165,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -237,27 +232,28 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArraySharing - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArraySharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArraySharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArraySharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySharing is not found in the empty JSON string", ArraySharing.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if (jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -278,7 +274,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArraySharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -290,12 +286,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -304,9 +295,8 @@ else if (entry.getValue() instanceof Character) @Override public ArraySharing read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArraySharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -320,10 +310,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -334,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArraySharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySharing - * @throws IOException if the JSON string is invalid with respect to ArraySharing - */ + /** + * Create an instance of ArraySharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySharing + * @throws IOException if the JSON string is invalid with respect to ArraySharing + */ public static ArraySharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArraySharing.class); } - /** - * Convert an instance of ArraySharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArraySharing to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java index a351330..724cead 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java @@ -14,46 +14,33 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; -import io.tiledb.cloud.rest_api.model.ArrayTaskType; -import io.tiledb.cloud.rest_api.model.DomainArray; -import io.tiledb.cloud.rest_api.model.Querytype; -import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -61,7 +48,8 @@ /** * Synchronous Task to Run */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Synchronous Task to Run") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayTask { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -149,7 +137,7 @@ public class ArrayTask { public static final String SERIALIZED_NAME_ACTIVITY = "activity"; @SerializedName(SERIALIZED_NAME_ACTIVITY) - private List activity = new ArrayList<>(); + private List activity = null; public static final String SERIALIZED_NAME_LOGS = "logs"; @SerializedName(SERIALIZED_NAME_LOGS) @@ -161,11 +149,11 @@ public class ArrayTask { public static final String SERIALIZED_NAME_SQL_INIT_COMMANDS = "sql_init_commands"; @SerializedName(SERIALIZED_NAME_SQL_INIT_COMMANDS) - private List sqlInitCommands = new ArrayList<>(); + private List sqlInitCommands = null; public static final String SERIALIZED_NAME_SQL_PARAMETERS = "sql_parameters"; @SerializedName(SERIALIZED_NAME_SQL_PARAMETERS) - private List sqlParameters = new ArrayList<>(); + private List sqlParameters = null; public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -187,409 +175,494 @@ public class ArrayTask { @SerializedName(SERIALIZED_NAME_CLOUD_REGION) private String cloudRegion; - public ArrayTask() { + public ArrayTask() { } public ArrayTask id(String id) { + this.id = id; return this; } - /** + /** * task ID * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "task ID") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public ArrayTask name(String name) { + this.name = name; return this; } - /** + /** * Optional task name * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "subarray-multiplier", value = "Optional task name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public ArrayTask username(String username) { + this.username = username; return this; } - /** + /** * username that executed this task * @return username - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "demo", value = "username that executed this task") + public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public ArrayTask description(String description) { + this.description = description; return this; } - /** + /** * Optional task description (Tasks purpose) * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "Return attr a1 in the subarray bounded by coordinates and multiply attr1 by 2", value = "Optional task description (Tasks purpose)") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public ArrayTask arrayMetadata(ArrayInfo arrayMetadata) { + this.arrayMetadata = arrayMetadata; return this; } - /** + /** * Get arrayMetadata * @return arrayMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayInfo getArrayMetadata() { return arrayMetadata; } + public void setArrayMetadata(ArrayInfo arrayMetadata) { this.arrayMetadata = arrayMetadata; } public ArrayTask subarray(DomainArray subarray) { + this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DomainArray getSubarray() { return subarray; } + public void setSubarray(DomainArray subarray) { this.subarray = subarray; } public ArrayTask memory(Integer memory) { + this.memory = memory; return this; } - /** + /** * memory allocated to task in bytes * @return memory - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "memory allocated to task in bytes") + public Integer getMemory() { return memory; } + public void setMemory(Integer memory) { this.memory = memory; } public ArrayTask cpu(Integer cpu) { + this.cpu = cpu; return this; } - /** + /** * millicpu allocated to task * @return cpu - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "4000", value = "millicpu allocated to task") + public Integer getCpu() { return cpu; } + public void setCpu(Integer cpu) { this.cpu = cpu; } public ArrayTask namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace task is tied to * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "organization1", value = "namespace task is tied to") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public ArrayTask status(ArrayTaskStatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayTaskStatus getStatus() { return status; } + public void setStatus(ArrayTaskStatus status) { this.status = status; } public ArrayTask statusMessage(String statusMessage) { + this.statusMessage = statusMessage; return this; } - /** + /** * The reason the array task status is in the state * @return statusMessage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The reason the array task status is in the state") + public String getStatusMessage() { return statusMessage; } + public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } public ArrayTask startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } - /** + /** * Start time RFC3339 for job * @return startTime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Start time RFC3339 for job") + public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public ArrayTask finishTime(OffsetDateTime finishTime) { + this.finishTime = finishTime; return this; } - /** + /** * Finish time RFC3339 for job * @return finishTime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Finish time RFC3339 for job") + public OffsetDateTime getFinishTime() { return finishTime; } + public void setFinishTime(OffsetDateTime finishTime) { this.finishTime = finishTime; } public ArrayTask cost(Double cost) { + this.cost = cost; return this; } - /** + /** * Total accumulated for task in USD, example is $0.12 * @return cost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "0.12", value = "Total accumulated for task in USD, example is $0.12") + public Double getCost() { return cost; } + public void setCost(Double cost) { this.cost = cost; } public ArrayTask egressCost(Double egressCost) { + this.egressCost = egressCost; return this; } - /** + /** * Total accumulated for egress task in USD, example is $0.12 * @return egressCost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "0.12", value = "Total accumulated for egress task in USD, example is $0.12") + public Double getEgressCost() { return egressCost; } + public void setEgressCost(Double egressCost) { this.egressCost = egressCost; } public ArrayTask accessCost(Double accessCost) { + this.accessCost = accessCost; return this; } - /** + /** * Cost accumulated for access task in USD, example is $0.12 * @return accessCost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "0.12", value = "Cost accumulated for access task in USD, example is $0.12") + public Double getAccessCost() { return accessCost; } + public void setAccessCost(Double accessCost) { this.accessCost = accessCost; } public ArrayTask queryType(Querytype queryType) { + this.queryType = queryType; return this; } - /** + /** * Get queryType * @return queryType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Querytype getQueryType() { return queryType; } + public void setQueryType(Querytype queryType) { this.queryType = queryType; } public ArrayTask udfCode(String udfCode) { + this.udfCode = udfCode; return this; } - /** + /** * Optional actual code that is going to be executed * @return udfCode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optional actual code that is going to be executed") + public String getUdfCode() { return udfCode; } + public void setUdfCode(String udfCode) { this.udfCode = udfCode; } public ArrayTask udfLanguage(String udfLanguage) { + this.udfLanguage = udfLanguage; return this; } - /** + /** * Optional actual language used to express udf_code * @return udfLanguage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optional actual language used to express udf_code") + public String getUdfLanguage() { return udfLanguage; } + public void setUdfLanguage(String udfLanguage) { this.udfLanguage = udfLanguage; } public ArrayTask sqlQuery(String sqlQuery) { + this.sqlQuery = sqlQuery; return this; } - /** + /** * Optional actual sql query that is going to be executed * @return sqlQuery - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optional actual sql query that is going to be executed") + public String getSqlQuery() { return sqlQuery; } + public void setSqlQuery(String sqlQuery) { this.sqlQuery = sqlQuery; } public ArrayTask type(ArrayTaskType type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayTaskType getType() { return type; } + public void setType(ArrayTaskType type) { this.type = type; } public ArrayTask activity(List activity) { + this.activity = activity; return this; } @@ -602,59 +675,71 @@ public ArrayTask addActivityItem(ArrayActivityLog activityItem) { return this; } - /** + /** * Array activity logs for task * @return activity - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Array activity logs for task") + public List getActivity() { return activity; } + public void setActivity(List activity) { this.activity = activity; } public ArrayTask logs(String logs) { + this.logs = logs; return this; } - /** + /** * logs from array task * @return logs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logs from array task") + public String getLogs() { return logs; } + public void setLogs(String logs) { this.logs = logs; } public ArrayTask duration(BigDecimal duration) { + this.duration = duration; return this; } - /** + /** * duration in nanoseconds of an array task * @return duration - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "3.41E+11", value = "duration in nanoseconds of an array task") + public BigDecimal getDuration() { return duration; } + public void setDuration(BigDecimal duration) { this.duration = duration; } public ArrayTask sqlInitCommands(List sqlInitCommands) { + this.sqlInitCommands = sqlInitCommands; return this; } @@ -667,21 +752,25 @@ public ArrayTask addSqlInitCommandsItem(String sqlInitCommandsItem) { return this; } - /** + /** * SQL queries or commands to run before main sql query * @return sqlInitCommands - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "SQL queries or commands to run before main sql query") + public List getSqlInitCommands() { return sqlInitCommands; } + public void setSqlInitCommands(List sqlInitCommands) { this.sqlInitCommands = sqlInitCommands; } public ArrayTask sqlParameters(List sqlParameters) { + this.sqlParameters = sqlParameters; return this; } @@ -694,110 +783,133 @@ public ArrayTask addSqlParametersItem(Object sqlParametersItem) { return this; } - /** + /** * SQL query parameters * @return sqlParameters - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "SQL query parameters") + public List getSqlParameters() { return sqlParameters; } + public void setSqlParameters(List sqlParameters) { this.sqlParameters = sqlParameters; } public ArrayTask resultFormat(ResultFormat resultFormat) { + this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ResultFormat getResultFormat() { return resultFormat; } + public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public ArrayTask taskGraphUuid(String taskGraphUuid) { + this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") + public String getTaskGraphUuid() { return taskGraphUuid; } + public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public ArrayTask clientNodeUuid(String clientNodeUuid) { + this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") + public String getClientNodeUuid() { return clientNodeUuid; } + public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } public ArrayTask cloudProvider(String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } - /** + /** * The name of the cloud provider where this task executed. * @return cloudProvider - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the cloud provider where this task executed.") + public String getCloudProvider() { return cloudProvider; } + public void setCloudProvider(String cloudProvider) { this.cloudProvider = cloudProvider; } public ArrayTask cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; return this; } - /** + /** * The region of the cloud provider where this task executed. * @return cloudRegion - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The region of the cloud provider where this task executed.") + public String getCloudRegion() { return cloudRegion; } + public void setCloudRegion(String cloudRegion) { this.cloudRegion = cloudRegion; } @@ -812,10 +924,6 @@ public void setCloudRegion(String cloudRegion) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTask instance itself */ public ArrayTask putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -827,8 +935,6 @@ public ArrayTask putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -836,9 +942,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -1001,105 +1104,88 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayTask - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayTask + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTask.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTask is not found in the empty JSON string", ArrayTask.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } // validate the optional field `array_metadata` - if (jsonObj.get("array_metadata") != null && !jsonObj.get("array_metadata").isJsonNull()) { - ArrayInfo.validateJsonElement(jsonObj.get("array_metadata")); + if (jsonObj.getAsJsonObject("array_metadata") != null) { + ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array_metadata")); } // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - DomainArray.validateJsonElement(jsonObj.get("subarray")); + if (jsonObj.getAsJsonObject("subarray") != null) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonNull()) && !jsonObj.get("status_message").isJsonPrimitive()) { + if (jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); } - // validate the optional field `query_type` - if (jsonObj.get("query_type") != null && !jsonObj.get("query_type").isJsonNull()) { - Querytype.validateJsonElement(jsonObj.get("query_type")); - } - if ((jsonObj.get("udf_code") != null && !jsonObj.get("udf_code").isJsonNull()) && !jsonObj.get("udf_code").isJsonPrimitive()) { + if (jsonObj.get("udf_code") != null && !jsonObj.get("udf_code").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_code").toString())); } - if ((jsonObj.get("udf_language") != null && !jsonObj.get("udf_language").isJsonNull()) && !jsonObj.get("udf_language").isJsonPrimitive()) { + if (jsonObj.get("udf_language") != null && !jsonObj.get("udf_language").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_language` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_language").toString())); } - if ((jsonObj.get("sql_query") != null && !jsonObj.get("sql_query").isJsonNull()) && !jsonObj.get("sql_query").isJsonPrimitive()) { + if (jsonObj.get("sql_query") != null && !jsonObj.get("sql_query").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `sql_query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sql_query").toString())); } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - ArrayTaskType.validateJsonElement(jsonObj.get("type")); - } - if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - ArrayActivityLog.validateJsonElement(jsonArrayactivity.get(i)); - }; + JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); + if (jsonArrayactivity != null) { + // ensure the json data is an array + if (!jsonObj.get("activity").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); } + + // validate the optional field `activity` (array) + for (int i = 0; i < jsonArrayactivity.size(); i++) { + ArrayActivityLog.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); + }; } - if ((jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonNull()) && !jsonObj.get("logs").isJsonPrimitive()) { + if (jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logs` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logs").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("sql_init_commands") != null && !jsonObj.get("sql_init_commands").isJsonNull() && !jsonObj.get("sql_init_commands").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("sql_init_commands") != null && !jsonObj.get("sql_init_commands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `sql_init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("sql_init_commands").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("sql_parameters") != null && !jsonObj.get("sql_parameters").isJsonNull() && !jsonObj.get("sql_parameters").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("sql_parameters") != null && !jsonObj.get("sql_parameters").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `sql_parameters` to be an array in the JSON string but got `%s`", jsonObj.get("sql_parameters").toString())); } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); } - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); } - if ((jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonNull()) && !jsonObj.get("cloud_provider").isJsonPrimitive()) { + if (jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); } - if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { + if (jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); } } @@ -1120,7 +1206,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTask value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -1132,12 +1218,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -1146,9 +1227,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTask read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayTask instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -1162,10 +1242,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -1176,22 +1254,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTask given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTask - * @throws IOException if the JSON string is invalid with respect to ArrayTask - */ + /** + * Create an instance of ArrayTask given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTask + * @throws IOException if the JSON string is invalid with respect to ArrayTask + */ public static ArrayTask fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTask.class); } - /** - * Convert an instance of ArrayTask to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTask to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java index a05893f..be6a49e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,11 +43,12 @@ /** * Object for ui array tasks browser page */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object for ui array tasks browser page") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayTaskBrowserSidebar { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) - private List organizations = new ArrayList<>(); + private List organizations = null; public static final String SERIALIZED_NAME_RESULT_COUNT_FOR_ALL = "result_count_for_all"; @SerializedName(SERIALIZED_NAME_RESULT_COUNT_FOR_ALL) @@ -65,10 +58,11 @@ public class ArrayTaskBrowserSidebar { @SerializedName(SERIALIZED_NAME_RESULT_COUNT_BY_NAMESPACE) private Object resultCountByNamespace; - public ArrayTaskBrowserSidebar() { + public ArrayTaskBrowserSidebar() { } public ArrayTaskBrowserSidebar organizations(List organizations) { + this.organizations = organizations; return this; } @@ -81,53 +75,64 @@ public ArrayTaskBrowserSidebar addOrganizationsItem(String organizationsItem) { return this; } - /** + /** * list of all unique organizations the user is part of that have array tasks * @return organizations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of all unique organizations the user is part of that have array tasks") + public List getOrganizations() { return organizations; } + public void setOrganizations(List organizations) { this.organizations = organizations; } public ArrayTaskBrowserSidebar resultCountForAll(Integer resultCountForAll) { + this.resultCountForAll = resultCountForAll; return this; } - /** + /** * A count of \"all\" * @return resultCountForAll - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A count of \"all\"") + public Integer getResultCountForAll() { return resultCountForAll; } + public void setResultCountForAll(Integer resultCountForAll) { this.resultCountForAll = resultCountForAll; } public ArrayTaskBrowserSidebar resultCountByNamespace(Object resultCountByNamespace) { + this.resultCountByNamespace = resultCountByNamespace; return this; } - /** + /** * A map that includes the result count by namespace * @return resultCountByNamespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A map that includes the result count by namespace") + public Object getResultCountByNamespace() { return resultCountByNamespace; } + public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } @@ -142,10 +147,6 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTaskBrowserSidebar instance itself */ public ArrayTaskBrowserSidebar putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -157,8 +158,6 @@ public ArrayTaskBrowserSidebar putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -166,9 +165,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -236,21 +232,22 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayTaskBrowserSidebar - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayTaskBrowserSidebar.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayTaskBrowserSidebar + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTaskBrowserSidebar.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskBrowserSidebar is not found in the empty JSON string", ArrayTaskBrowserSidebar.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull() && !jsonObj.get("organizations").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); } } @@ -271,7 +268,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTaskBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -283,12 +280,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -297,9 +289,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTaskBrowserSidebar read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayTaskBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -313,10 +304,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -327,22 +316,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTaskBrowserSidebar given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTaskBrowserSidebar - * @throws IOException if the JSON string is invalid with respect to ArrayTaskBrowserSidebar - */ + /** + * Create an instance of ArrayTaskBrowserSidebar given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskBrowserSidebar + * @throws IOException if the JSON string is invalid with respect to ArrayTaskBrowserSidebar + */ public static ArrayTaskBrowserSidebar fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTaskBrowserSidebar.class); } - /** - * Convert an instance of ArrayTaskBrowserSidebar to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTaskBrowserSidebar to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java index 08c3c17..3aa34ad 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Object including array tasks and metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including array tasks and metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayTaskData { public static final String SERIALIZED_NAME_ARRAY_TASKS = "array_tasks"; @SerializedName(SERIALIZED_NAME_ARRAY_TASKS) - private List arrayTasks = new ArrayList<>(); + private List arrayTasks = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayTaskData() { + public ArrayTaskData() { } public ArrayTaskData arrayTasks(List arrayTasks) { + this.arrayTasks = arrayTasks; return this; } @@ -79,34 +72,41 @@ public ArrayTaskData addArrayTasksItem(ArrayTask arrayTasksItem) { return this; } - /** + /** * Array Tasks * @return arrayTasks - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Array Tasks") + public List getArrayTasks() { return arrayTasks; } + public void setArrayTasks(List arrayTasks) { this.arrayTasks = arrayTasks; } public ArrayTaskData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTaskData instance itself */ public ArrayTaskData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public ArrayTaskData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayTaskData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayTaskData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayTaskData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTaskData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskData is not found in the empty JSON string", ArrayTaskData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("array_tasks") != null && !jsonObj.get("array_tasks").isJsonNull()) { - JsonArray jsonArrayarrayTasks = jsonObj.getAsJsonArray("array_tasks"); - if (jsonArrayarrayTasks != null) { - // ensure the json data is an array - if (!jsonObj.get("array_tasks").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `array_tasks` to be an array in the JSON string but got `%s`", jsonObj.get("array_tasks").toString())); - } - - // validate the optional field `array_tasks` (array) - for (int i = 0; i < jsonArrayarrayTasks.size(); i++) { - ArrayTask.validateJsonElement(jsonArrayarrayTasks.get(i)); - }; + JsonArray jsonArrayarrayTasks = jsonObj.getAsJsonArray("array_tasks"); + if (jsonArrayarrayTasks != null) { + // ensure the json data is an array + if (!jsonObj.get("array_tasks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `array_tasks` to be an array in the JSON string but got `%s`", jsonObj.get("array_tasks").toString())); } + + // validate the optional field `array_tasks` (array) + for (int i = 0; i < jsonArrayarrayTasks.size(); i++) { + ArrayTask.validateJsonObject(jsonArrayarrayTasks.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTaskData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTaskData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayTaskData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTaskData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTaskData - * @throws IOException if the JSON string is invalid with respect to ArrayTaskData - */ + /** + * Create an instance of ArrayTaskData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskData + * @throws IOException if the JSON string is invalid with respect to ArrayTaskData + */ public static ArrayTaskData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTaskData.class); } - /** - * Convert an instance of ArrayTaskData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTaskData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java index 5df8b37..893238a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java @@ -14,42 +14,34 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Array task stderr/stdout logs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Array task stderr/stdout logs") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayTaskLog { public static final String SERIALIZED_NAME_ARRAY_TASK_ID = "array_task_id"; @SerializedName(SERIALIZED_NAME_ARRAY_TASK_ID) @@ -59,42 +51,50 @@ public class ArrayTaskLog { @SerializedName(SERIALIZED_NAME_LOGS) private String logs; - public ArrayTaskLog() { + public ArrayTaskLog() { } public ArrayTaskLog arrayTaskId(String arrayTaskId) { + this.arrayTaskId = arrayTaskId; return this; } - /** + /** * ID of associated task * @return arrayTaskId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "ID of associated task") + public String getArrayTaskId() { return arrayTaskId; } + public void setArrayTaskId(String arrayTaskId) { this.arrayTaskId = arrayTaskId; } public ArrayTaskLog logs(String logs) { + this.logs = logs; return this; } - /** + /** * logs from array task * @return logs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logs from array task") + public String getLogs() { return logs; } + public void setLogs(String logs) { this.logs = logs; } @@ -109,10 +109,6 @@ public void setLogs(String logs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTaskLog instance itself */ public ArrayTaskLog putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -124,8 +120,6 @@ public ArrayTaskLog putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -133,9 +127,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,23 +191,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayTaskLog - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayTaskLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayTaskLog + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTaskLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskLog is not found in the empty JSON string", ArrayTaskLog.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonNull()) && !jsonObj.get("array_task_id").isJsonPrimitive()) { + if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); } - if ((jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonNull()) && !jsonObj.get("logs").isJsonPrimitive()) { + if (jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logs` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logs").toString())); } } @@ -237,7 +229,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTaskLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,12 +241,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -263,9 +250,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTaskLog read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayTaskLog instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -279,10 +265,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -293,22 +277,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTaskLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTaskLog - * @throws IOException if the JSON string is invalid with respect to ArrayTaskLog - */ + /** + * Create an instance of ArrayTaskLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskLog + * @throws IOException if the JSON string is invalid with respect to ArrayTaskLog + */ public static ArrayTaskLog fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTaskLog.class); } - /** - * Convert an instance of ArrayTaskLog to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTaskLog to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java index e9d6c30..8bd2657 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -81,10 +80,5 @@ public ArrayTaskStatus read(final JsonReader jsonReader) throws IOException { return ArrayTaskStatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ArrayTaskStatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java index 7d9b9ff..d54bd08 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -77,10 +76,5 @@ public ArrayTaskType read(final JsonReader jsonReader) throws IOException { return ArrayTaskType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ArrayTaskType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java index 04a1a8f..d433ac7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public ArrayType read(final JsonReader jsonReader) throws IOException { return ArrayType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ArrayType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java index 7edd44a..b95848a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,29 +41,34 @@ /** * Request to consolidate an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Request to consolidate an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ArrayVacuumRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) private TileDBConfig config; - public ArrayVacuumRequest() { + public ArrayVacuumRequest() { } public ArrayVacuumRequest config(TileDBConfig config) { + this.config = config; return this; } - /** + /** * Get config * @return config - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TileDBConfig getConfig() { return config; } + public void setConfig(TileDBConfig config) { this.config = config; } @@ -87,10 +83,6 @@ public void setConfig(TileDBConfig config) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayVacuumRequest instance itself */ public ArrayVacuumRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -102,8 +94,6 @@ public ArrayVacuumRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -111,9 +101,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -175,22 +162,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ArrayVacuumRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ArrayVacuumRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayVacuumRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayVacuumRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayVacuumRequest is not found in the empty JSON string", ArrayVacuumRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); + if (jsonObj.getAsJsonObject("config") != null) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); } } @@ -210,7 +198,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayVacuumRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -222,12 +210,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -236,9 +219,8 @@ else if (entry.getValue() instanceof Character) @Override public ArrayVacuumRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ArrayVacuumRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -252,10 +234,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -266,22 +246,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayVacuumRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayVacuumRequest - * @throws IOException if the JSON string is invalid with respect to ArrayVacuumRequest - */ + /** + * Create an instance of ArrayVacuumRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayVacuumRequest + * @throws IOException if the JSON string is invalid with respect to ArrayVacuumRequest + */ public static ArrayVacuumRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayVacuumRequest.class); } - /** - * Convert an instance of ArrayVacuumRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayVacuumRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java index 245433c..9e1a234 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public AssetBackingType read(final JsonReader jsonReader) throws IOException { return AssetBackingType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - AssetBackingType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java index 51c7a7b..720cd2f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java @@ -14,39 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetBackingType; -import io.tiledb.cloud.rest_api.model.AssetOwnershipLevel; -import io.tiledb.cloud.rest_api.model.AssetType; -import io.tiledb.cloud.rest_api.model.MetadataStringified; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -54,7 +42,8 @@ /** * metadata of an asset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "metadata of an asset") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class AssetInfo { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -96,9 +85,10 @@ public class AssetInfo { @SerializedName(SERIALIZED_NAME_METADATA) private MetadataStringified metadata; - public AssetInfo() { + public AssetInfo() { } + public AssetInfo( OffsetDateTime createdAt ) { @@ -107,182 +97,221 @@ public AssetInfo( } public AssetInfo uuid(String uuid) { + this.uuid = uuid; return this; } - /** + /** * unique ID of a registered asset * @return uuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of a registered asset") + public String getUuid() { return uuid; } + public void setUuid(String uuid) { this.uuid = uuid; } public AssetInfo assetType(AssetType assetType) { + this.assetType = assetType; return this; } - /** + /** * Get assetType * @return assetType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetType getAssetType() { return assetType; } + public void setAssetType(AssetType assetType) { this.assetType = assetType; } public AssetInfo assetBackingType(AssetBackingType assetBackingType) { + this.assetBackingType = assetBackingType; return this; } - /** + /** * Get assetBackingType * @return assetBackingType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetBackingType getAssetBackingType() { return assetBackingType; } + public void setAssetBackingType(AssetBackingType assetBackingType) { this.assetBackingType = assetBackingType; } public AssetInfo assetOwnershipLevel(AssetOwnershipLevel assetOwnershipLevel) { + this.assetOwnershipLevel = assetOwnershipLevel; return this; } - /** + /** * Get assetOwnershipLevel * @return assetOwnershipLevel - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetOwnershipLevel getAssetOwnershipLevel() { return assetOwnershipLevel; } + public void setAssetOwnershipLevel(AssetOwnershipLevel assetOwnershipLevel) { this.assetOwnershipLevel = assetOwnershipLevel; } public AssetInfo namespaceName(String namespaceName) { + this.namespaceName = namespaceName; return this; } - /** + /** * namespace_name that the asset is registered to * @return namespaceName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "user1", value = "namespace_name that the asset is registered to") + public String getNamespaceName() { return namespaceName; } + public void setNamespaceName(String namespaceName) { this.namespaceName = namespaceName; } public AssetInfo namespaceUuid(String namespaceUuid) { + this.namespaceUuid = namespaceUuid; return this; } - /** + /** * namespace_uuid that the asset is registered to * @return namespaceUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "namespace_uuid that the asset is registered to") + public String getNamespaceUuid() { return namespaceUuid; } + public void setNamespaceUuid(String namespaceUuid) { this.namespaceUuid = namespaceUuid; } public AssetInfo name(String name) { + this.name = name; return this; } - /** + /** * name of asset * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "myarray1", value = "name of asset") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public AssetInfo mimeType(String mimeType) { + this.mimeType = mimeType; return this; } - /** + /** * mime type of the asset * @return mimeType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "application/vnd.tiledb.v1.array", value = "mime type of the asset") + public String getMimeType() { return mimeType; } + public void setMimeType(String mimeType) { this.mimeType = mimeType; } - /** + /** * Time when the asset was created (rfc3339) * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Time when the asset was created (rfc3339)") + public OffsetDateTime getCreatedAt() { return createdAt; } + public AssetInfo metadata(MetadataStringified metadata) { + this.metadata = metadata; return this; } - /** + /** * Get metadata * @return metadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public MetadataStringified getMetadata() { return metadata; } + public void setMetadata(MetadataStringified metadata) { this.metadata = metadata; } @@ -297,10 +326,6 @@ public void setMetadata(MetadataStringified metadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AssetInfo instance itself */ public AssetInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -312,8 +337,6 @@ public AssetInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -321,9 +344,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -412,49 +432,38 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AssetInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AssetInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AssetInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AssetInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in AssetInfo is not found in the empty JSON string", AssetInfo.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - // validate the optional field `asset_type` - if (jsonObj.get("asset_type") != null && !jsonObj.get("asset_type").isJsonNull()) { - AssetType.validateJsonElement(jsonObj.get("asset_type")); - } - // validate the optional field `asset_backing_type` - if (jsonObj.get("asset_backing_type") != null && !jsonObj.get("asset_backing_type").isJsonNull()) { - AssetBackingType.validateJsonElement(jsonObj.get("asset_backing_type")); - } - // validate the optional field `asset_ownership_level` - if (jsonObj.get("asset_ownership_level") != null && !jsonObj.get("asset_ownership_level").isJsonNull()) { - AssetOwnershipLevel.validateJsonElement(jsonObj.get("asset_ownership_level")); - } - if ((jsonObj.get("namespace_name") != null && !jsonObj.get("namespace_name").isJsonNull()) && !jsonObj.get("namespace_name").isJsonPrimitive()) { + if (jsonObj.get("namespace_name") != null && !jsonObj.get("namespace_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_name").toString())); } - if ((jsonObj.get("namespace_uuid") != null && !jsonObj.get("namespace_uuid").isJsonNull()) && !jsonObj.get("namespace_uuid").isJsonPrimitive()) { + if (jsonObj.get("namespace_uuid") != null && !jsonObj.get("namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_uuid").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("mime_type") != null && !jsonObj.get("mime_type").isJsonNull()) && !jsonObj.get("mime_type").isJsonPrimitive()) { + if (jsonObj.get("mime_type") != null && !jsonObj.get("mime_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mime_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mime_type").toString())); } // validate the optional field `metadata` - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - MetadataStringified.validateJsonElement(jsonObj.get("metadata")); + if (jsonObj.getAsJsonObject("metadata") != null) { + MetadataStringified.validateJsonObject(jsonObj.getAsJsonObject("metadata")); } } @@ -474,7 +483,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AssetInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -486,12 +495,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -500,9 +504,8 @@ else if (entry.getValue() instanceof Character) @Override public AssetInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance AssetInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -516,10 +519,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -530,22 +531,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AssetInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of AssetInfo - * @throws IOException if the JSON string is invalid with respect to AssetInfo - */ + /** + * Create an instance of AssetInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssetInfo + * @throws IOException if the JSON string is invalid with respect to AssetInfo + */ public static AssetInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AssetInfo.class); } - /** - * Convert an instance of AssetInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AssetInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java index c5716ce..8d65a6d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Asset associated with a TileDB Cloud account */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Asset associated with a TileDB Cloud account") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class AssetListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList<>(); + private List data = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public AssetListResponse() { + public AssetListResponse() { } public AssetListResponse data(List data) { + this.data = data; return this; } @@ -79,34 +72,41 @@ public AssetListResponse addDataItem(AssetInfo dataItem) { return this; } - /** + /** * asset information for each asset * @return data - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "asset information for each asset") + public List getData() { return data; } + public void setData(List data) { this.data = data; } public AssetListResponse paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AssetListResponse instance itself */ public AssetListResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public AssetListResponse putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AssetListResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AssetListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AssetListResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AssetListResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in AssetListResponse is not found in the empty JSON string", AssetListResponse.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - AssetInfo.validateJsonElement(jsonArraydata.get(i)); - }; + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + AssetInfo.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AssetListResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public AssetListResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance AssetListResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AssetListResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of AssetListResponse - * @throws IOException if the JSON string is invalid with respect to AssetListResponse - */ + /** + * Create an instance of AssetListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssetListResponse + * @throws IOException if the JSON string is invalid with respect to AssetListResponse + */ public static AssetListResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AssetListResponse.class); } - /** - * Convert an instance of AssetListResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AssetListResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java index 605b027..dfee890 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.StorageLocation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * Custom storage locations on a per–asset type basis. If any is unset, a suffix of the owning (user/organization) `default_s3_path` is used. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Custom storage locations on a per–asset type basis. If any is unset, a suffix of the owning (user/organization) `default_s3_path` is used. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class AssetLocations { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -80,137 +72,165 @@ public class AssetLocations { @SerializedName(SERIALIZED_NAME_UDFS) private StorageLocation udfs; - public AssetLocations() { + public AssetLocations() { } public AssetLocations arrays(StorageLocation arrays) { + this.arrays = arrays; return this; } - /** + /** * Get arrays * @return arrays - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getArrays() { return arrays; } + public void setArrays(StorageLocation arrays) { this.arrays = arrays; } public AssetLocations files(StorageLocation files) { + this.files = files; return this; } - /** + /** * Get files * @return files - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getFiles() { return files; } + public void setFiles(StorageLocation files) { this.files = files; } public AssetLocations groups(StorageLocation groups) { + this.groups = groups; return this; } - /** + /** * Get groups * @return groups - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getGroups() { return groups; } + public void setGroups(StorageLocation groups) { this.groups = groups; } public AssetLocations mlModels(StorageLocation mlModels) { + this.mlModels = mlModels; return this; } - /** + /** * Get mlModels * @return mlModels - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getMlModels() { return mlModels; } + public void setMlModels(StorageLocation mlModels) { this.mlModels = mlModels; } public AssetLocations notebooks(StorageLocation notebooks) { + this.notebooks = notebooks; return this; } - /** + /** * Get notebooks * @return notebooks - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getNotebooks() { return notebooks; } + public void setNotebooks(StorageLocation notebooks) { this.notebooks = notebooks; } public AssetLocations taskGraphs(StorageLocation taskGraphs) { + this.taskGraphs = taskGraphs; return this; } - /** + /** * Get taskGraphs * @return taskGraphs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getTaskGraphs() { return taskGraphs; } + public void setTaskGraphs(StorageLocation taskGraphs) { this.taskGraphs = taskGraphs; } public AssetLocations udfs(StorageLocation udfs) { + this.udfs = udfs; return this; } - /** + /** * Get udfs * @return udfs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public StorageLocation getUdfs() { return udfs; } + public void setUdfs(StorageLocation udfs) { this.udfs = udfs; } @@ -225,10 +245,6 @@ public void setUdfs(StorageLocation udfs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AssetLocations instance itself */ public AssetLocations putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -240,8 +256,6 @@ public AssetLocations putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -249,9 +263,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -331,46 +342,47 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AssetLocations - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AssetLocations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AssetLocations + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AssetLocations.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in AssetLocations is not found in the empty JSON string", AssetLocations.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `arrays` - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("arrays")); + if (jsonObj.getAsJsonObject("arrays") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("arrays")); } // validate the optional field `files` - if (jsonObj.get("files") != null && !jsonObj.get("files").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("files")); + if (jsonObj.getAsJsonObject("files") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("files")); } // validate the optional field `groups` - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("groups")); + if (jsonObj.getAsJsonObject("groups") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("groups")); } // validate the optional field `ml_models` - if (jsonObj.get("ml_models") != null && !jsonObj.get("ml_models").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("ml_models")); + if (jsonObj.getAsJsonObject("ml_models") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("ml_models")); } // validate the optional field `notebooks` - if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("notebooks")); + if (jsonObj.getAsJsonObject("notebooks") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("notebooks")); } // validate the optional field `task_graphs` - if (jsonObj.get("task_graphs") != null && !jsonObj.get("task_graphs").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("task_graphs")); + if (jsonObj.getAsJsonObject("task_graphs") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("task_graphs")); } // validate the optional field `udfs` - if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("udfs")); + if (jsonObj.getAsJsonObject("udfs") != null) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("udfs")); } } @@ -390,7 +402,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AssetLocations value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -402,12 +414,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -416,9 +423,8 @@ else if (entry.getValue() instanceof Character) @Override public AssetLocations read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance AssetLocations instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -432,10 +438,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -446,22 +450,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AssetLocations given an JSON string - * - * @param jsonString JSON string - * @return An instance of AssetLocations - * @throws IOException if the JSON string is invalid with respect to AssetLocations - */ + /** + * Create an instance of AssetLocations given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssetLocations + * @throws IOException if the JSON string is invalid with respect to AssetLocations + */ public static AssetLocations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AssetLocations.class); } - /** - * Convert an instance of AssetLocations to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AssetLocations to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java index aa10541..42a42ec 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public AssetOwnershipLevel read(final JsonReader jsonReader) throws IOException return AssetOwnershipLevel.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - AssetOwnershipLevel.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java index b61544d..cc5b806 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -95,10 +94,5 @@ public AssetType read(final JsonReader jsonReader) throws IOException { return AssetType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - AssetType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java index e249794..342e224 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import io.tiledb.cloud.rest_api.model.FilterPipeline; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +43,8 @@ /** * Attribute of array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Attribute of array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Attribute { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -77,107 +68,128 @@ public class Attribute { public static final String SERIALIZED_NAME_FILL_VALUE = "fillValue"; @SerializedName(SERIALIZED_NAME_FILL_VALUE) - private List fillValue = new ArrayList<>(); + private List fillValue = null; - public Attribute() { + public Attribute() { } public Attribute name(String name) { + this.name = name; return this; } - /** + /** * Attribute name * @return name - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "attribute1", required = true, value = "Attribute name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public Attribute type(Datatype type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Datatype getType() { return type; } + public void setType(Datatype type) { this.type = type; } public Attribute filterPipeline(FilterPipeline filterPipeline) { + this.filterPipeline = filterPipeline; return this; } - /** + /** * Get filterPipeline * @return filterPipeline - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public FilterPipeline getFilterPipeline() { return filterPipeline; } + public void setFilterPipeline(FilterPipeline filterPipeline) { this.filterPipeline = filterPipeline; } public Attribute cellValNum(Integer cellValNum) { + this.cellValNum = cellValNum; return this; } - /** + /** * Attribute number of values per cell * @return cellValNum - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "Attribute number of values per cell") + public Integer getCellValNum() { return cellValNum; } + public void setCellValNum(Integer cellValNum) { this.cellValNum = cellValNum; } public Attribute nullable(Boolean nullable) { + this.nullable = nullable; return this; } - /** + /** * Is attribute nullable * @return nullable - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Is attribute nullable") + public Boolean getNullable() { return nullable; } + public void setNullable(Boolean nullable) { this.nullable = nullable; } public Attribute fillValue(List fillValue) { + this.fillValue = fillValue; return this; } @@ -190,15 +202,18 @@ public Attribute addFillValueItem(Integer fillValueItem) { return this; } - /** + /** * The default fill value * @return fillValue - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The default fill value") + public List getFillValue() { return fillValue; } + public void setFillValue(List fillValue) { this.fillValue = fillValue; } @@ -213,10 +228,6 @@ public void setFillValue(List fillValue) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Attribute instance itself */ public Attribute putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -228,8 +239,6 @@ public Attribute putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -237,9 +246,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -320,35 +326,36 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("cellValNum"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Attribute - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Attribute + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Attribute.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Attribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the required field `type` - Datatype.validateJsonElement(jsonObj.get("type")); - // validate the required field `filterPipeline` - FilterPipeline.validateJsonElement(jsonObj.get("filterPipeline")); - // ensure the optional json data is an array if present - if (jsonObj.get("fillValue") != null && !jsonObj.get("fillValue").isJsonNull() && !jsonObj.get("fillValue").isJsonArray()) { + // validate the optional field `filterPipeline` + if (jsonObj.getAsJsonObject("filterPipeline") != null) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); + } + // ensure the json data is an array + if (jsonObj.get("fillValue") != null && !jsonObj.get("fillValue").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fillValue` to be an array in the JSON string but got `%s`", jsonObj.get("fillValue").toString())); } } @@ -369,7 +376,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Attribute value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -381,12 +388,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -395,9 +397,8 @@ else if (entry.getValue() instanceof Character) @Override public Attribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Attribute instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -411,10 +412,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -425,22 +424,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Attribute given an JSON string - * - * @param jsonString JSON string - * @return An instance of Attribute - * @throws IOException if the JSON string is invalid with respect to Attribute - */ + /** + * Create an instance of Attribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of Attribute + * @throws IOException if the JSON string is invalid with respect to Attribute + */ public static Attribute fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Attribute.class); } - /** - * Convert an instance of Attribute to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Attribute to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java index 9925c98..f77ec7c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Represents an attribute buffer header information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Represents an attribute buffer header information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class AttributeBufferHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -63,61 +56,73 @@ public class AttributeBufferHeader { @SerializedName(SERIALIZED_NAME_VAR_LEN_BUFFER_SIZE_IN_BYTES) private Integer varLenBufferSizeInBytes; - public AttributeBufferHeader() { + public AttributeBufferHeader() { } public AttributeBufferHeader name(String name) { + this.name = name; return this; } - /** + /** * Attribute name * @return name - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "attribute1", required = true, value = "Attribute name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public AttributeBufferHeader fixedLenBufferSizeInBytes(Integer fixedLenBufferSizeInBytes) { + this.fixedLenBufferSizeInBytes = fixedLenBufferSizeInBytes; return this; } - /** + /** * Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes) * @return fixedLenBufferSizeInBytes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes)") + public Integer getFixedLenBufferSizeInBytes() { return fixedLenBufferSizeInBytes; } + public void setFixedLenBufferSizeInBytes(Integer fixedLenBufferSizeInBytes) { this.fixedLenBufferSizeInBytes = fixedLenBufferSizeInBytes; } public AttributeBufferHeader varLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { + this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; return this; } - /** + /** * Number of bytes in the var-length attribute data buffer * @return varLenBufferSizeInBytes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Number of bytes in the var-length attribute data buffer") + public Integer getVarLenBufferSizeInBytes() { return varLenBufferSizeInBytes; } + public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; } @@ -132,10 +137,6 @@ public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AttributeBufferHeader instance itself */ public AttributeBufferHeader putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public AttributeBufferHeader putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -229,27 +225,28 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("varLenBufferSizeInBytes"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AttributeBufferHeader - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeBufferHeader.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AttributeBufferHeader + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AttributeBufferHeader.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferHeader is not found in the empty JSON string", AttributeBufferHeader.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttributeBufferHeader.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -270,7 +267,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AttributeBufferHeader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -282,12 +279,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -296,9 +288,8 @@ else if (entry.getValue() instanceof Character) @Override public AttributeBufferHeader read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance AttributeBufferHeader instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -312,10 +303,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -326,22 +315,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AttributeBufferHeader given an JSON string - * - * @param jsonString JSON string - * @return An instance of AttributeBufferHeader - * @throws IOException if the JSON string is invalid with respect to AttributeBufferHeader - */ + /** + * Create an instance of AttributeBufferHeader given an JSON string + * + * @param jsonString JSON string + * @return An instance of AttributeBufferHeader + * @throws IOException if the JSON string is invalid with respect to AttributeBufferHeader + */ public static AttributeBufferHeader fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AttributeBufferHeader.class); } - /** - * Convert an instance of AttributeBufferHeader to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AttributeBufferHeader to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java index 7e6a707..b6a06b2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * object representing buffer size of an attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "object representing buffer size of an attribute") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class AttributeBufferSize { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -63,61 +56,73 @@ public class AttributeBufferSize { @SerializedName(SERIALIZED_NAME_DATA_BYTES) private Integer dataBytes; - public AttributeBufferSize() { + public AttributeBufferSize() { } public AttributeBufferSize attribute(String attribute) { + this.attribute = attribute; return this; } - /** + /** * name of attribute * @return attribute - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "name of attribute") + public String getAttribute() { return attribute; } + public void setAttribute(String attribute) { this.attribute = attribute; } public AttributeBufferSize offsetBytes(Integer offsetBytes) { + this.offsetBytes = offsetBytes; return this; } - /** + /** * buffer size (in bytes) of offset buffer * @return offsetBytes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "buffer size (in bytes) of offset buffer") + public Integer getOffsetBytes() { return offsetBytes; } + public void setOffsetBytes(Integer offsetBytes) { this.offsetBytes = offsetBytes; } public AttributeBufferSize dataBytes(Integer dataBytes) { + this.dataBytes = dataBytes; return this; } - /** + /** * buffer size (in bytes) of data buffer * @return dataBytes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "buffer size (in bytes) of data buffer") + public Integer getDataBytes() { return dataBytes; } + public void setDataBytes(Integer dataBytes) { this.dataBytes = dataBytes; } @@ -132,10 +137,6 @@ public void setDataBytes(Integer dataBytes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AttributeBufferSize instance itself */ public AttributeBufferSize putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public AttributeBufferSize putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -229,27 +225,28 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("dataBytes"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AttributeBufferSize - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeBufferSize.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AttributeBufferSize + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AttributeBufferSize.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferSize is not found in the empty JSON string", AttributeBufferSize.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttributeBufferSize.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("attribute").isJsonPrimitive()) { + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `attribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attribute").toString())); } } @@ -270,7 +267,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AttributeBufferSize value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -282,12 +279,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -296,9 +288,8 @@ else if (entry.getValue() instanceof Character) @Override public AttributeBufferSize read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance AttributeBufferSize instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -312,10 +303,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -326,22 +315,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AttributeBufferSize given an JSON string - * - * @param jsonString JSON string - * @return An instance of AttributeBufferSize - * @throws IOException if the JSON string is invalid with respect to AttributeBufferSize - */ + /** + * Create an instance of AttributeBufferSize given an JSON string + * + * @param jsonString JSON string + * @return An instance of AttributeBufferSize + * @throws IOException if the JSON string is invalid with respect to AttributeBufferSize + */ public static AttributeBufferSize fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AttributeBufferSize.class); } - /** - * Convert an instance of AttributeBufferSize to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AttributeBufferSize to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java index 6b8bfde..5245100 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Backoff is a backoff strategy to use within retryStrategy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Backoff is a backoff strategy to use within retryStrategy") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Backoff { public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) @@ -63,61 +56,73 @@ public class Backoff { @SerializedName(SERIALIZED_NAME_MAX_DURATION) private String maxDuration; - public Backoff() { + public Backoff() { } public Backoff duration(String duration) { + this.duration = duration; return this; } - /** + /** * Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\") * @return duration - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\")") + public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public Backoff factor(Integer factor) { + this.factor = factor; return this; } - /** + /** * Factor is a factor to multiply the base duration after each failed retry * @return factor - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Factor is a factor to multiply the base duration after each failed retry") + public Integer getFactor() { return factor; } + public void setFactor(Integer factor) { this.factor = factor; } public Backoff maxDuration(String maxDuration) { + this.maxDuration = maxDuration; return this; } - /** + /** * MaxDuration is the maximum amount of time allowed for the backoff strategy * @return maxDuration - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "MaxDuration is the maximum amount of time allowed for the backoff strategy") + public String getMaxDuration() { return maxDuration; } + public void setMaxDuration(String maxDuration) { this.maxDuration = maxDuration; } @@ -132,10 +137,6 @@ public void setMaxDuration(String maxDuration) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Backoff instance itself */ public Backoff putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public Backoff putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,23 +222,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Backoff - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Backoff.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Backoff + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Backoff.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Backoff is not found in the empty JSON string", Backoff.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { + if (jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - if ((jsonObj.get("maxDuration") != null && !jsonObj.get("maxDuration").isJsonNull()) && !jsonObj.get("maxDuration").isJsonPrimitive()) { + if (jsonObj.get("maxDuration") != null && !jsonObj.get("maxDuration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `maxDuration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDuration").toString())); } } @@ -263,7 +260,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Backoff value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -275,12 +272,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -289,9 +281,8 @@ else if (entry.getValue() instanceof Character) @Override public Backoff read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Backoff instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -305,10 +296,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -319,22 +308,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Backoff given an JSON string - * - * @param jsonString JSON string - * @return An instance of Backoff - * @throws IOException if the JSON string is invalid with respect to Backoff - */ + /** + * Create an instance of Backoff given an JSON string + * + * @param jsonString JSON string + * @return An instance of Backoff + * @throws IOException if the JSON string is invalid with respect to Backoff + */ public static Backoff fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Backoff.class); } - /** - * Convert an instance of Backoff to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Backoff to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomain.java b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java similarity index 59% rename from src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomain.java rename to src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java index cb9a9a3..9662597 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java @@ -1,8 +1,8 @@ /* - * Tiledb Storage Platform API + * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 1.4.0 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package io.tiledb.cloud.rest_api.v2.model; +package io.tiledb.cloud.rest_api.model; import java.util.Objects; - +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -31,107 +31,80 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; -import io.tiledb.cloud.rest_api.v2.JSON; +import io.tiledb.cloud.rest_api.JSON; /** - * object representing a non-empty domain + * Request body to change the credentials of the given assets */ -@ApiModel(description = "object representing a non-empty domain") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class NonEmptyDomain { - public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; - @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) - private DomainArray nonEmptyDomain; - - public static final String SERIALIZED_NAME_IS_EMPTY = "isEmpty"; - @SerializedName(SERIALIZED_NAME_IS_EMPTY) - private Boolean isEmpty; - - public static final String SERIALIZED_NAME_SIZES = "sizes"; - @SerializedName(SERIALIZED_NAME_SIZES) - private List sizes = null; - - public NonEmptyDomain() { +@ApiModel(description = "Request body to change the credentials of the given assets") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") +public class ChangeAssetCredentialsRequest { + public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS = "access_credentials"; + @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS) + private String accessCredentials; + + public static final String SERIALIZED_NAME_ASSET_UUIDS = "asset_uuids"; + @SerializedName(SERIALIZED_NAME_ASSET_UUIDS) + private List assetUuids = new ArrayList<>(); + + public ChangeAssetCredentialsRequest() { } - public NonEmptyDomain nonEmptyDomain(DomainArray nonEmptyDomain) { + public ChangeAssetCredentialsRequest accessCredentials(String accessCredentials) { - this.nonEmptyDomain = nonEmptyDomain; + this.accessCredentials = accessCredentials; return this; } /** - * Get nonEmptyDomain - * @return nonEmptyDomain + * The name or uuid of the access credentials + * @return accessCredentials **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "The name or uuid of the access credentials") - public DomainArray getNonEmptyDomain() { - return nonEmptyDomain; + public String getAccessCredentials() { + return accessCredentials; } - public void setNonEmptyDomain(DomainArray nonEmptyDomain) { - this.nonEmptyDomain = nonEmptyDomain; + public void setAccessCredentials(String accessCredentials) { + this.accessCredentials = accessCredentials; } - public NonEmptyDomain isEmpty(Boolean isEmpty) { + public ChangeAssetCredentialsRequest assetUuids(List assetUuids) { - this.isEmpty = isEmpty; + this.assetUuids = assetUuids; return this; } - /** - * Is non-empty domain really empty? - * @return isEmpty - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Is non-empty domain really empty?") - - public Boolean getIsEmpty() { - return isEmpty; - } - - - public void setIsEmpty(Boolean isEmpty) { - this.isEmpty = isEmpty; - } - - - public NonEmptyDomain sizes(List sizes) { - - this.sizes = sizes; - return this; - } - - public NonEmptyDomain addSizesItem(Integer sizesItem) { - if (this.sizes == null) { - this.sizes = new ArrayList<>(); - } - this.sizes.add(sizesItem); + public ChangeAssetCredentialsRequest addAssetUuidsItem(String assetUuidsItem) { + this.assetUuids.add(assetUuidsItem); return this; } /** - * Number of elements in DomainArray for var length - * @return sizes + * The list of asset uuids to have their credentials changed + * @return assetUuids **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Number of elements in DomainArray for var length") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The list of asset uuids to have their credentials changed") - public List getSizes() { - return sizes; + public List getAssetUuids() { + return assetUuids; } - public void setSizes(List sizes) { - this.sizes = sizes; + public void setAssetUuids(List assetUuids) { + this.assetUuids = assetUuids; } /** @@ -145,7 +118,7 @@ public void setSizes(List sizes) { * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. */ - public NonEmptyDomain putAdditionalProperty(String key, Object value) { + public ChangeAssetCredentialsRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -179,25 +152,23 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NonEmptyDomain nonEmptyDomain = (NonEmptyDomain) o; - return Objects.equals(this.nonEmptyDomain, nonEmptyDomain.nonEmptyDomain) && - Objects.equals(this.isEmpty, nonEmptyDomain.isEmpty) && - Objects.equals(this.sizes, nonEmptyDomain.sizes)&& - Objects.equals(this.additionalProperties, nonEmptyDomain.additionalProperties); + ChangeAssetCredentialsRequest changeAssetCredentialsRequest = (ChangeAssetCredentialsRequest) o; + return Objects.equals(this.accessCredentials, changeAssetCredentialsRequest.accessCredentials) && + Objects.equals(this.assetUuids, changeAssetCredentialsRequest.assetUuids)&& + Objects.equals(this.additionalProperties, changeAssetCredentialsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(nonEmptyDomain, isEmpty, sizes, additionalProperties); + return Objects.hash(accessCredentials, assetUuids, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NonEmptyDomain {\n"); - sb.append(" nonEmptyDomain: ").append(toIndentedString(nonEmptyDomain)).append("\n"); - sb.append(" isEmpty: ").append(toIndentedString(isEmpty)).append("\n"); - sb.append(" sizes: ").append(toIndentedString(sizes)).append("\n"); + sb.append("class ChangeAssetCredentialsRequest {\n"); + sb.append(" accessCredentials: ").append(toIndentedString(accessCredentials)).append("\n"); + sb.append(" assetUuids: ").append(toIndentedString(assetUuids)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -221,44 +192,42 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("nonEmptyDomain"); - openapiFields.add("isEmpty"); - openapiFields.add("sizes"); + openapiFields.add("access_credentials"); + openapiFields.add("asset_uuids"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("nonEmptyDomain"); - openapiRequiredFields.add("isEmpty"); + openapiRequiredFields.add("access_credentials"); + openapiRequiredFields.add("asset_uuids"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NonEmptyDomain + * @throws IOException if the JSON Object is invalid with respect to ChangeAssetCredentialsRequest */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (NonEmptyDomain.openapiRequiredFields.isEmpty()) { + if (ChangeAssetCredentialsRequest.openapiRequiredFields.isEmpty()) { return; } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in NonEmptyDomain is not found in the empty JSON string", NonEmptyDomain.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeAssetCredentialsRequest is not found in the empty JSON string", ChangeAssetCredentialsRequest.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NonEmptyDomain.openapiRequiredFields) { + for (String requiredField : ChangeAssetCredentialsRequest.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - // validate the optional field `nonEmptyDomain` - if (jsonObj.getAsJsonObject("nonEmptyDomain") != null) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); + if (jsonObj.get("access_credentials") != null && !jsonObj.get("access_credentials").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `access_credentials` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials").toString())); } // ensure the json data is an array - if (jsonObj.get("sizes") != null && !jsonObj.get("sizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sizes` to be an array in the JSON string but got `%s`", jsonObj.get("sizes").toString())); + if (jsonObj.get("asset_uuids") != null && !jsonObj.get("asset_uuids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("asset_uuids").toString())); } } @@ -266,16 +235,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NonEmptyDomain.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NonEmptyDomain' and its subtypes + if (!ChangeAssetCredentialsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeAssetCredentialsRequest' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NonEmptyDomain.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChangeAssetCredentialsRequest.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NonEmptyDomain value) throws IOException { + public void write(JsonWriter out, ChangeAssetCredentialsRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additonal properties @@ -298,11 +267,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NonEmptyDomain read(JsonReader in) throws IOException { + public ChangeAssetCredentialsRequest read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NonEmptyDomain instance = thisAdapter.fromJsonTree(jsonObj); + ChangeAssetCredentialsRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -327,18 +296,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NonEmptyDomain given an JSON string + * Create an instance of ChangeAssetCredentialsRequest given an JSON string * * @param jsonString JSON string - * @return An instance of NonEmptyDomain - * @throws IOException if the JSON string is invalid with respect to NonEmptyDomain + * @return An instance of ChangeAssetCredentialsRequest + * @throws IOException if the JSON string is invalid with respect to ChangeAssetCredentialsRequest */ - public static NonEmptyDomain fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NonEmptyDomain.class); + public static ChangeAssetCredentialsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeAssetCredentialsRequest.class); } /** - * Convert an instance of NonEmptyDomain to an JSON string + * Convert an instance of ChangeAssetCredentialsRequest to an JSON string * * @return JSON string */ diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java b/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java index d42cf16..fc6510c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -149,10 +148,5 @@ public Datatype read(final JsonReader jsonReader) throws IOException { return Datatype.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - Datatype.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java index 4f8347b..6e7a368 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java @@ -14,38 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import io.tiledb.cloud.rest_api.model.DimensionTileExtent; -import io.tiledb.cloud.rest_api.model.DomainArray; -import io.tiledb.cloud.rest_api.model.FilterPipeline; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +41,8 @@ /** * Dimension of array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Dimension of array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Dimension { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -79,118 +68,142 @@ public class Dimension { @SerializedName(SERIALIZED_NAME_FILTER_PIPELINE) private FilterPipeline filterPipeline; - public Dimension() { + public Dimension() { } public Dimension name(String name) { + this.name = name; return this; } - /** + /** * Dimension name * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "row", value = "Dimension name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public Dimension type(Datatype type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Datatype getType() { return type; } + public void setType(Datatype type) { this.type = type; } public Dimension domain(DomainArray domain) { + this.domain = domain; return this; } - /** + /** * Get domain * @return domain - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public DomainArray getDomain() { return domain; } + public void setDomain(DomainArray domain) { this.domain = domain; } public Dimension nullTileExtent(Boolean nullTileExtent) { + this.nullTileExtent = nullTileExtent; return this; } - /** + /** * Is tile extent null * @return nullTileExtent - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Is tile extent null") + public Boolean getNullTileExtent() { return nullTileExtent; } + public void setNullTileExtent(Boolean nullTileExtent) { this.nullTileExtent = nullTileExtent; } public Dimension tileExtent(DimensionTileExtent tileExtent) { + this.tileExtent = tileExtent; return this; } - /** + /** * Get tileExtent * @return tileExtent - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DimensionTileExtent getTileExtent() { return tileExtent; } + public void setTileExtent(DimensionTileExtent tileExtent) { this.tileExtent = tileExtent; } public Dimension filterPipeline(FilterPipeline filterPipeline) { + this.filterPipeline = filterPipeline; return this; } - /** + /** * Get filterPipeline * @return filterPipeline - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public FilterPipeline getFilterPipeline() { return filterPipeline; } + public void setFilterPipeline(FilterPipeline filterPipeline) { this.filterPipeline = filterPipeline; } @@ -205,10 +218,6 @@ public void setFilterPipeline(FilterPipeline filterPipeline) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Dimension instance itself */ public Dimension putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -220,8 +229,6 @@ public Dimension putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -229,9 +236,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -311,40 +315,41 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("nullTileExtent"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Dimension - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Dimension.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Dimension + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Dimension.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Dimension is not found in the empty JSON string", Dimension.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Dimension.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the required field `type` - Datatype.validateJsonElement(jsonObj.get("type")); - // validate the required field `domain` - DomainArray.validateJsonElement(jsonObj.get("domain")); + // validate the optional field `domain` + if (jsonObj.getAsJsonObject("domain") != null) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("domain")); + } // validate the optional field `tileExtent` - if (jsonObj.get("tileExtent") != null && !jsonObj.get("tileExtent").isJsonNull()) { - DimensionTileExtent.validateJsonElement(jsonObj.get("tileExtent")); + if (jsonObj.getAsJsonObject("tileExtent") != null) { + DimensionTileExtent.validateJsonObject(jsonObj.getAsJsonObject("tileExtent")); } // validate the optional field `filterPipeline` - if (jsonObj.get("filterPipeline") != null && !jsonObj.get("filterPipeline").isJsonNull()) { - FilterPipeline.validateJsonElement(jsonObj.get("filterPipeline")); + if (jsonObj.getAsJsonObject("filterPipeline") != null) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); } } @@ -364,7 +369,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Dimension value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -376,12 +381,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -390,9 +390,8 @@ else if (entry.getValue() instanceof Character) @Override public Dimension read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Dimension instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -406,10 +405,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -420,22 +417,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Dimension given an JSON string - * - * @param jsonString JSON string - * @return An instance of Dimension - * @throws IOException if the JSON string is invalid with respect to Dimension - */ + /** + * Create an instance of Dimension given an JSON string + * + * @param jsonString JSON string + * @return An instance of Dimension + * @throws IOException if the JSON string is invalid with respect to Dimension + */ public static Dimension fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Dimension.class); } - /** - * Convert an instance of Dimension to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Dimension to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java index 51f82f1..e67abc8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * A single, typed coordinate for a dimension */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A single, typed coordinate for a dimension") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class DimensionCoordinate { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -91,194 +84,234 @@ public class DimensionCoordinate { @SerializedName(SERIALIZED_NAME_FLOAT64) private Double float64; - public DimensionCoordinate() { + public DimensionCoordinate() { } public DimensionCoordinate int8(Integer int8) { + this.int8 = int8; return this; } - /** + /** * Get int8 * @return int8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt8() { return int8; } + public void setInt8(Integer int8) { this.int8 = int8; } public DimensionCoordinate uint8(Integer uint8) { + this.uint8 = uint8; return this; } - /** + /** * Get uint8 * @return uint8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint8() { return uint8; } + public void setUint8(Integer uint8) { this.uint8 = uint8; } public DimensionCoordinate int16(Integer int16) { + this.int16 = int16; return this; } - /** + /** * Get int16 * @return int16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt16() { return int16; } + public void setInt16(Integer int16) { this.int16 = int16; } public DimensionCoordinate uint16(Integer uint16) { + this.uint16 = uint16; return this; } - /** + /** * Get uint16 * @return uint16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint16() { return uint16; } + public void setUint16(Integer uint16) { this.uint16 = uint16; } public DimensionCoordinate int32(Integer int32) { + this.int32 = int32; return this; } - /** + /** * Get int32 * @return int32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + public void setInt32(Integer int32) { this.int32 = int32; } public DimensionCoordinate uint32(Integer uint32) { + this.uint32 = uint32; return this; } - /** + /** * Get uint32 * @return uint32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint32() { return uint32; } + public void setUint32(Integer uint32) { this.uint32 = uint32; } public DimensionCoordinate int64(Long int64) { + this.int64 = int64; return this; } - /** + /** * Get int64 * @return int64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + public void setInt64(Long int64) { this.int64 = int64; } public DimensionCoordinate uint64(Integer uint64) { + this.uint64 = uint64; return this; } - /** + /** * Get uint64 * @return uint64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint64() { return uint64; } + public void setUint64(Integer uint64) { this.uint64 = uint64; } public DimensionCoordinate float32(Float float32) { + this.float32 = float32; return this; } - /** + /** * Get float32 * @return float32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Float getFloat32() { return float32; } + public void setFloat32(Float float32) { this.float32 = float32; } public DimensionCoordinate float64(Double float64) { + this.float64 = float64; return this; } - /** + /** * Get float64 * @return float64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Double getFloat64() { return float64; } + public void setFloat64(Double float64) { this.float64 = float64; } @@ -293,10 +326,6 @@ public void setFloat64(Double float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DimensionCoordinate instance itself */ public DimensionCoordinate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -308,8 +337,6 @@ public DimensionCoordinate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -317,9 +344,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -408,19 +432,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DimensionCoordinate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DimensionCoordinate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to DimensionCoordinate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DimensionCoordinate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionCoordinate is not found in the empty JSON string", DimensionCoordinate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -439,7 +464,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DimensionCoordinate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -451,12 +476,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -465,9 +485,8 @@ else if (entry.getValue() instanceof Character) @Override public DimensionCoordinate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance DimensionCoordinate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -481,10 +500,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -495,22 +512,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DimensionCoordinate given an JSON string - * - * @param jsonString JSON string - * @return An instance of DimensionCoordinate - * @throws IOException if the JSON string is invalid with respect to DimensionCoordinate - */ + /** + * Create an instance of DimensionCoordinate given an JSON string + * + * @param jsonString JSON string + * @return An instance of DimensionCoordinate + * @throws IOException if the JSON string is invalid with respect to DimensionCoordinate + */ public static DimensionCoordinate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DimensionCoordinate.class); } - /** - * Convert an instance of DimensionCoordinate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DimensionCoordinate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java index f914e42..50246fb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Extent of tile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Extent of tile") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class DimensionTileExtent { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -91,194 +84,234 @@ public class DimensionTileExtent { @SerializedName(SERIALIZED_NAME_FLOAT64) private Integer float64; - public DimensionTileExtent() { + public DimensionTileExtent() { } public DimensionTileExtent int8(Integer int8) { + this.int8 = int8; return this; } - /** + /** * Get int8 * @return int8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt8() { return int8; } + public void setInt8(Integer int8) { this.int8 = int8; } public DimensionTileExtent uint8(Integer uint8) { + this.uint8 = uint8; return this; } - /** + /** * Get uint8 * @return uint8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint8() { return uint8; } + public void setUint8(Integer uint8) { this.uint8 = uint8; } public DimensionTileExtent int16(Integer int16) { + this.int16 = int16; return this; } - /** + /** * Get int16 * @return int16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt16() { return int16; } + public void setInt16(Integer int16) { this.int16 = int16; } public DimensionTileExtent uint16(Integer uint16) { + this.uint16 = uint16; return this; } - /** + /** * Get uint16 * @return uint16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint16() { return uint16; } + public void setUint16(Integer uint16) { this.uint16 = uint16; } public DimensionTileExtent int32(Integer int32) { + this.int32 = int32; return this; } - /** + /** * Get int32 * @return int32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + public void setInt32(Integer int32) { this.int32 = int32; } public DimensionTileExtent uint32(Integer uint32) { + this.uint32 = uint32; return this; } - /** + /** * Get uint32 * @return uint32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint32() { return uint32; } + public void setUint32(Integer uint32) { this.uint32 = uint32; } public DimensionTileExtent int64(Long int64) { + this.int64 = int64; return this; } - /** + /** * Get int64 * @return int64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + public void setInt64(Long int64) { this.int64 = int64; } public DimensionTileExtent uint64(Integer uint64) { + this.uint64 = uint64; return this; } - /** + /** * Get uint64 * @return uint64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint64() { return uint64; } + public void setUint64(Integer uint64) { this.uint64 = uint64; } public DimensionTileExtent float32(Integer float32) { + this.float32 = float32; return this; } - /** + /** * Get float32 * @return float32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getFloat32() { return float32; } + public void setFloat32(Integer float32) { this.float32 = float32; } public DimensionTileExtent float64(Integer float64) { + this.float64 = float64; return this; } - /** + /** * Get float64 * @return float64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getFloat64() { return float64; } + public void setFloat64(Integer float64) { this.float64 = float64; } @@ -293,10 +326,6 @@ public void setFloat64(Integer float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DimensionTileExtent instance itself */ public DimensionTileExtent putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -308,8 +337,6 @@ public DimensionTileExtent putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -317,9 +344,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -408,19 +432,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DimensionTileExtent - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DimensionTileExtent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to DimensionTileExtent + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DimensionTileExtent.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionTileExtent is not found in the empty JSON string", DimensionTileExtent.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -439,7 +464,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DimensionTileExtent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -451,12 +476,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -465,9 +485,8 @@ else if (entry.getValue() instanceof Character) @Override public DimensionTileExtent read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance DimensionTileExtent instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -481,10 +500,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -495,22 +512,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DimensionTileExtent given an JSON string - * - * @param jsonString JSON string - * @return An instance of DimensionTileExtent - * @throws IOException if the JSON string is invalid with respect to DimensionTileExtent - */ + /** + * Create an instance of DimensionTileExtent given an JSON string + * + * @param jsonString JSON string + * @return An instance of DimensionTileExtent + * @throws IOException if the JSON string is invalid with respect to DimensionTileExtent + */ public static DimensionTileExtent fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DimensionTileExtent.class); } - /** - * Convert an instance of DimensionTileExtent to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DimensionTileExtent to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java index 63e86c9..2f00f05 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java @@ -14,47 +14,37 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import io.tiledb.cloud.rest_api.model.Dimension; -import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Domain of array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Domain of array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Domain { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -72,88 +62,101 @@ public class Domain { @SerializedName(SERIALIZED_NAME_DIMENSIONS) private List dimensions = new ArrayList<>(); - public Domain() { + public Domain() { } public Domain type(Datatype type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Datatype getType() { return type; } + public void setType(Datatype type) { this.type = type; } public Domain tileOrder(Layout tileOrder) { + this.tileOrder = tileOrder; return this; } - /** + /** * Get tileOrder * @return tileOrder - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Layout getTileOrder() { return tileOrder; } + public void setTileOrder(Layout tileOrder) { this.tileOrder = tileOrder; } public Domain cellOrder(Layout cellOrder) { + this.cellOrder = cellOrder; return this; } - /** + /** * Get cellOrder * @return cellOrder - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Layout getCellOrder() { return cellOrder; } + public void setCellOrder(Layout cellOrder) { this.cellOrder = cellOrder; } public Domain dimensions(List dimensions) { + this.dimensions = dimensions; return this; } public Domain addDimensionsItem(Dimension dimensionsItem) { - if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); - } this.dimensions.add(dimensionsItem); return this; } - /** + /** * Array of dimensions * @return dimensions - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Array of dimensions") + public List getDimensions() { return dimensions; } + public void setDimensions(List dimensions) { this.dimensions = dimensions; } @@ -168,10 +171,6 @@ public void setDimensions(List dimensions) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Domain instance itself */ public Domain putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -183,8 +182,6 @@ public Domain putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -192,9 +189,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -269,42 +263,39 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("dimensions"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Domain - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Domain.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Domain + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Domain.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Domain is not found in the empty JSON string", Domain.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Domain.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - Datatype.validateJsonElement(jsonObj.get("type")); - // validate the required field `tileOrder` - Layout.validateJsonElement(jsonObj.get("tileOrder")); - // validate the required field `cellOrder` - Layout.validateJsonElement(jsonObj.get("cellOrder")); - // ensure the json data is an array - if (!jsonObj.get("dimensions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); - } - JsonArray jsonArraydimensions = jsonObj.getAsJsonArray("dimensions"); - // validate the required field `dimensions` (array) - for (int i = 0; i < jsonArraydimensions.size(); i++) { - Dimension.validateJsonElement(jsonArraydimensions.get(i)); - }; + if (jsonArraydimensions != null) { + // ensure the json data is an array + if (!jsonObj.get("dimensions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); + } + + // validate the optional field `dimensions` (array) + for (int i = 0; i < jsonArraydimensions.size(); i++) { + Dimension.validateJsonObject(jsonArraydimensions.get(i).getAsJsonObject()); + }; + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -323,7 +314,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Domain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -335,12 +326,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -349,9 +335,8 @@ else if (entry.getValue() instanceof Character) @Override public Domain read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Domain instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -365,10 +350,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -379,22 +362,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Domain given an JSON string - * - * @param jsonString JSON string - * @return An instance of Domain - * @throws IOException if the JSON string is invalid with respect to Domain - */ + /** + * Create an instance of Domain given an JSON string + * + * @param jsonString JSON string + * @return An instance of Domain + * @throws IOException if the JSON string is invalid with respect to Domain + */ public static Domain fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Domain.class); } - /** - * Convert an instance of Domain to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Domain to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java index c2d311f..647ca3c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,52 +43,54 @@ /** * Domain object for an array of each type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Domain object for an array of each type") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class DomainArray { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) - private List int8 = new ArrayList<>(); + private List int8 = null; public static final String SERIALIZED_NAME_UINT8 = "uint8"; @SerializedName(SERIALIZED_NAME_UINT8) - private List uint8 = new ArrayList<>(); + private List uint8 = null; public static final String SERIALIZED_NAME_INT16 = "int16"; @SerializedName(SERIALIZED_NAME_INT16) - private List int16 = new ArrayList<>(); + private List int16 = null; public static final String SERIALIZED_NAME_UINT16 = "uint16"; @SerializedName(SERIALIZED_NAME_UINT16) - private List uint16 = new ArrayList<>(); + private List uint16 = null; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - private List int32 = new ArrayList<>(); + private List int32 = null; public static final String SERIALIZED_NAME_UINT32 = "uint32"; @SerializedName(SERIALIZED_NAME_UINT32) - private List uint32 = new ArrayList<>(); + private List uint32 = null; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - private List int64 = new ArrayList<>(); + private List int64 = null; public static final String SERIALIZED_NAME_UINT64 = "uint64"; @SerializedName(SERIALIZED_NAME_UINT64) - private List uint64 = new ArrayList<>(); + private List uint64 = null; public static final String SERIALIZED_NAME_FLOAT32 = "float32"; @SerializedName(SERIALIZED_NAME_FLOAT32) - private List float32 = new ArrayList<>(); + private List float32 = null; public static final String SERIALIZED_NAME_FLOAT64 = "float64"; @SerializedName(SERIALIZED_NAME_FLOAT64) - private List float64 = new ArrayList<>(); + private List float64 = null; - public DomainArray() { + public DomainArray() { } public DomainArray int8(List int8) { + this.int8 = int8; return this; } @@ -109,21 +103,25 @@ public DomainArray addInt8Item(Integer int8Item) { return this; } - /** + /** * Get int8 * @return int8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getInt8() { return int8; } + public void setInt8(List int8) { this.int8 = int8; } public DomainArray uint8(List uint8) { + this.uint8 = uint8; return this; } @@ -136,21 +134,25 @@ public DomainArray addUint8Item(Integer uint8Item) { return this; } - /** + /** * Get uint8 * @return uint8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getUint8() { return uint8; } + public void setUint8(List uint8) { this.uint8 = uint8; } public DomainArray int16(List int16) { + this.int16 = int16; return this; } @@ -163,21 +165,25 @@ public DomainArray addInt16Item(Integer int16Item) { return this; } - /** + /** * Get int16 * @return int16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getInt16() { return int16; } + public void setInt16(List int16) { this.int16 = int16; } public DomainArray uint16(List uint16) { + this.uint16 = uint16; return this; } @@ -190,21 +196,25 @@ public DomainArray addUint16Item(Integer uint16Item) { return this; } - /** + /** * Get uint16 * @return uint16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getUint16() { return uint16; } + public void setUint16(List uint16) { this.uint16 = uint16; } public DomainArray int32(List int32) { + this.int32 = int32; return this; } @@ -217,21 +227,25 @@ public DomainArray addInt32Item(Integer int32Item) { return this; } - /** + /** * Get int32 * @return int32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getInt32() { return int32; } + public void setInt32(List int32) { this.int32 = int32; } public DomainArray uint32(List uint32) { + this.uint32 = uint32; return this; } @@ -244,21 +258,25 @@ public DomainArray addUint32Item(Integer uint32Item) { return this; } - /** + /** * Get uint32 * @return uint32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getUint32() { return uint32; } + public void setUint32(List uint32) { this.uint32 = uint32; } public DomainArray int64(List int64) { + this.int64 = int64; return this; } @@ -271,21 +289,25 @@ public DomainArray addInt64Item(Long int64Item) { return this; } - /** + /** * Get int64 * @return int64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getInt64() { return int64; } + public void setInt64(List int64) { this.int64 = int64; } public DomainArray uint64(List uint64) { + this.uint64 = uint64; return this; } @@ -298,21 +320,25 @@ public DomainArray addUint64Item(Integer uint64Item) { return this; } - /** + /** * Get uint64 * @return uint64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getUint64() { return uint64; } + public void setUint64(List uint64) { this.uint64 = uint64; } public DomainArray float32(List float32) { + this.float32 = float32; return this; } @@ -325,21 +351,25 @@ public DomainArray addFloat32Item(Float float32Item) { return this; } - /** + /** * Get float32 * @return float32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getFloat32() { return float32; } + public void setFloat32(List float32) { this.float32 = float32; } public DomainArray float64(List float64) { + this.float64 = float64; return this; } @@ -352,15 +382,18 @@ public DomainArray addFloat64Item(Double float64Item) { return this; } - /** + /** * Get float64 * @return float64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getFloat64() { return float64; } + public void setFloat64(List float64) { this.float64 = float64; } @@ -375,10 +408,6 @@ public void setFloat64(List float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DomainArray instance itself */ public DomainArray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -390,8 +419,6 @@ public DomainArray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -399,9 +426,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -490,57 +514,58 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DomainArray - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DomainArray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to DomainArray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DomainArray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in DomainArray is not found in the empty JSON string", DomainArray.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonNull() && !jsonObj.get("int8").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int8` to be an array in the JSON string but got `%s`", jsonObj.get("int8").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("uint8") != null && !jsonObj.get("uint8").isJsonNull() && !jsonObj.get("uint8").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("uint8") != null && !jsonObj.get("uint8").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint8` to be an array in the JSON string but got `%s`", jsonObj.get("uint8").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("int16") != null && !jsonObj.get("int16").isJsonNull() && !jsonObj.get("int16").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("int16") != null && !jsonObj.get("int16").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int16` to be an array in the JSON string but got `%s`", jsonObj.get("int16").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("uint16") != null && !jsonObj.get("uint16").isJsonNull() && !jsonObj.get("uint16").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("uint16") != null && !jsonObj.get("uint16").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint16` to be an array in the JSON string but got `%s`", jsonObj.get("uint16").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("int32") != null && !jsonObj.get("int32").isJsonNull() && !jsonObj.get("int32").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("int32") != null && !jsonObj.get("int32").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int32` to be an array in the JSON string but got `%s`", jsonObj.get("int32").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("uint32") != null && !jsonObj.get("uint32").isJsonNull() && !jsonObj.get("uint32").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("uint32") != null && !jsonObj.get("uint32").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint32` to be an array in the JSON string but got `%s`", jsonObj.get("uint32").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("int64") != null && !jsonObj.get("int64").isJsonNull() && !jsonObj.get("int64").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("int64") != null && !jsonObj.get("int64").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int64` to be an array in the JSON string but got `%s`", jsonObj.get("int64").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("uint64") != null && !jsonObj.get("uint64").isJsonNull() && !jsonObj.get("uint64").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("uint64") != null && !jsonObj.get("uint64").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint64` to be an array in the JSON string but got `%s`", jsonObj.get("uint64").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("float32") != null && !jsonObj.get("float32").isJsonNull() && !jsonObj.get("float32").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("float32") != null && !jsonObj.get("float32").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `float32` to be an array in the JSON string but got `%s`", jsonObj.get("float32").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("float64") != null && !jsonObj.get("float64").isJsonNull() && !jsonObj.get("float64").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("float64") != null && !jsonObj.get("float64").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `float64` to be an array in the JSON string but got `%s`", jsonObj.get("float64").toString())); } } @@ -561,7 +586,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DomainArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -573,12 +598,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -587,9 +607,8 @@ else if (entry.getValue() instanceof Character) @Override public DomainArray read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance DomainArray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -603,10 +622,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -617,22 +634,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DomainArray given an JSON string - * - * @param jsonString JSON string - * @return An instance of DomainArray - * @throws IOException if the JSON string is invalid with respect to DomainArray - */ + /** + * Create an instance of DomainArray given an JSON string + * + * @param jsonString JSON string + * @return An instance of DomainArray + * @throws IOException if the JSON string is invalid with respect to DomainArray + */ public static DomainArray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DomainArray.class); } - /** - * Convert an instance of DomainArray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DomainArray to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java index b8e2988..2aed4ec 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java @@ -14,44 +14,35 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainCheckStatus; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * The record of a check of a single domain's status. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The record of a check of a single domain's status.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class DomainCheckResult { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -61,42 +52,50 @@ public class DomainCheckResult { @SerializedName(SERIALIZED_NAME_STATUS) private DomainCheckStatus status; - public DomainCheckResult() { + public DomainCheckResult() { } public DomainCheckResult time(OffsetDateTime time) { + this.time = time; return this; } - /** + /** * The timestamp when the check was performed. * @return time - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The timestamp when the check was performed.") + public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public DomainCheckResult status(DomainCheckStatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DomainCheckStatus getStatus() { return status; } + public void setStatus(DomainCheckStatus status) { this.status = status; } @@ -111,10 +110,6 @@ public void setStatus(DomainCheckStatus status) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DomainCheckResult instance itself */ public DomainCheckResult putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -126,8 +121,6 @@ public DomainCheckResult putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -135,9 +128,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -202,23 +192,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DomainCheckResult - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DomainCheckResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to DomainCheckResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DomainCheckResult.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in DomainCheckResult is not found in the empty JSON string", DomainCheckResult.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DomainCheckStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -237,7 +224,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DomainCheckResult value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,12 +236,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -263,9 +245,8 @@ else if (entry.getValue() instanceof Character) @Override public DomainCheckResult read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance DomainCheckResult instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -279,10 +260,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -293,22 +272,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DomainCheckResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of DomainCheckResult - * @throws IOException if the JSON string is invalid with respect to DomainCheckResult - */ + /** + * Create an instance of DomainCheckResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of DomainCheckResult + * @throws IOException if the JSON string is invalid with respect to DomainCheckResult + */ public static DomainCheckResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DomainCheckResult.class); } - /** - * Convert an instance of DomainCheckResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DomainCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java index 0e333d7..49077e7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public DomainCheckStatus read(final JsonReader jsonReader) throws IOException { return DomainCheckStatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - DomainCheckStatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java index d55f65a..51a0303 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -73,10 +72,5 @@ public DomainVerificationStatus read(final JsonReader jsonReader) throws IOExcep return DomainVerificationStatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - DomainVerificationStatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java index 590c9fd..690b41b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +43,8 @@ /** * The enumerations of a single attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The enumerations of a single attribute") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Enumeration { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -75,111 +68,132 @@ public class Enumeration { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList<>(); + private List data = null; public static final String SERIALIZED_NAME_OFFSETS = "offsets"; @SerializedName(SERIALIZED_NAME_OFFSETS) - private List offsets = new ArrayList<>(); + private List offsets = null; - public Enumeration() { + public Enumeration() { } public Enumeration name(String name) { + this.name = name; return this; } - /** + /** * Get name * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public Enumeration pathName(String pathName) { + this.pathName = pathName; return this; } - /** + /** * Get pathName * @return pathName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getPathName() { return pathName; } + public void setPathName(String pathName) { this.pathName = pathName; } public Enumeration type(String type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getType() { return type; } + public void setType(String type) { this.type = type; } public Enumeration cellValNum(Integer cellValNum) { + this.cellValNum = cellValNum; return this; } - /** + /** * Get cellValNum * @return cellValNum - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getCellValNum() { return cellValNum; } + public void setCellValNum(Integer cellValNum) { this.cellValNum = cellValNum; } public Enumeration ordered(Boolean ordered) { + this.ordered = ordered; return this; } - /** + /** * Get ordered * @return ordered - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getOrdered() { return ordered; } + public void setOrdered(Boolean ordered) { this.ordered = ordered; } public Enumeration data(List data) { + this.data = data; return this; } @@ -192,21 +206,25 @@ public Enumeration addDataItem(Integer dataItem) { return this; } - /** + /** * Get data * @return data - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getData() { return data; } + public void setData(List data) { this.data = data; } public Enumeration offsets(List offsets) { + this.offsets = offsets; return this; } @@ -219,15 +237,18 @@ public Enumeration addOffsetsItem(Integer offsetsItem) { return this; } - /** + /** * Get offsets * @return offsets - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getOffsets() { return offsets; } + public void setOffsets(List offsets) { this.offsets = offsets; } @@ -242,10 +263,6 @@ public void setOffsets(List offsets) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Enumeration instance itself */ public Enumeration putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -257,8 +274,6 @@ public Enumeration putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -266,9 +281,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -348,34 +360,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Enumeration - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Enumeration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Enumeration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Enumeration.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Enumeration is not found in the empty JSON string", Enumeration.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("path_name") != null && !jsonObj.get("path_name").isJsonNull()) && !jsonObj.get("path_name").isJsonPrimitive()) { + if (jsonObj.get("path_name") != null && !jsonObj.get("path_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `path_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path_name").toString())); } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull() && !jsonObj.get("data").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("offsets") != null && !jsonObj.get("offsets").isJsonNull() && !jsonObj.get("offsets").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("offsets") != null && !jsonObj.get("offsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `offsets` to be an array in the JSON string but got `%s`", jsonObj.get("offsets").toString())); } } @@ -396,7 +409,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Enumeration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -408,12 +421,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -422,9 +430,8 @@ else if (entry.getValue() instanceof Character) @Override public Enumeration read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Enumeration instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -438,10 +445,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -452,22 +457,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Enumeration given an JSON string - * - * @param jsonString JSON string - * @return An instance of Enumeration - * @throws IOException if the JSON string is invalid with respect to Enumeration - */ + /** + * Create an instance of Enumeration given an JSON string + * + * @param jsonString JSON string + * @return An instance of Enumeration + * @throws IOException if the JSON string is invalid with respect to Enumeration + */ public static Enumeration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Enumeration.class); } - /** - * Convert an instance of Enumeration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Enumeration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Error.java b/src/main/java/io/tiledb/cloud/rest_api/model/Error.java index a32b041..7790a0e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Error.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Error.java @@ -14,42 +14,32 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Error { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -63,61 +53,73 @@ public class Error { @SerializedName(SERIALIZED_NAME_REQUEST_ID) private String requestId; - public Error() { + public Error() { } public Error code(Long code) { + this.code = code; return this; } - /** + /** * Get code * @return code - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Long getCode() { return code; } + public void setCode(Long code) { this.code = code; } public Error message(String message) { + this.message = message; return this; } - /** + /** * Get message * @return message - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } public Error requestId(String requestId) { + this.requestId = requestId; return this; } - /** + /** * Get requestId * @return requestId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getRequestId() { return requestId; } + public void setRequestId(String requestId) { this.requestId = requestId; } @@ -132,10 +134,6 @@ public void setRequestId(String requestId) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Error instance itself */ public Error putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +145,6 @@ public Error putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +152,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,23 +219,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Error - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Error + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Error.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + if (jsonObj.get("message") != null && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - if ((jsonObj.get("request_id") != null && !jsonObj.get("request_id").isJsonNull()) && !jsonObj.get("request_id").isJsonPrimitive()) { + if (jsonObj.get("request_id") != null && !jsonObj.get("request_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request_id").toString())); } } @@ -263,7 +257,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Error value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -275,12 +269,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -289,9 +278,8 @@ else if (entry.getValue() instanceof Character) @Override public Error read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Error instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -305,10 +293,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -319,22 +305,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Error given an JSON string - * - * @param jsonString JSON string - * @return An instance of Error - * @throws IOException if the JSON string is invalid with respect to Error - */ + /** + * Create an instance of Error given an JSON string + * + * @param jsonString JSON string + * @return An instance of Error + * @throws IOException if the JSON string is invalid with respect to Error + */ public static Error fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Error.class); } - /** - * Convert an instance of Error to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Error to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java index 139abd4..7bc44c6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Input/Output information required to create a new file */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Input/Output information required to create a new file") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FileCreate { public static final String SERIALIZED_NAME_INPUT_URI = "input_uri"; @SerializedName(SERIALIZED_NAME_INPUT_URI) @@ -63,61 +56,73 @@ public class FileCreate { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public FileCreate() { + public FileCreate() { } public FileCreate inputUri(String inputUri) { + this.inputUri = inputUri; return this; } - /** + /** * storage URI of the input file * @return inputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "storage URI of the input file") + public String getInputUri() { return inputUri; } + public void setInputUri(String inputUri) { this.inputUri = inputUri; } public FileCreate outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB File") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public FileCreate name(String name) { + this.name = name; return this; } - /** + /** * name to set for registered file * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name to set for registered file") + public String getName() { return name; } + public void setName(String name) { this.name = name; } @@ -132,10 +137,6 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileCreate instance itself */ public FileCreate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public FileCreate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FileCreate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FileCreate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FileCreate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileCreate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreate is not found in the empty JSON string", FileCreate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("input_uri") != null && !jsonObj.get("input_uri").isJsonNull()) && !jsonObj.get("input_uri").isJsonPrimitive()) { + if (jsonObj.get("input_uri") != null && !jsonObj.get("input_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `input_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input_uri").toString())); } - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public FileCreate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FileCreate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileCreate given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileCreate - * @throws IOException if the JSON string is invalid with respect to FileCreate - */ + /** + * Create an instance of FileCreate given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileCreate + * @throws IOException if the JSON string is invalid with respect to FileCreate + */ public static FileCreate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileCreate.class); } - /** - * Convert an instance of FileCreate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileCreate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java index 5726a65..301a222 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Created file name and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Created file name and information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FileCreated { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -59,42 +52,50 @@ public class FileCreated { @SerializedName(SERIALIZED_NAME_FILE_NAME) private String fileName; - public FileCreated() { + public FileCreated() { } public FileCreated outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB File") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public FileCreated fileName(String fileName) { + this.fileName = fileName; return this; } - /** + /** * name of the file created * @return fileName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of the file created") + public String getFileName() { return fileName; } + public void setFileName(String fileName) { this.fileName = fileName; } @@ -109,10 +110,6 @@ public void setFileName(String fileName) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileCreated instance itself */ public FileCreated putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -124,8 +121,6 @@ public FileCreated putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -133,9 +128,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,23 +192,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FileCreated - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FileCreated.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FileCreated + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileCreated.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreated is not found in the empty JSON string", FileCreated.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonNull()) && !jsonObj.get("file_name").isJsonPrimitive()) { + if (jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `file_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_name").toString())); } } @@ -237,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileCreated value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,12 +242,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -263,9 +251,8 @@ else if (entry.getValue() instanceof Character) @Override public FileCreated read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FileCreated instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -279,10 +266,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -293,22 +278,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileCreated given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileCreated - * @throws IOException if the JSON string is invalid with respect to FileCreated - */ + /** + * Create an instance of FileCreated given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileCreated + * @throws IOException if the JSON string is invalid with respect to FileCreated + */ public static FileCreated fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileCreated.class); } - /** - * Convert an instance of FileCreated to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileCreated to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java index b1dc89a..eb7d9b4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,29 +41,34 @@ /** * Output information required to export a file */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Output information required to export a file") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FileExport { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) private String outputUri; - public FileExport() { + public FileExport() { } public FileExport outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB File") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } @@ -86,10 +83,6 @@ public void setOutputUri(String outputUri) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileExport instance itself */ public FileExport putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -101,8 +94,6 @@ public FileExport putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,9 +101,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -174,20 +162,21 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FileExport - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FileExport.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FileExport + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileExport.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FileExport is not found in the empty JSON string", FileExport.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } } @@ -208,7 +197,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileExport value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -220,12 +209,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -234,9 +218,8 @@ else if (entry.getValue() instanceof Character) @Override public FileExport read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FileExport instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,10 +233,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -264,22 +245,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileExport given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileExport - * @throws IOException if the JSON string is invalid with respect to FileExport - */ + /** + * Create an instance of FileExport given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileExport + * @throws IOException if the JSON string is invalid with respect to FileExport + */ public static FileExport fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileExport.class); } - /** - * Convert an instance of FileExport to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileExport to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java index 2aee599..e541456 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,29 +41,34 @@ /** * Output uri of the exported file */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Output uri of the exported file") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FileExported { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) private String outputUri; - public FileExported() { + public FileExported() { } public FileExported outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the exported file * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the exported file") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } @@ -86,10 +83,6 @@ public void setOutputUri(String outputUri) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileExported instance itself */ public FileExported putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -101,8 +94,6 @@ public FileExported putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,9 +101,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -174,20 +162,21 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FileExported - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FileExported.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FileExported + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileExported.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FileExported is not found in the empty JSON string", FileExported.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } } @@ -208,7 +197,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileExported value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -220,12 +209,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -234,9 +218,8 @@ else if (entry.getValue() instanceof Character) @Override public FileExported read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FileExported instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,10 +233,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -264,22 +245,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileExported given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileExported - * @throws IOException if the JSON string is invalid with respect to FileExported - */ + /** + * Create an instance of FileExported given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileExported + * @throws IOException if the JSON string is invalid with respect to FileExported + */ public static FileExported fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileExported.class); } - /** - * Convert an instance of FileExported to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileExported to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java index 3146600..820e407 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -79,10 +78,5 @@ public FilePropertyName read(final JsonReader jsonReader) throws IOException { return FilePropertyName.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - FilePropertyName.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java index 48619e3..dcc27e4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -75,10 +74,5 @@ public FileType read(final JsonReader jsonReader) throws IOException { return FileType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - FileType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java index 003f786..7760eae 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Uploaded file name and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Uploaded file name and information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FileUploaded { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -59,65 +52,104 @@ public class FileUploaded { @SerializedName(SERIALIZED_NAME_FILE_NAME) private String fileName; + public static final String SERIALIZED_NAME_ASSET_ID = "asset_id"; + @SerializedName(SERIALIZED_NAME_ASSET_ID) + private String assetId; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; - public FileUploaded() { + public FileUploaded() { } public FileUploaded outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB File") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public FileUploaded fileName(String fileName) { + this.fileName = fileName; return this; } - /** + /** * name of the file uploaded * @return fileName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of the file uploaded") + public String getFileName() { return fileName; } + public void setFileName(String fileName) { this.fileName = fileName; } + public FileUploaded assetId(String assetId) { + + this.assetId = assetId; + return this; + } + + /** + * The asset id of the created Group + * @return assetId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The asset id of the created Group") + + public String getAssetId() { + return assetId; + } + + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public FileUploaded id(String id) { + this.id = id; return this; } - /** + /** * unique ID of the uploaded file * @return id - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the uploaded file") + public String getId() { return id; } + public void setId(String id) { this.id = id; } @@ -132,10 +164,6 @@ public void setId(String id) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileUploaded instance itself */ public FileUploaded putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +175,6 @@ public FileUploaded putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -179,13 +202,14 @@ public boolean equals(Object o) { FileUploaded fileUploaded = (FileUploaded) o; return Objects.equals(this.outputUri, fileUploaded.outputUri) && Objects.equals(this.fileName, fileUploaded.fileName) && + Objects.equals(this.assetId, fileUploaded.assetId) && Objects.equals(this.id, fileUploaded.id)&& Objects.equals(this.additionalProperties, fileUploaded.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, fileName, id, additionalProperties); + return Objects.hash(outputUri, fileName, assetId, id, additionalProperties); } @Override @@ -194,6 +218,7 @@ public String toString() { sb.append("class FileUploaded {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,40 +245,46 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("output_uri"); openapiFields.add("file_name"); + openapiFields.add("asset_id"); openapiFields.add("id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("asset_id"); openapiRequiredFields.add("id"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FileUploaded - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FileUploaded.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FileUploaded + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileUploaded.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FileUploaded is not found in the empty JSON string", FileUploaded.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FileUploaded.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonNull()) && !jsonObj.get("file_name").isJsonPrimitive()) { + if (jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `file_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_name").toString())); } - if (!jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("asset_id") != null && !jsonObj.get("asset_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("asset_id").toString())); + } + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } } @@ -274,7 +305,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileUploaded value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -286,12 +317,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -300,9 +326,8 @@ else if (entry.getValue() instanceof Character) @Override public FileUploaded read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FileUploaded instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -316,10 +341,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -330,22 +353,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileUploaded given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileUploaded - * @throws IOException if the JSON string is invalid with respect to FileUploaded - */ + /** + * Create an instance of FileUploaded given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileUploaded + * @throws IOException if the JSON string is invalid with respect to FileUploaded + */ public static FileUploaded fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileUploaded.class); } - /** - * Convert an instance of FileUploaded to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileUploaded to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java index 6a9f2c0..8a774e5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java @@ -14,44 +14,34 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.FilterData; -import io.tiledb.cloud.rest_api.model.FilterType; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Filter") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Filter { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -61,42 +51,50 @@ public class Filter { @SerializedName(SERIALIZED_NAME_DATA) private FilterData data; - public Filter() { + public Filter() { } public Filter type(FilterType type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public FilterType getType() { return type; } + public void setType(FilterType type) { this.type = type; } public Filter data(FilterData data) { + this.data = data; return this; } - /** + /** * Get data * @return data - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public FilterData getData() { return data; } + public void setData(FilterData data) { this.data = data; } @@ -111,10 +109,6 @@ public void setData(FilterData data) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Filter instance itself */ public Filter putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -126,8 +120,6 @@ public Filter putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -135,9 +127,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -203,31 +192,30 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Filter - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Filter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Filter + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Filter.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Filter is not found in the empty JSON string", Filter.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Filter.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - FilterType.validateJsonElement(jsonObj.get("type")); // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - FilterData.validateJsonElement(jsonObj.get("data")); + if (jsonObj.getAsJsonObject("data") != null) { + FilterData.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -247,7 +235,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Filter value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -259,12 +247,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -273,9 +256,8 @@ else if (entry.getValue() instanceof Character) @Override public Filter read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Filter instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -289,10 +271,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -303,22 +283,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Filter given an JSON string - * - * @param jsonString JSON string - * @return An instance of Filter - * @throws IOException if the JSON string is invalid with respect to Filter - */ + /** + * Create an instance of Filter given an JSON string + * + * @param jsonString JSON string + * @return An instance of Filter + * @throws IOException if the JSON string is invalid with respect to Filter + */ public static Filter fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Filter.class); } - /** - * Convert an instance of Filter to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Filter to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java index 9f53545..da0563a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Filter data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Filter data") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FilterData { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -91,194 +84,234 @@ public class FilterData { @SerializedName(SERIALIZED_NAME_FLOAT64) private Integer float64; - public FilterData() { + public FilterData() { } public FilterData int8(Integer int8) { + this.int8 = int8; return this; } - /** + /** * Get int8 * @return int8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt8() { return int8; } + public void setInt8(Integer int8) { this.int8 = int8; } public FilterData uint8(Integer uint8) { + this.uint8 = uint8; return this; } - /** + /** * Get uint8 * @return uint8 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint8() { return uint8; } + public void setUint8(Integer uint8) { this.uint8 = uint8; } public FilterData int16(Integer int16) { + this.int16 = int16; return this; } - /** + /** * Get int16 * @return int16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt16() { return int16; } + public void setInt16(Integer int16) { this.int16 = int16; } public FilterData uint16(Integer uint16) { + this.uint16 = uint16; return this; } - /** + /** * Get uint16 * @return uint16 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint16() { return uint16; } + public void setUint16(Integer uint16) { this.uint16 = uint16; } public FilterData int32(Integer int32) { + this.int32 = int32; return this; } - /** + /** * Get int32 * @return int32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + public void setInt32(Integer int32) { this.int32 = int32; } public FilterData uint32(Integer uint32) { + this.uint32 = uint32; return this; } - /** + /** * Get uint32 * @return uint32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint32() { return uint32; } + public void setUint32(Integer uint32) { this.uint32 = uint32; } public FilterData int64(Long int64) { + this.int64 = int64; return this; } - /** + /** * Get int64 * @return int64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + public void setInt64(Long int64) { this.int64 = int64; } public FilterData uint64(Integer uint64) { + this.uint64 = uint64; return this; } - /** + /** * Get uint64 * @return uint64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getUint64() { return uint64; } + public void setUint64(Integer uint64) { this.uint64 = uint64; } public FilterData float32(Integer float32) { + this.float32 = float32; return this; } - /** + /** * Get float32 * @return float32 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getFloat32() { return float32; } + public void setFloat32(Integer float32) { this.float32 = float32; } public FilterData float64(Integer float64) { + this.float64 = float64; return this; } - /** + /** * Get float64 * @return float64 - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getFloat64() { return float64; } + public void setFloat64(Integer float64) { this.float64 = float64; } @@ -293,10 +326,6 @@ public void setFloat64(Integer float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FilterData instance itself */ public FilterData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -308,8 +337,6 @@ public FilterData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -317,9 +344,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -408,19 +432,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FilterData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FilterData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FilterData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FilterData is not found in the empty JSON string", FilterData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -439,7 +464,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -451,12 +476,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -465,9 +485,8 @@ else if (entry.getValue() instanceof Character) @Override public FilterData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FilterData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -481,10 +500,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -495,22 +512,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of FilterData - * @throws IOException if the JSON string is invalid with respect to FilterData - */ + /** + * Create an instance of FilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of FilterData + * @throws IOException if the JSON string is invalid with respect to FilterData + */ public static FilterData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FilterData.class); } - /** - * Convert an instance of FilterData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FilterData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java index f84c0a5..0a9a4ed 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public FilterOption read(final JsonReader jsonReader) throws IOException { return FilterOption.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - FilterOption.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java index af18f4e..d3e268d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Filter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,16 +44,18 @@ /** * One or more filters to apply */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "One or more filters to apply") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FilterPipeline { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) - private List filters = new ArrayList<>(); + private List filters = null; - public FilterPipeline() { + public FilterPipeline() { } public FilterPipeline filters(List filters) { + this.filters = filters; return this; } @@ -74,15 +68,18 @@ public FilterPipeline addFiltersItem(Filter filtersItem) { return this; } - /** + /** * Get filters * @return filters - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getFilters() { return filters; } + public void setFilters(List filters) { this.filters = filters; } @@ -97,10 +94,6 @@ public void setFilters(List filters) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FilterPipeline instance itself */ public FilterPipeline putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +105,6 @@ public FilterPipeline putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +112,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +173,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FilterPipeline - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FilterPipeline.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FilterPipeline + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FilterPipeline.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FilterPipeline is not found in the empty JSON string", FilterPipeline.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { - JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); - if (jsonArrayfilters != null) { - // ensure the json data is an array - if (!jsonObj.get("filters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); - } - - // validate the optional field `filters` (array) - for (int i = 0; i < jsonArrayfilters.size(); i++) { - Filter.validateJsonElement(jsonArrayfilters.get(i)); - }; + JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); + if (jsonArrayfilters != null) { + // ensure the json data is an array + if (!jsonObj.get("filters").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); } + + // validate the optional field `filters` (array) + for (int i = 0; i < jsonArrayfilters.size(); i++) { + Filter.validateJsonObject(jsonArrayfilters.get(i).getAsJsonObject()); + }; } } @@ -230,7 +217,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FilterPipeline value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +238,8 @@ else if (entry.getValue() instanceof Character) @Override public FilterPipeline read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FilterPipeline instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +253,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +265,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FilterPipeline given an JSON string - * - * @param jsonString JSON string - * @return An instance of FilterPipeline - * @throws IOException if the JSON string is invalid with respect to FilterPipeline - */ + /** + * Create an instance of FilterPipeline given an JSON string + * + * @param jsonString JSON string + * @return An instance of FilterPipeline + * @throws IOException if the JSON string is invalid with respect to FilterPipeline + */ public static FilterPipeline fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FilterPipeline.class); } - /** - * Convert an instance of FilterPipeline to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FilterPipeline to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java index bcd5a2a..49bc540 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -29,27 +28,27 @@ @JsonAdapter(FilterType.Adapter.class) public enum FilterType { - NONE("NONE"), + NONE("FILTER_NONE"), - GZIP("GZIP"), + GZIP("FILTER_GZIP"), - ZSTD("ZSTD"), + ZSTD("FILTER_ZSTD"), - LZ4("LZ4"), + LZ4("FILTER_LZ4"), - RLE("RLE"), + RLE("FILTER_RLE"), - BZIP2("BZIP2"), + BZIP2("FILTER_BZIP2"), - DOUBLE_DELTA("DOUBLE_DELTA"), + DOUBLE_DELTA("FILTER_DOUBLE_DELTA"), - BIT_WIDTH_REDUCTION("BIT_WIDTH_REDUCTION"), + BIT_WIDTH_REDUCTION("FILTER_BIT_WIDTH_REDUCTION"), - BITSHUFFLE("BITSHUFFLE"), + BITSHUFFLE("FILTER_BITSHUFFLE"), - BYTESHUFFLE("BYTESHUFFLE"), + BYTESHUFFLE("FILTER_BYTESHUFFLE"), - POSITIVE_DELTA("POSITIVE_DELTA"); + POSITIVE_DELTA("FILTER_POSITIVE_DELTA"); private String value; @@ -87,10 +86,5 @@ public FilterType read(final JsonReader jsonReader) throws IOException { return FilterType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - FilterType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java index 13bdf74..cb4f0bd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java @@ -14,40 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArraySchema; -import io.tiledb.cloud.rest_api.model.SingleFragmentInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; import java.util.List; -import java.util.Map; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,24 +44,26 @@ /** * Fragment info of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Fragment info of an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_ALL = "arraySchemaAll"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_ALL) - private Map arraySchemaAll = new HashMap<>(); + private Map arraySchemaAll = null; public static final String SERIALIZED_NAME_FRAGMENT_INFO = "fragmentInfo"; @SerializedName(SERIALIZED_NAME_FRAGMENT_INFO) - private List fragmentInfo = new ArrayList<>(); + private List fragmentInfo = null; public static final String SERIALIZED_NAME_TO_VACUUM = "toVacuum"; @SerializedName(SERIALIZED_NAME_TO_VACUUM) - private List toVacuum = new ArrayList<>(); + private List toVacuum = null; - public FragmentInfo() { + public FragmentInfo() { } public FragmentInfo arraySchemaAll(Map arraySchemaAll) { + this.arraySchemaAll = arraySchemaAll; return this; } @@ -85,21 +76,25 @@ public FragmentInfo putArraySchemaAllItem(String key, ArraySchema arraySchemaAll return this; } - /** + /** * map of all array schemas * @return arraySchemaAll - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "map of all array schemas") + public Map getArraySchemaAll() { return arraySchemaAll; } + public void setArraySchemaAll(Map arraySchemaAll) { this.arraySchemaAll = arraySchemaAll; } public FragmentInfo fragmentInfo(List fragmentInfo) { + this.fragmentInfo = fragmentInfo; return this; } @@ -112,21 +107,25 @@ public FragmentInfo addFragmentInfoItem(SingleFragmentInfo fragmentInfoItem) { return this; } - /** + /** * information about fragments in the array * @return fragmentInfo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "information about fragments in the array") + public List getFragmentInfo() { return fragmentInfo; } + public void setFragmentInfo(List fragmentInfo) { this.fragmentInfo = fragmentInfo; } public FragmentInfo toVacuum(List toVacuum) { + this.toVacuum = toVacuum; return this; } @@ -139,15 +138,18 @@ public FragmentInfo addToVacuumItem(String toVacuumItem) { return this; } - /** + /** * the URIs of the fragments to vacuum * @return toVacuum - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the URIs of the fragments to vacuum") + public List getToVacuum() { return toVacuum; } + public void setToVacuum(List toVacuum) { this.toVacuum = toVacuum; } @@ -162,10 +164,6 @@ public void setToVacuum(List toVacuum) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FragmentInfo instance itself */ public FragmentInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -177,8 +175,6 @@ public FragmentInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -186,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -256,35 +249,34 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FragmentInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FragmentInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FragmentInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FragmentInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfo is not found in the empty JSON string", FragmentInfo.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("fragmentInfo") != null && !jsonObj.get("fragmentInfo").isJsonNull()) { - JsonArray jsonArrayfragmentInfo = jsonObj.getAsJsonArray("fragmentInfo"); - if (jsonArrayfragmentInfo != null) { - // ensure the json data is an array - if (!jsonObj.get("fragmentInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentInfo` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentInfo").toString())); - } - - // validate the optional field `fragmentInfo` (array) - for (int i = 0; i < jsonArrayfragmentInfo.size(); i++) { - SingleFragmentInfo.validateJsonElement(jsonArrayfragmentInfo.get(i)); - }; + JsonArray jsonArrayfragmentInfo = jsonObj.getAsJsonArray("fragmentInfo"); + if (jsonArrayfragmentInfo != null) { + // ensure the json data is an array + if (!jsonObj.get("fragmentInfo").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `fragmentInfo` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentInfo").toString())); } + + // validate the optional field `fragmentInfo` (array) + for (int i = 0; i < jsonArrayfragmentInfo.size(); i++) { + SingleFragmentInfo.validateJsonObject(jsonArrayfragmentInfo.get(i).getAsJsonObject()); + }; } - // ensure the optional json data is an array if present - if (jsonObj.get("toVacuum") != null && !jsonObj.get("toVacuum").isJsonNull() && !jsonObj.get("toVacuum").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("toVacuum") != null && !jsonObj.get("toVacuum").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `toVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("toVacuum").toString())); } } @@ -305,7 +297,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FragmentInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -317,12 +309,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -331,9 +318,8 @@ else if (entry.getValue() instanceof Character) @Override public FragmentInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -347,10 +333,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -361,22 +345,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FragmentInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentInfo - * @throws IOException if the JSON string is invalid with respect to FragmentInfo - */ + /** + * Create an instance of FragmentInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of FragmentInfo + * @throws IOException if the JSON string is invalid with respect to FragmentInfo + */ public static FragmentInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FragmentInfo.class); } - /** - * Convert an instance of FragmentInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FragmentInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java index c637bdf..9c89829 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,29 +41,34 @@ /** * Fragment info request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Fragment info request") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FragmentInfoRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) private TileDBConfig config; - public FragmentInfoRequest() { + public FragmentInfoRequest() { } public FragmentInfoRequest config(TileDBConfig config) { + this.config = config; return this; } - /** + /** * Get config * @return config - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TileDBConfig getConfig() { return config; } + public void setConfig(TileDBConfig config) { this.config = config; } @@ -87,10 +83,6 @@ public void setConfig(TileDBConfig config) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FragmentInfoRequest instance itself */ public FragmentInfoRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -102,8 +94,6 @@ public FragmentInfoRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -111,9 +101,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -175,22 +162,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FragmentInfoRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FragmentInfoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FragmentInfoRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FragmentInfoRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfoRequest is not found in the empty JSON string", FragmentInfoRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); + if (jsonObj.getAsJsonObject("config") != null) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); } } @@ -210,7 +198,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FragmentInfoRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -222,12 +210,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -236,9 +219,8 @@ else if (entry.getValue() instanceof Character) @Override public FragmentInfoRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FragmentInfoRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -252,10 +234,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -266,22 +246,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FragmentInfoRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentInfoRequest - * @throws IOException if the JSON string is invalid with respect to FragmentInfoRequest - */ + /** + * Create an instance of FragmentInfoRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of FragmentInfoRequest + * @throws IOException if the JSON string is invalid with respect to FragmentInfoRequest + */ public static FragmentInfoRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FragmentInfoRequest.class); } - /** - * Convert an instance of FragmentInfoRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FragmentInfoRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java index b96d249..237b163 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,19 +43,20 @@ /** * Fragment Metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Fragment Metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class FragmentMetadata { public static final String SERIALIZED_NAME_FILE_SIZES = "fileSizes"; @SerializedName(SERIALIZED_NAME_FILE_SIZES) - private List fileSizes = new ArrayList<>(); + private List fileSizes = null; public static final String SERIALIZED_NAME_FILE_VAR_SIZES = "fileVarSizes"; @SerializedName(SERIALIZED_NAME_FILE_VAR_SIZES) - private List fileVarSizes = new ArrayList<>(); + private List fileVarSizes = null; public static final String SERIALIZED_NAME_FILE_VALIDITY_SIZES = "fileValiditySizes"; @SerializedName(SERIALIZED_NAME_FILE_VALIDITY_SIZES) - private List fileValiditySizes = new ArrayList<>(); + private List fileValiditySizes = null; public static final String SERIALIZED_NAME_FRAGMENT_URI = "fragmentUri"; @SerializedName(SERIALIZED_NAME_FRAGMENT_URI) @@ -87,59 +80,59 @@ public class FragmentMetadata { public static final String SERIALIZED_NAME_TILE_OFFSETS = "tileOffsets"; @SerializedName(SERIALIZED_NAME_TILE_OFFSETS) - private List> tileOffsets = new ArrayList<>(); + private List> tileOffsets = null; public static final String SERIALIZED_NAME_TILE_VAR_OFFSETS = "tileVarOffsets"; @SerializedName(SERIALIZED_NAME_TILE_VAR_OFFSETS) - private List> tileVarOffsets = new ArrayList<>(); + private List> tileVarOffsets = null; public static final String SERIALIZED_NAME_TILE_VAR_SIZES = "tileVarSizes"; @SerializedName(SERIALIZED_NAME_TILE_VAR_SIZES) - private List> tileVarSizes = new ArrayList<>(); + private List> tileVarSizes = null; public static final String SERIALIZED_NAME_TILE_VALIDITY_OFFSETS = "tileValidityOffsets"; @SerializedName(SERIALIZED_NAME_TILE_VALIDITY_OFFSETS) - private List> tileValidityOffsets = new ArrayList<>(); + private List> tileValidityOffsets = null; public static final String SERIALIZED_NAME_TILE_MIN_BUFFER = "tileMinBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MIN_BUFFER) - private List> tileMinBuffer = new ArrayList<>(); + private List> tileMinBuffer = null; public static final String SERIALIZED_NAME_TILE_MIN_VAR_BUFFER = "tileMinVarBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MIN_VAR_BUFFER) - private List> tileMinVarBuffer = new ArrayList<>(); + private List> tileMinVarBuffer = null; public static final String SERIALIZED_NAME_TILE_MAX_BUFFER = "tileMaxBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MAX_BUFFER) - private List> tileMaxBuffer = new ArrayList<>(); + private List> tileMaxBuffer = null; public static final String SERIALIZED_NAME_TILE_MAX_VAR_BUFFER = "tileMaxVarBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MAX_VAR_BUFFER) - private List> tileMaxVarBuffer = new ArrayList<>(); + private List> tileMaxVarBuffer = null; public static final String SERIALIZED_NAME_TILE_SUMS = "tileSums"; @SerializedName(SERIALIZED_NAME_TILE_SUMS) - private List> tileSums = new ArrayList<>(); + private List> tileSums = null; public static final String SERIALIZED_NAME_TILE_NULL_COUNTS = "tileNullCounts"; @SerializedName(SERIALIZED_NAME_TILE_NULL_COUNTS) - private List> tileNullCounts = new ArrayList<>(); + private List> tileNullCounts = null; public static final String SERIALIZED_NAME_FRAGMENT_MINS = "fragmentMins"; @SerializedName(SERIALIZED_NAME_FRAGMENT_MINS) - private List> fragmentMins = new ArrayList<>(); + private List> fragmentMins = null; public static final String SERIALIZED_NAME_FRAGMENT_MAXS = "fragmentMaxs"; @SerializedName(SERIALIZED_NAME_FRAGMENT_MAXS) - private List> fragmentMaxs = new ArrayList<>(); + private List> fragmentMaxs = null; public static final String SERIALIZED_NAME_FRAGMENT_SUMS = "fragmentSums"; @SerializedName(SERIALIZED_NAME_FRAGMENT_SUMS) - private List fragmentSums = new ArrayList<>(); + private List fragmentSums = null; public static final String SERIALIZED_NAME_FRAGMENT_NULL_COUNTS = "fragmentNullCounts"; @SerializedName(SERIALIZED_NAME_FRAGMENT_NULL_COUNTS) - private List fragmentNullCounts = new ArrayList<>(); + private List fragmentNullCounts = null; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @@ -147,16 +140,17 @@ public class FragmentMetadata { public static final String SERIALIZED_NAME_TIMESTAMP_RANGE = "timestampRange"; @SerializedName(SERIALIZED_NAME_TIMESTAMP_RANGE) - private List timestampRange = new ArrayList<>(); + private List timestampRange = null; public static final String SERIALIZED_NAME_LAST_TILE_CELL_NUM = "lastTileCellNum"; @SerializedName(SERIALIZED_NAME_LAST_TILE_CELL_NUM) private Integer lastTileCellNum; - public FragmentMetadata() { + public FragmentMetadata() { } public FragmentMetadata fileSizes(List fileSizes) { + this.fileSizes = fileSizes; return this; } @@ -169,21 +163,25 @@ public FragmentMetadata addFileSizesItem(Integer fileSizesItem) { return this; } - /** + /** * fixed sizes * @return fileSizes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "fixed sizes") + public List getFileSizes() { return fileSizes; } + public void setFileSizes(List fileSizes) { this.fileSizes = fileSizes; } public FragmentMetadata fileVarSizes(List fileVarSizes) { + this.fileVarSizes = fileVarSizes; return this; } @@ -196,21 +194,25 @@ public FragmentMetadata addFileVarSizesItem(Integer fileVarSizesItem) { return this; } - /** + /** * var length sizes * @return fileVarSizes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "var length sizes") + public List getFileVarSizes() { return fileVarSizes; } + public void setFileVarSizes(List fileVarSizes) { this.fileVarSizes = fileVarSizes; } public FragmentMetadata fileValiditySizes(List fileValiditySizes) { + this.fileValiditySizes = fileValiditySizes; return this; } @@ -223,116 +225,140 @@ public FragmentMetadata addFileValiditySizesItem(Integer fileValiditySizesItem) return this; } - /** + /** * validity sizes * @return fileValiditySizes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "validity sizes") + public List getFileValiditySizes() { return fileValiditySizes; } + public void setFileValiditySizes(List fileValiditySizes) { this.fileValiditySizes = fileValiditySizes; } public FragmentMetadata fragmentUri(String fragmentUri) { + this.fragmentUri = fragmentUri; return this; } - /** + /** * Get fragmentUri * @return fragmentUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getFragmentUri() { return fragmentUri; } + public void setFragmentUri(String fragmentUri) { this.fragmentUri = fragmentUri; } public FragmentMetadata hasTimestamps(Boolean hasTimestamps) { + this.hasTimestamps = hasTimestamps; return this; } - /** + /** * Get hasTimestamps * @return hasTimestamps - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getHasTimestamps() { return hasTimestamps; } + public void setHasTimestamps(Boolean hasTimestamps) { this.hasTimestamps = hasTimestamps; } public FragmentMetadata hasDeleteMeta(Boolean hasDeleteMeta) { + this.hasDeleteMeta = hasDeleteMeta; return this; } - /** + /** * Get hasDeleteMeta * @return hasDeleteMeta - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getHasDeleteMeta() { return hasDeleteMeta; } + public void setHasDeleteMeta(Boolean hasDeleteMeta) { this.hasDeleteMeta = hasDeleteMeta; } public FragmentMetadata sparseTileNum(Integer sparseTileNum) { + this.sparseTileNum = sparseTileNum; return this; } - /** + /** * Get sparseTileNum * @return sparseTileNum - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getSparseTileNum() { return sparseTileNum; } + public void setSparseTileNum(Integer sparseTileNum) { this.sparseTileNum = sparseTileNum; } public FragmentMetadata tileIndexBase(Integer tileIndexBase) { + this.tileIndexBase = tileIndexBase; return this; } - /** + /** * Get tileIndexBase * @return tileIndexBase - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getTileIndexBase() { return tileIndexBase; } + public void setTileIndexBase(Integer tileIndexBase) { this.tileIndexBase = tileIndexBase; } public FragmentMetadata tileOffsets(List> tileOffsets) { + this.tileOffsets = tileOffsets; return this; } @@ -345,21 +371,25 @@ public FragmentMetadata addTileOffsetsItem(List tileOffsetsItem) { return this; } - /** + /** * Get tileOffsets * @return tileOffsets - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileOffsets() { return tileOffsets; } + public void setTileOffsets(List> tileOffsets) { this.tileOffsets = tileOffsets; } public FragmentMetadata tileVarOffsets(List> tileVarOffsets) { + this.tileVarOffsets = tileVarOffsets; return this; } @@ -372,21 +402,25 @@ public FragmentMetadata addTileVarOffsetsItem(List tileVarOffsetsItem) return this; } - /** + /** * Get tileVarOffsets * @return tileVarOffsets - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileVarOffsets() { return tileVarOffsets; } + public void setTileVarOffsets(List> tileVarOffsets) { this.tileVarOffsets = tileVarOffsets; } public FragmentMetadata tileVarSizes(List> tileVarSizes) { + this.tileVarSizes = tileVarSizes; return this; } @@ -399,21 +433,25 @@ public FragmentMetadata addTileVarSizesItem(List tileVarSizesItem) { return this; } - /** + /** * Get tileVarSizes * @return tileVarSizes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileVarSizes() { return tileVarSizes; } + public void setTileVarSizes(List> tileVarSizes) { this.tileVarSizes = tileVarSizes; } public FragmentMetadata tileValidityOffsets(List> tileValidityOffsets) { + this.tileValidityOffsets = tileValidityOffsets; return this; } @@ -426,21 +464,25 @@ public FragmentMetadata addTileValidityOffsetsItem(List tileValidityOff return this; } - /** + /** * Get tileValidityOffsets * @return tileValidityOffsets - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileValidityOffsets() { return tileValidityOffsets; } + public void setTileValidityOffsets(List> tileValidityOffsets) { this.tileValidityOffsets = tileValidityOffsets; } public FragmentMetadata tileMinBuffer(List> tileMinBuffer) { + this.tileMinBuffer = tileMinBuffer; return this; } @@ -453,21 +495,25 @@ public FragmentMetadata addTileMinBufferItem(List tileMinBufferItem) { return this; } - /** + /** * Get tileMinBuffer * @return tileMinBuffer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileMinBuffer() { return tileMinBuffer; } + public void setTileMinBuffer(List> tileMinBuffer) { this.tileMinBuffer = tileMinBuffer; } public FragmentMetadata tileMinVarBuffer(List> tileMinVarBuffer) { + this.tileMinVarBuffer = tileMinVarBuffer; return this; } @@ -480,21 +526,25 @@ public FragmentMetadata addTileMinVarBufferItem(List tileMinVarBufferIt return this; } - /** + /** * Get tileMinVarBuffer * @return tileMinVarBuffer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileMinVarBuffer() { return tileMinVarBuffer; } + public void setTileMinVarBuffer(List> tileMinVarBuffer) { this.tileMinVarBuffer = tileMinVarBuffer; } public FragmentMetadata tileMaxBuffer(List> tileMaxBuffer) { + this.tileMaxBuffer = tileMaxBuffer; return this; } @@ -507,21 +557,25 @@ public FragmentMetadata addTileMaxBufferItem(List tileMaxBufferItem) { return this; } - /** + /** * Get tileMaxBuffer * @return tileMaxBuffer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileMaxBuffer() { return tileMaxBuffer; } + public void setTileMaxBuffer(List> tileMaxBuffer) { this.tileMaxBuffer = tileMaxBuffer; } public FragmentMetadata tileMaxVarBuffer(List> tileMaxVarBuffer) { + this.tileMaxVarBuffer = tileMaxVarBuffer; return this; } @@ -534,21 +588,25 @@ public FragmentMetadata addTileMaxVarBufferItem(List tileMaxVarBufferIt return this; } - /** + /** * Get tileMaxVarBuffer * @return tileMaxVarBuffer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileMaxVarBuffer() { return tileMaxVarBuffer; } + public void setTileMaxVarBuffer(List> tileMaxVarBuffer) { this.tileMaxVarBuffer = tileMaxVarBuffer; } public FragmentMetadata tileSums(List> tileSums) { + this.tileSums = tileSums; return this; } @@ -561,21 +619,25 @@ public FragmentMetadata addTileSumsItem(List tileSumsItem) { return this; } - /** + /** * Get tileSums * @return tileSums - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileSums() { return tileSums; } + public void setTileSums(List> tileSums) { this.tileSums = tileSums; } public FragmentMetadata tileNullCounts(List> tileNullCounts) { + this.tileNullCounts = tileNullCounts; return this; } @@ -588,21 +650,25 @@ public FragmentMetadata addTileNullCountsItem(List tileNullCountsItem) return this; } - /** + /** * Get tileNullCounts * @return tileNullCounts - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getTileNullCounts() { return tileNullCounts; } + public void setTileNullCounts(List> tileNullCounts) { this.tileNullCounts = tileNullCounts; } public FragmentMetadata fragmentMins(List> fragmentMins) { + this.fragmentMins = fragmentMins; return this; } @@ -615,21 +681,25 @@ public FragmentMetadata addFragmentMinsItem(List fragmentMinsItem) { return this; } - /** + /** * Get fragmentMins * @return fragmentMins - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getFragmentMins() { return fragmentMins; } + public void setFragmentMins(List> fragmentMins) { this.fragmentMins = fragmentMins; } public FragmentMetadata fragmentMaxs(List> fragmentMaxs) { + this.fragmentMaxs = fragmentMaxs; return this; } @@ -642,21 +712,25 @@ public FragmentMetadata addFragmentMaxsItem(List fragmentMaxsItem) { return this; } - /** + /** * Get fragmentMaxs * @return fragmentMaxs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List> getFragmentMaxs() { return fragmentMaxs; } + public void setFragmentMaxs(List> fragmentMaxs) { this.fragmentMaxs = fragmentMaxs; } public FragmentMetadata fragmentSums(List fragmentSums) { + this.fragmentSums = fragmentSums; return this; } @@ -669,21 +743,25 @@ public FragmentMetadata addFragmentSumsItem(Integer fragmentSumsItem) { return this; } - /** + /** * Get fragmentSums * @return fragmentSums - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getFragmentSums() { return fragmentSums; } + public void setFragmentSums(List fragmentSums) { this.fragmentSums = fragmentSums; } public FragmentMetadata fragmentNullCounts(List fragmentNullCounts) { + this.fragmentNullCounts = fragmentNullCounts; return this; } @@ -696,40 +774,48 @@ public FragmentMetadata addFragmentNullCountsItem(Integer fragmentNullCountsItem return this; } - /** + /** * Get fragmentNullCounts * @return fragmentNullCounts - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getFragmentNullCounts() { return fragmentNullCounts; } + public void setFragmentNullCounts(List fragmentNullCounts) { this.fragmentNullCounts = fragmentNullCounts; } public FragmentMetadata version(Integer version) { + this.version = version; return this; } - /** + /** * Get version * @return version - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getVersion() { return version; } + public void setVersion(Integer version) { this.version = version; } public FragmentMetadata timestampRange(List timestampRange) { + this.timestampRange = timestampRange; return this; } @@ -742,34 +828,41 @@ public FragmentMetadata addTimestampRangeItem(Integer timestampRangeItem) { return this; } - /** + /** * Get timestampRange * @return timestampRange - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getTimestampRange() { return timestampRange; } + public void setTimestampRange(List timestampRange) { this.timestampRange = timestampRange; } public FragmentMetadata lastTileCellNum(Integer lastTileCellNum) { + this.lastTileCellNum = lastTileCellNum; return this; } - /** + /** * Get lastTileCellNum * @return lastTileCellNum - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Integer getLastTileCellNum() { return lastTileCellNum; } + public void setLastTileCellNum(Integer lastTileCellNum) { this.lastTileCellNum = lastTileCellNum; } @@ -784,10 +877,6 @@ public void setLastTileCellNum(Integer lastTileCellNum) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FragmentMetadata instance itself */ public FragmentMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -799,8 +888,6 @@ public FragmentMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -808,9 +895,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -944,92 +1028,93 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FragmentMetadata - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FragmentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FragmentMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FragmentMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentMetadata is not found in the empty JSON string", FragmentMetadata.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("fileSizes") != null && !jsonObj.get("fileSizes").isJsonNull() && !jsonObj.get("fileSizes").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fileSizes") != null && !jsonObj.get("fileSizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fileSizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileSizes").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("fileVarSizes") != null && !jsonObj.get("fileVarSizes").isJsonNull() && !jsonObj.get("fileVarSizes").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fileVarSizes") != null && !jsonObj.get("fileVarSizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileVarSizes").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("fileValiditySizes") != null && !jsonObj.get("fileValiditySizes").isJsonNull() && !jsonObj.get("fileValiditySizes").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fileValiditySizes") != null && !jsonObj.get("fileValiditySizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fileValiditySizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileValiditySizes").toString())); } - if ((jsonObj.get("fragmentUri") != null && !jsonObj.get("fragmentUri").isJsonNull()) && !jsonObj.get("fragmentUri").isJsonPrimitive()) { + if (jsonObj.get("fragmentUri") != null && !jsonObj.get("fragmentUri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fragmentUri").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileOffsets") != null && !jsonObj.get("tileOffsets").isJsonNull() && !jsonObj.get("tileOffsets").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileOffsets") != null && !jsonObj.get("tileOffsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileOffsets").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileVarOffsets") != null && !jsonObj.get("tileVarOffsets").isJsonNull() && !jsonObj.get("tileVarOffsets").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileVarOffsets") != null && !jsonObj.get("tileVarOffsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileVarOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarOffsets").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileVarSizes") != null && !jsonObj.get("tileVarSizes").isJsonNull() && !jsonObj.get("tileVarSizes").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileVarSizes") != null && !jsonObj.get("tileVarSizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarSizes").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileValidityOffsets") != null && !jsonObj.get("tileValidityOffsets").isJsonNull() && !jsonObj.get("tileValidityOffsets").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileValidityOffsets") != null && !jsonObj.get("tileValidityOffsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileValidityOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileValidityOffsets").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileMinBuffer") != null && !jsonObj.get("tileMinBuffer").isJsonNull() && !jsonObj.get("tileMinBuffer").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileMinBuffer") != null && !jsonObj.get("tileMinBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMinBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinBuffer").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileMinVarBuffer") != null && !jsonObj.get("tileMinVarBuffer").isJsonNull() && !jsonObj.get("tileMinVarBuffer").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileMinVarBuffer") != null && !jsonObj.get("tileMinVarBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMinVarBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinVarBuffer").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileMaxBuffer") != null && !jsonObj.get("tileMaxBuffer").isJsonNull() && !jsonObj.get("tileMaxBuffer").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileMaxBuffer") != null && !jsonObj.get("tileMaxBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMaxBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxBuffer").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileMaxVarBuffer") != null && !jsonObj.get("tileMaxVarBuffer").isJsonNull() && !jsonObj.get("tileMaxVarBuffer").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileMaxVarBuffer") != null && !jsonObj.get("tileMaxVarBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMaxVarBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxVarBuffer").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileSums") != null && !jsonObj.get("tileSums").isJsonNull() && !jsonObj.get("tileSums").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileSums") != null && !jsonObj.get("tileSums").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileSums` to be an array in the JSON string but got `%s`", jsonObj.get("tileSums").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tileNullCounts") != null && !jsonObj.get("tileNullCounts").isJsonNull() && !jsonObj.get("tileNullCounts").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tileNullCounts") != null && !jsonObj.get("tileNullCounts").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileNullCounts` to be an array in the JSON string but got `%s`", jsonObj.get("tileNullCounts").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("fragmentMins") != null && !jsonObj.get("fragmentMins").isJsonNull() && !jsonObj.get("fragmentMins").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fragmentMins") != null && !jsonObj.get("fragmentMins").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentMins` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMins").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("fragmentMaxs") != null && !jsonObj.get("fragmentMaxs").isJsonNull() && !jsonObj.get("fragmentMaxs").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fragmentMaxs") != null && !jsonObj.get("fragmentMaxs").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentMaxs` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMaxs").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("fragmentSums") != null && !jsonObj.get("fragmentSums").isJsonNull() && !jsonObj.get("fragmentSums").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fragmentSums") != null && !jsonObj.get("fragmentSums").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentSums` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentSums").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("fragmentNullCounts") != null && !jsonObj.get("fragmentNullCounts").isJsonNull() && !jsonObj.get("fragmentNullCounts").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fragmentNullCounts") != null && !jsonObj.get("fragmentNullCounts").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentNullCounts` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentNullCounts").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("timestampRange") != null && !jsonObj.get("timestampRange").isJsonNull() && !jsonObj.get("timestampRange").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("timestampRange") != null && !jsonObj.get("timestampRange").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `timestampRange` to be an array in the JSON string but got `%s`", jsonObj.get("timestampRange").toString())); } } @@ -1050,7 +1135,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FragmentMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -1062,12 +1147,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -1076,9 +1156,8 @@ else if (entry.getValue() instanceof Character) @Override public FragmentMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance FragmentMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -1092,10 +1171,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -1106,22 +1183,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FragmentMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentMetadata - * @throws IOException if the JSON string is invalid with respect to FragmentMetadata - */ + /** + * Create an instance of FragmentMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of FragmentMetadata + * @throws IOException if the JSON string is invalid with respect to FragmentMetadata + */ public static FragmentMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FragmentMetadata.class); } - /** - * Convert an instance of FragmentMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FragmentMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java index b5734de..1d53e9e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +43,8 @@ /** * User-defined function */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "User-defined function") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GenericUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -93,7 +84,7 @@ public class GenericUDF { public static final String SERIALIZED_NAME_STORED_PARAM_UUIDS = "stored_param_uuids"; @SerializedName(SERIALIZED_NAME_STORED_PARAM_UUIDS) - private List storedParamUuids = new ArrayList<>(); + private List storedParamUuids = null; public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -123,181 +114,218 @@ public class GenericUDF { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public GenericUDF() { + public GenericUDF() { } public GenericUDF udfInfoName(String udfInfoName) { + this.udfInfoName = udfInfoName; return this; } - /** + /** * name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec * @return udfInfoName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "TileDB-Inc/csv_ingestor", value = "name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec") + public String getUdfInfoName() { return udfInfoName; } + public void setUdfInfoName(String udfInfoName) { this.udfInfoName = udfInfoName; } public GenericUDF language(UDFLanguage language) { + this.language = language; return this; } - /** + /** * Get language * @return language - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFLanguage getLanguage() { return language; } + public void setLanguage(UDFLanguage language) { this.language = language; } public GenericUDF version(String version) { + this.version = version; return this; } - /** + /** * Type-specific version * @return version - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Type-specific version") + public String getVersion() { return version; } + public void setVersion(String version) { this.version = version; } public GenericUDF imageName(String imageName) { + this.imageName = imageName; return this; } - /** + /** * Docker image name to use for UDF * @return imageName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Docker image name to use for UDF") + public String getImageName() { return imageName; } + public void setImageName(String imageName) { this.imageName = imageName; } public GenericUDF accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * The name of the access credentials to use. if unset, no credentials will be configured in the environment. * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the access credentials to use. if unset, no credentials will be configured in the environment.") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GenericUDF resourceClass(String resourceClass) { + this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "standard", value = "The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. ") + public String getResourceClass() { return resourceClass; } + public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public GenericUDF exec(String exec) { + this.exec = exec; return this; } - /** + /** * Type-specific executable text * @return exec - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Type-specific executable text") + public String getExec() { return exec; } + public void setExec(String exec) { this.exec = exec; } public GenericUDF execRaw(String execRaw) { + this.execRaw = execRaw; return this; } - /** + /** * optional raw text to store of serialized function, used for showing in UI * @return execRaw - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional raw text to store of serialized function, used for showing in UI") + public String getExecRaw() { return execRaw; } + public void setExecRaw(String execRaw) { this.execRaw = execRaw; } public GenericUDF argument(String argument) { + this.argument = argument; return this; } - /** + /** * Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format * @return argument - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format") + public String getArgument() { return argument; } + public void setArgument(String argument) { this.argument = argument; } public GenericUDF storedParamUuids(List storedParamUuids) { + this.storedParamUuids = storedParamUuids; return this; } @@ -310,148 +338,179 @@ public GenericUDF addStoredParamUuidsItem(String storedParamUuidsItem) { return this; } - /** + /** * The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}. * @return storedParamUuids - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}.") + public List getStoredParamUuids() { return storedParamUuids; } + public void setStoredParamUuids(List storedParamUuids) { this.storedParamUuids = storedParamUuids; } public GenericUDF resultFormat(ResultFormat resultFormat) { + this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ResultFormat getResultFormat() { return resultFormat; } + public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public GenericUDF taskName(String taskName) { + this.taskName = taskName; return this; } - /** + /** * name of task, optional * @return taskName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of task, optional") + public String getTaskName() { return taskName; } + public void setTaskName(String taskName) { this.taskName = taskName; } public GenericUDF storeResults(Boolean storeResults) { + this.storeResults = storeResults; return this; } - /** + /** * store results for later retrieval * @return storeResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "store results for later retrieval") + public Boolean getStoreResults() { return storeResults; } + public void setStoreResults(Boolean storeResults) { this.storeResults = storeResults; } public GenericUDF timeout(Integer timeout) { + this.timeout = timeout; return this; } - /** + /** * UDF-type timeout in seconds (default: 900) * @return timeout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "UDF-type timeout in seconds (default: 900)") + public Integer getTimeout() { return timeout; } + public void setTimeout(Integer timeout) { this.timeout = timeout; } public GenericUDF dontDownloadResults(Boolean dontDownloadResults) { + this.dontDownloadResults = dontDownloadResults; return this; } - /** + /** * Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\"). * @return dontDownloadResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\").") + public Boolean getDontDownloadResults() { return dontDownloadResults; } + public void setDontDownloadResults(Boolean dontDownloadResults) { this.dontDownloadResults = dontDownloadResults; } public GenericUDF taskGraphUuid(String taskGraphUuid) { + this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") + public String getTaskGraphUuid() { return taskGraphUuid; } + public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public GenericUDF clientNodeUuid(String clientNodeUuid) { + this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") + public String getClientNodeUuid() { return clientNodeUuid; } + public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } @@ -466,10 +525,6 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GenericUDF instance itself */ public GenericUDF putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -481,8 +536,6 @@ public GenericUDF putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -490,9 +543,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -602,62 +652,55 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GenericUDF - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GenericUDF.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GenericUDF + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GenericUDF.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GenericUDF is not found in the empty JSON string", GenericUDF.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { + if (jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); } - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } - if ((jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonNull()) && !jsonObj.get("image_name").isJsonPrimitive()) { + if (jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `image_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image_name").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - if ((jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonNull()) && !jsonObj.get("resource_class").isJsonPrimitive()) { + if (jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `resource_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_class").toString())); } - if ((jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) && !jsonObj.get("exec").isJsonPrimitive()) { + if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec").toString())); } - if ((jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonNull()) && !jsonObj.get("exec_raw").isJsonPrimitive()) { + if (jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec_raw` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec_raw").toString())); } - if ((jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonNull()) && !jsonObj.get("argument").isJsonPrimitive()) { + if (jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `argument` to be a primitive type in the JSON string but got `%s`", jsonObj.get("argument").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull() && !jsonObj.get("stored_param_uuids").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `stored_param_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("stored_param_uuids").toString())); } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonNull()) && !jsonObj.get("task_name").isJsonPrimitive()) { + if (jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_name").toString())); } - if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); } - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); } } @@ -678,7 +721,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GenericUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -690,12 +733,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -704,9 +742,8 @@ else if (entry.getValue() instanceof Character) @Override public GenericUDF read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GenericUDF instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -720,10 +757,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -734,22 +769,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GenericUDF given an JSON string - * - * @param jsonString JSON string - * @return An instance of GenericUDF - * @throws IOException if the JSON string is invalid with respect to GenericUDF - */ + /** + * Create an instance of GenericUDF given an JSON string + * + * @param jsonString JSON string + * @return An instance of GenericUDF + * @throws IOException if the JSON string is invalid with respect to GenericUDF + */ public static GenericUDF fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GenericUDF.class); } - /** - * Convert an instance of GenericUDF to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GenericUDF to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java index 152ce3e..22ac554 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java @@ -14,34 +14,25 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,29 +40,33 @@ /** * GetTiledbStats200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GetTiledbStats200Response { public static final String SERIALIZED_NAME_STATS = "stats"; @SerializedName(SERIALIZED_NAME_STATS) private String stats; - public GetTiledbStats200Response() { + public GetTiledbStats200Response() { } public GetTiledbStats200Response stats(String stats) { + this.stats = stats; return this; } - /** + /** * string of stats from tiledb * @return stats - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "123", value = "string of stats from tiledb") + public String getStats() { return stats; } + public void setStats(String stats) { this.stats = stats; } @@ -86,10 +81,6 @@ public void setStats(String stats) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GetTiledbStats200Response instance itself */ public GetTiledbStats200Response putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -101,8 +92,6 @@ public GetTiledbStats200Response putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,9 +99,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -174,20 +160,21 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTiledbStats200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetTiledbStats200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GetTiledbStats200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GetTiledbStats200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GetTiledbStats200Response is not found in the empty JSON string", GetTiledbStats200Response.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stats") != null && !jsonObj.get("stats").isJsonNull()) && !jsonObj.get("stats").isJsonPrimitive()) { + if (jsonObj.get("stats") != null && !jsonObj.get("stats").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stats").toString())); } } @@ -208,7 +195,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GetTiledbStats200Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -220,12 +207,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -234,9 +216,8 @@ else if (entry.getValue() instanceof Character) @Override public GetTiledbStats200Response read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GetTiledbStats200Response instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,10 +231,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -264,22 +243,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GetTiledbStats200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTiledbStats200Response - * @throws IOException if the JSON string is invalid with respect to GetTiledbStats200Response - */ + /** + * Create an instance of GetTiledbStats200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTiledbStats200Response + * @throws IOException if the JSON string is invalid with respect to GetTiledbStats200Response + */ public static GetTiledbStats200Response fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetTiledbStats200Response.class); } - /** - * Convert an instance of GetTiledbStats200Response to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GetTiledbStats200Response to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java index d337b90..8454a17 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public GroupActions read(final JsonReader jsonReader) throws IOException { return GroupActions.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - GroupActions.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java deleted file mode 100644 index 2e121ce..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.JSON; - -/** - * Object containing activity of an asset of a group - */ -@ApiModel(description = "Object containing activity of an asset of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") -public class GroupActivity { - public static final String SERIALIZED_NAME_ASSET = "asset"; - @SerializedName(SERIALIZED_NAME_ASSET) - private GroupActivityAsset asset; - - public static final String SERIALIZED_NAME_ACTIVITY_LOG = "activity_log"; - @SerializedName(SERIALIZED_NAME_ACTIVITY_LOG) - private ArrayActivityLog activityLog; - - public GroupActivity() { - } - - public GroupActivity asset(GroupActivityAsset asset) { - - this.asset = asset; - return this; - } - - /** - * Get asset - * @return asset - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GroupActivityAsset getAsset() { - return asset; - } - - - public void setAsset(GroupActivityAsset asset) { - this.asset = asset; - } - - - public GroupActivity activityLog(ArrayActivityLog activityLog) { - - this.activityLog = activityLog; - return this; - } - - /** - * Get activityLog - * @return activityLog - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArrayActivityLog getActivityLog() { - return activityLog; - } - - - public void setActivityLog(ArrayActivityLog activityLog) { - this.activityLog = activityLog; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupActivity putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupActivity groupActivity = (GroupActivity) o; - return Objects.equals(this.asset, groupActivity.asset) && - Objects.equals(this.activityLog, groupActivity.activityLog)&& - Objects.equals(this.additionalProperties, groupActivity.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(asset, activityLog, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupActivity {\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" activityLog: ").append(toIndentedString(activityLog)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("asset"); - openapiFields.add("activity_log"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupActivity - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupActivity.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupActivity is not found in the empty JSON string", GroupActivity.openapiRequiredFields.toString())); - } - } - // validate the optional field `asset` - if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { - GroupActivityAsset.validateJsonObject(jsonObj.getAsJsonObject("asset")); - } - // validate the optional field `activity_log` - if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { - ArrayActivityLog.validateJsonObject(jsonObj.getAsJsonObject("activity_log")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupActivity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupActivity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupActivity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupActivity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupActivity read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupActivity instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupActivity given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupActivity - * @throws IOException if the JSON string is invalid with respect to GroupActivity - */ - public static GroupActivity fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupActivity.class); - } - - /** - * Convert an instance of GroupActivity to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java deleted file mode 100644 index f4302a5..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java +++ /dev/null @@ -1,361 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.JSON; - -/** - * The asset details - */ -@ApiModel(description = "The asset details") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") -public class GroupActivityAsset { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; - @SerializedName(SERIALIZED_NAME_NAMESPACE) - private String namespace; - - public static final String SERIALIZED_NAME_ASSET_TYPE = "asset_type"; - @SerializedName(SERIALIZED_NAME_ASSET_TYPE) - private AssetType assetType; - - public GroupActivityAsset() { - } - - public GroupActivityAsset id(String id) { - - this.id = id; - return this; - } - - /** - * The asset ID - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The asset ID") - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public GroupActivityAsset name(String name) { - - this.name = name; - return this; - } - - /** - * The asset name - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The asset name") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public GroupActivityAsset namespace(String namespace) { - - this.namespace = namespace; - return this; - } - - /** - * The namespace that the asset belongs to - * @return namespace - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace that the asset belongs to") - - public String getNamespace() { - return namespace; - } - - - public void setNamespace(String namespace) { - this.namespace = namespace; - } - - - public GroupActivityAsset assetType(AssetType assetType) { - - this.assetType = assetType; - return this; - } - - /** - * Get assetType - * @return assetType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AssetType getAssetType() { - return assetType; - } - - - public void setAssetType(AssetType assetType) { - this.assetType = assetType; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupActivityAsset putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupActivityAsset groupActivityAsset = (GroupActivityAsset) o; - return Objects.equals(this.id, groupActivityAsset.id) && - Objects.equals(this.name, groupActivityAsset.name) && - Objects.equals(this.namespace, groupActivityAsset.namespace) && - Objects.equals(this.assetType, groupActivityAsset.assetType)&& - Objects.equals(this.additionalProperties, groupActivityAsset.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, namespace, assetType, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupActivityAsset {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("namespace"); - openapiFields.add("asset_type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupActivityAsset - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupActivityAsset.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupActivityAsset is not found in the empty JSON string", GroupActivityAsset.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupActivityAsset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupActivityAsset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupActivityAsset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupActivityAsset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupActivityAsset read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupActivityAsset instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupActivityAsset given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupActivityAsset - * @throws IOException if the JSON string is invalid with respect to GroupActivityAsset - */ - public static GroupActivityAsset fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupActivityAsset.class); - } - - /** - * Convert an instance of GroupActivityAsset to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java deleted file mode 100644 index 8cd3c58..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.JSON; - -/** - * Object containing activity logs of group content along with the pagination metadata - */ -@ApiModel(description = "Object containing activity logs of group content along with the pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") -public class GroupActivityResponse { - public static final String SERIALIZED_NAME_ACTIVITY = "activity"; - @SerializedName(SERIALIZED_NAME_ACTIVITY) - private List activity = null; - - public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; - @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) - private PaginationMetadata paginationMetadata; - - public GroupActivityResponse() { - } - - public GroupActivityResponse activity(List activity) { - - this.activity = activity; - return this; - } - - public GroupActivityResponse addActivityItem(GroupActivity activityItem) { - if (this.activity == null) { - this.activity = new ArrayList<>(); - } - this.activity.add(activityItem); - return this; - } - - /** - * Activity of a group's content - * @return activity - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Activity of a group's content") - - public List getActivity() { - return activity; - } - - - public void setActivity(List activity) { - this.activity = activity; - } - - - public GroupActivityResponse paginationMetadata(PaginationMetadata paginationMetadata) { - - this.paginationMetadata = paginationMetadata; - return this; - } - - /** - * Get paginationMetadata - * @return paginationMetadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public PaginationMetadata getPaginationMetadata() { - return paginationMetadata; - } - - - public void setPaginationMetadata(PaginationMetadata paginationMetadata) { - this.paginationMetadata = paginationMetadata; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupActivityResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupActivityResponse groupActivityResponse = (GroupActivityResponse) o; - return Objects.equals(this.activity, groupActivityResponse.activity) && - Objects.equals(this.paginationMetadata, groupActivityResponse.paginationMetadata)&& - Objects.equals(this.additionalProperties, groupActivityResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(activity, paginationMetadata, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupActivityResponse {\n"); - sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); - sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("activity"); - openapiFields.add("pagination_metadata"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupActivityResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupActivityResponse.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupActivityResponse is not found in the empty JSON string", GroupActivityResponse.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - GroupActivity.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); - }; - } - // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupActivityResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupActivityResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupActivityResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupActivityResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupActivityResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupActivityResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupActivityResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupActivityResponse - * @throws IOException if the JSON string is invalid with respect to GroupActivityResponse - */ - public static GroupActivityResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupActivityResponse.class); - } - - /** - * Convert an instance of GroupActivityResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java index 0d02f03..f244013 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java @@ -14,59 +14,51 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Object including group info and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including group info and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupBrowserData { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) - private List groups = new ArrayList<>(); + private List groups = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public GroupBrowserData() { + public GroupBrowserData() { } public GroupBrowserData groups(List groups) { + this.groups = groups; return this; } @@ -79,34 +71,41 @@ public GroupBrowserData addGroupsItem(GroupInfo groupsItem) { return this; } - /** + /** * Groups Info * @return groups - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Groups Info") + public List getGroups() { return groups; } + public void setGroups(List groups) { this.groups = groups; } public GroupBrowserData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +120,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupBrowserData instance itself */ public GroupBrowserData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +131,6 @@ public GroupBrowserData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +202,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupBrowserData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupBrowserData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupBrowserData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupBrowserData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserData is not found in the empty JSON string", GroupBrowserData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); - if (jsonArraygroups != null) { - // ensure the json data is an array - if (!jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); - } - - // validate the optional field `groups` (array) - for (int i = 0; i < jsonArraygroups.size(); i++) { - GroupInfo.validateJsonElement(jsonArraygroups.get(i)); - }; + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + if (jsonArraygroups != null) { + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + GroupInfo.validateJsonObject(jsonArraygroups.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +262,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +271,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupBrowserData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupBrowserData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +286,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +298,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupBrowserData given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupBrowserData - * @throws IOException if the JSON string is invalid with respect to GroupBrowserData - */ + /** + * Create an instance of GroupBrowserData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupBrowserData + * @throws IOException if the JSON string is invalid with respect to GroupBrowserData + */ public static GroupBrowserData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupBrowserData.class); } - /** - * Convert an instance of GroupBrowserData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupBrowserData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java index e63ca9d..4a09b5c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,20 +43,22 @@ /** * Object with data to fill browser filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object with data to fill browser filter") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupBrowserFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = new ArrayList<>(); + private List namespaces = null; public static final String SERIALIZED_NAME_GROUP_TYPES = "group_types"; @SerializedName(SERIALIZED_NAME_GROUP_TYPES) - private List groupTypes = new ArrayList<>(); + private List groupTypes = null; - public GroupBrowserFilterData() { + public GroupBrowserFilterData() { } public GroupBrowserFilterData namespaces(List namespaces) { + this.namespaces = namespaces; return this; } @@ -78,21 +71,25 @@ public GroupBrowserFilterData addNamespacesItem(String namespacesItem) { return this; } - /** + /** * list of all unique namespaces to display * @return namespaces - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of all unique namespaces to display") + public List getNamespaces() { return namespaces; } + public void setNamespaces(List namespaces) { this.namespaces = namespaces; } public GroupBrowserFilterData groupTypes(List groupTypes) { + this.groupTypes = groupTypes; return this; } @@ -105,15 +102,18 @@ public GroupBrowserFilterData addGroupTypesItem(GroupType groupTypesItem) { return this; } - /** + /** * list of all available group types to display * @return groupTypes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of all available group types to display") + public List getGroupTypes() { return groupTypes; } + public void setGroupTypes(List groupTypes) { this.groupTypes = groupTypes; } @@ -128,10 +128,6 @@ public void setGroupTypes(List groupTypes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupBrowserFilterData instance itself */ public GroupBrowserFilterData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -143,8 +139,6 @@ public GroupBrowserFilterData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,9 +146,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,25 +210,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupBrowserFilterData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupBrowserFilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupBrowserFilterData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupBrowserFilterData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserFilterData is not found in the empty JSON string", GroupBrowserFilterData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("group_types") != null && !jsonObj.get("group_types").isJsonNull() && !jsonObj.get("group_types").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("group_types") != null && !jsonObj.get("group_types").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_types` to be an array in the JSON string but got `%s`", jsonObj.get("group_types").toString())); } } @@ -258,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupBrowserFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -270,12 +262,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -284,9 +271,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupBrowserFilterData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupBrowserFilterData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -300,10 +286,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -314,22 +298,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupBrowserFilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupBrowserFilterData - * @throws IOException if the JSON string is invalid with respect to GroupBrowserFilterData - */ + /** + * Create an instance of GroupBrowserFilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupBrowserFilterData + * @throws IOException if the JSON string is invalid with respect to GroupBrowserFilterData + */ public static GroupBrowserFilterData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupBrowserFilterData.class); } - /** - * Convert an instance of GroupBrowserFilterData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupBrowserFilterData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java index eb9013d..18c1876 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java @@ -14,58 +14,51 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupMember; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * A request to change the members of a group. Contains assets to add or remove. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A request to change the members of a group. Contains assets to add or remove.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupChanges { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) - private List add = new ArrayList<>(); + private List add = null; public static final String SERIALIZED_NAME_REMOVE = "remove"; @SerializedName(SERIALIZED_NAME_REMOVE) - private List remove = new ArrayList<>(); + private List remove = null; - public GroupChanges() { + public GroupChanges() { } public GroupChanges add(List add) { + this.add = add; return this; } @@ -78,21 +71,25 @@ public GroupChanges addAddItem(GroupMember addItem) { return this; } - /** + /** * the assets, arrays or groups, to add to the group. * @return add - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the assets, arrays or groups, to add to the group.") + public List getAdd() { return add; } + public void setAdd(List add) { this.add = add; } public GroupChanges remove(List remove) { + this.remove = remove; return this; } @@ -105,15 +102,18 @@ public GroupChanges addRemoveItem(GroupMember removeItem) { return this; } - /** + /** * the assets, arrays or groups, to remove from the group. * @return remove - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the assets, arrays or groups, to remove from the group.") + public List getRemove() { return remove; } + public void setRemove(List remove) { this.remove = remove; } @@ -128,10 +128,6 @@ public void setRemove(List remove) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupChanges instance itself */ public GroupChanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -143,8 +139,6 @@ public GroupChanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,9 +146,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,46 +210,43 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupChanges - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupChanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupChanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupChanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupChanges is not found in the empty JSON string", GroupChanges.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("add") != null && !jsonObj.get("add").isJsonNull()) { - JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); - if (jsonArrayadd != null) { - // ensure the json data is an array - if (!jsonObj.get("add").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); - } - - // validate the optional field `add` (array) - for (int i = 0; i < jsonArrayadd.size(); i++) { - GroupMember.validateJsonElement(jsonArrayadd.get(i)); - }; + JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); + if (jsonArrayadd != null) { + // ensure the json data is an array + if (!jsonObj.get("add").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); } + + // validate the optional field `add` (array) + for (int i = 0; i < jsonArrayadd.size(); i++) { + GroupMember.validateJsonObject(jsonArrayadd.get(i).getAsJsonObject()); + }; } - if (jsonObj.get("remove") != null && !jsonObj.get("remove").isJsonNull()) { - JsonArray jsonArrayremove = jsonObj.getAsJsonArray("remove"); - if (jsonArrayremove != null) { - // ensure the json data is an array - if (!jsonObj.get("remove").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `remove` to be an array in the JSON string but got `%s`", jsonObj.get("remove").toString())); - } - - // validate the optional field `remove` (array) - for (int i = 0; i < jsonArrayremove.size(); i++) { - GroupMember.validateJsonElement(jsonArrayremove.get(i)); - }; + JsonArray jsonArrayremove = jsonObj.getAsJsonArray("remove"); + if (jsonArrayremove != null) { + // ensure the json data is an array + if (!jsonObj.get("remove").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `remove` to be an array in the JSON string but got `%s`", jsonObj.get("remove").toString())); } + + // validate the optional field `remove` (array) + for (int i = 0; i < jsonArrayremove.size(); i++) { + GroupMember.validateJsonObject(jsonArrayremove.get(i).getAsJsonObject()); + }; } } @@ -278,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupChanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -290,12 +278,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -304,9 +287,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupChanges read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupChanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -320,10 +302,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -334,22 +314,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupChanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupChanges - * @throws IOException if the JSON string is invalid with respect to GroupChanges - */ + /** + * Create an instance of GroupChanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupChanges + * @throws IOException if the JSON string is invalid with respect to GroupChanges + */ public static GroupChanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupChanges.class); } - /** - * Convert an instance of GroupChanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupChanges to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java index efd9dae..e50e4cc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java @@ -14,36 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.GroupContentActivityAsset; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +41,8 @@ /** * Object containing activity of an asset of a group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object containing activity of an asset of a group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupContentActivity { public static final String SERIALIZED_NAME_ASSET = "asset"; @SerializedName(SERIALIZED_NAME_ASSET) @@ -61,42 +52,50 @@ public class GroupContentActivity { @SerializedName(SERIALIZED_NAME_ACTIVITY_LOG) private ArrayActivityLog activityLog; - public GroupContentActivity() { + public GroupContentActivity() { } public GroupContentActivity asset(GroupContentActivityAsset asset) { + this.asset = asset; return this; } - /** + /** * Get asset * @return asset - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public GroupContentActivityAsset getAsset() { return asset; } + public void setAsset(GroupContentActivityAsset asset) { this.asset = asset; } public GroupContentActivity activityLog(ArrayActivityLog activityLog) { + this.activityLog = activityLog; return this; } - /** + /** * Get activityLog * @return activityLog - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayActivityLog getActivityLog() { return activityLog; } + public void setActivityLog(ArrayActivityLog activityLog) { this.activityLog = activityLog; } @@ -111,10 +110,6 @@ public void setActivityLog(ArrayActivityLog activityLog) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentActivity instance itself */ public GroupContentActivity putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -126,8 +121,6 @@ public GroupContentActivity putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -135,9 +128,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -202,26 +192,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupContentActivity - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupContentActivity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentActivity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentActivity.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivity is not found in the empty JSON string", GroupContentActivity.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `asset` - if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { - GroupContentActivityAsset.validateJsonElement(jsonObj.get("asset")); + if (jsonObj.getAsJsonObject("asset") != null) { + GroupContentActivityAsset.validateJsonObject(jsonObj.getAsJsonObject("asset")); } // validate the optional field `activity_log` - if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { - ArrayActivityLog.validateJsonElement(jsonObj.get("activity_log")); + if (jsonObj.getAsJsonObject("activity_log") != null) { + ArrayActivityLog.validateJsonObject(jsonObj.getAsJsonObject("activity_log")); } } @@ -241,7 +232,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContentActivity value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -253,12 +244,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -267,9 +253,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupContentActivity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupContentActivity instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -283,10 +268,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -297,22 +280,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContentActivity given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentActivity - * @throws IOException if the JSON string is invalid with respect to GroupContentActivity - */ + /** + * Create an instance of GroupContentActivity given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentActivity + * @throws IOException if the JSON string is invalid with respect to GroupContentActivity + */ public static GroupContentActivity fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContentActivity.class); } - /** - * Convert an instance of GroupContentActivity to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContentActivity to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java index d2e0cfc..839868e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * The asset details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The asset details") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupContentActivityAsset { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -68,80 +60,96 @@ public class GroupContentActivityAsset { @SerializedName(SERIALIZED_NAME_ASSET_TYPE) private AssetType assetType; - public GroupContentActivityAsset() { + public GroupContentActivityAsset() { } public GroupContentActivityAsset id(String id) { + this.id = id; return this; } - /** + /** * The asset ID * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The asset ID") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public GroupContentActivityAsset name(String name) { + this.name = name; return this; } - /** + /** * The asset name * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The asset name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public GroupContentActivityAsset namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * The namespace that the asset belongs to * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace that the asset belongs to") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public GroupContentActivityAsset assetType(AssetType assetType) { + this.assetType = assetType; return this; } - /** + /** * Get assetType * @return assetType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetType getAssetType() { return assetType; } + public void setAssetType(AssetType assetType) { this.assetType = assetType; } @@ -156,10 +164,6 @@ public void setAssetType(AssetType assetType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentActivityAsset instance itself */ public GroupContentActivityAsset putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,8 +175,6 @@ public GroupContentActivityAsset putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,32 +252,29 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupContentActivityAsset - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupContentActivityAsset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentActivityAsset + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentActivityAsset.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityAsset is not found in the empty JSON string", GroupContentActivityAsset.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - // validate the optional field `asset_type` - if (jsonObj.get("asset_type") != null && !jsonObj.get("asset_type").isJsonNull()) { - AssetType.validateJsonElement(jsonObj.get("asset_type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -297,7 +293,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContentActivityAsset value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -309,12 +305,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -323,9 +314,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupContentActivityAsset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupContentActivityAsset instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -339,10 +329,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -353,22 +341,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContentActivityAsset given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentActivityAsset - * @throws IOException if the JSON string is invalid with respect to GroupContentActivityAsset - */ + /** + * Create an instance of GroupContentActivityAsset given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentActivityAsset + * @throws IOException if the JSON string is invalid with respect to GroupContentActivityAsset + */ public static GroupContentActivityAsset fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContentActivityAsset.class); } - /** - * Convert an instance of GroupContentActivityAsset to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContentActivityAsset to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java index a81089e..39452ba 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupContentActivity; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Object containing activity logs of group content along with the pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object containing activity logs of group content along with the pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupContentActivityResponse { public static final String SERIALIZED_NAME_ACTIVITY = "activity"; @SerializedName(SERIALIZED_NAME_ACTIVITY) - private List activity = new ArrayList<>(); + private List activity = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public GroupContentActivityResponse() { + public GroupContentActivityResponse() { } public GroupContentActivityResponse activity(List activity) { + this.activity = activity; return this; } @@ -79,34 +72,41 @@ public GroupContentActivityResponse addActivityItem(GroupContentActivity activit return this; } - /** + /** * Activity of a group's content * @return activity - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Activity of a group's content") + public List getActivity() { return activity; } + public void setActivity(List activity) { this.activity = activity; } public GroupContentActivityResponse paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentActivityResponse instance itself */ public GroupContentActivityResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public GroupContentActivityResponse putAdditionalProperty(String key, Object val /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupContentActivityResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupContentActivityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentActivityResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentActivityResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityResponse is not found in the empty JSON string", GroupContentActivityResponse.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - GroupContentActivity.validateJsonElement(jsonArrayactivity.get(i)); - }; + JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); + if (jsonArrayactivity != null) { + // ensure the json data is an array + if (!jsonObj.get("activity").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); } + + // validate the optional field `activity` (array) + for (int i = 0; i < jsonArrayactivity.size(); i++) { + GroupContentActivity.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContentActivityResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupContentActivityResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupContentActivityResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContentActivityResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentActivityResponse - * @throws IOException if the JSON string is invalid with respect to GroupContentActivityResponse - */ + /** + * Create an instance of GroupContentActivityResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentActivityResponse + * @throws IOException if the JSON string is invalid with respect to GroupContentActivityResponse + */ public static GroupContentActivityResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContentActivityResponse.class); } - /** - * Convert an instance of GroupContentActivityResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContentActivityResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java index 3dc72ab..fd39ae7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupEntry; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Object including a page of members of a group and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including a page of members of a group and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupContents { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = new ArrayList<>(); + private List entries = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public GroupContents() { + public GroupContents() { } public GroupContents entries(List entries) { + this.entries = entries; return this; } @@ -79,34 +72,41 @@ public GroupContents addEntriesItem(GroupEntry entriesItem) { return this; } - /** + /** * Groups members * @return entries - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Groups members") + public List getEntries() { return entries; } + public void setEntries(List entries) { this.entries = entries; } public GroupContents paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContents instance itself */ public GroupContents putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public GroupContents putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupContents - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupContents.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContents + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContents.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContents is not found in the empty JSON string", GroupContents.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - GroupEntry.validateJsonElement(jsonArrayentries.get(i)); - }; + JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); + if (jsonArrayentries != null) { + // ensure the json data is an array + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + GroupEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContents value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupContents read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupContents instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContents given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContents - * @throws IOException if the JSON string is invalid with respect to GroupContents - */ + /** + * Create an instance of GroupContents given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContents + * @throws IOException if the JSON string is invalid with respect to GroupContents + */ public static GroupContents fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContents.class); } - /** - * Convert an instance of GroupContents to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContents to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java index add6d17..afc9df6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,16 +43,18 @@ /** * Object with data to fill contents filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object with data to fill contents filter") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupContentsFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = new ArrayList<>(); + private List namespaces = null; - public GroupContentsFilterData() { + public GroupContentsFilterData() { } public GroupContentsFilterData namespaces(List namespaces) { + this.namespaces = namespaces; return this; } @@ -73,15 +67,18 @@ public GroupContentsFilterData addNamespacesItem(String namespacesItem) { return this; } - /** + /** * list of all unique namespaces to display * @return namespaces - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of all unique namespaces to display") + public List getNamespaces() { return namespaces; } + public void setNamespaces(List namespaces) { this.namespaces = namespaces; } @@ -96,10 +93,6 @@ public void setNamespaces(List namespaces) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentsFilterData instance itself */ public GroupContentsFilterData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -111,8 +104,6 @@ public GroupContentsFilterData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -120,9 +111,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -184,21 +172,22 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupContentsFilterData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupContentsFilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentsFilterData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentsFilterData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsFilterData is not found in the empty JSON string", GroupContentsFilterData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); } } @@ -219,7 +208,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContentsFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -231,12 +220,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -245,9 +229,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupContentsFilterData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupContentsFilterData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -261,10 +244,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -275,22 +256,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContentsFilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentsFilterData - * @throws IOException if the JSON string is invalid with respect to GroupContentsFilterData - */ + /** + * Create an instance of GroupContentsFilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentsFilterData + * @throws IOException if the JSON string is invalid with respect to GroupContentsFilterData + */ public static GroupContentsFilterData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContentsFilterData.class); } - /** - * Convert an instance of GroupContentsFilterData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContentsFilterData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java index e590254..0530fe9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +43,8 @@ /** * Initial attributes for the creation of a group. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Initial attributes for the creation of a group.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupCreate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -79,7 +72,7 @@ public class GroupCreate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -89,124 +82,149 @@ public class GroupCreate { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupCreate() { + public GroupCreate() { } public GroupCreate description(String description) { + this.description = description; return this; } - /** + /** * A human readable description of the contents of the group. * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A human readable description of the contents of the group.") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public GroupCreate name(String name) { + this.name = name; return this; } - /** + /** * The name of the group. If must be unique within the group. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the group. If must be unique within the group.") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public GroupCreate parent(String parent) { + this.parent = parent; return this; } - /** + /** * The unique name or id of the parent of the group. If empty, then the new group will be a top level group. * @return parent - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The unique name or id of the parent of the group. If empty, then the new group will be a top level group.") + public String getParent() { return parent; } + public void setParent(String parent) { this.parent = parent; } public GroupCreate uri(String uri) { + this.uri = uri; return this; } - /** + /** * uri of group. * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "uri of group.") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public GroupCreate logo(String logo) { + this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the group. Optional * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public GroupCreate accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used. * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used.") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupCreate tags(List tags) { + this.tags = tags; return this; } @@ -219,53 +237,64 @@ public GroupCreate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for groups. * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for groups.") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public GroupCreate licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom. * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom.") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupCreate licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } @@ -280,10 +309,6 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupCreate instance itself */ public GroupCreate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -295,8 +320,6 @@ public GroupCreate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -304,9 +327,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -392,45 +412,46 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupCreate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupCreate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupCreate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupCreate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreate is not found in the empty JSON string", GroupCreate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonNull()) && !jsonObj.get("parent").isJsonPrimitive()) { + if (jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } } @@ -451,7 +472,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -463,12 +484,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -477,9 +493,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupCreate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupCreate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -493,10 +508,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -507,22 +520,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupCreate given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupCreate - * @throws IOException if the JSON string is invalid with respect to GroupCreate - */ + /** + * Create an instance of GroupCreate given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupCreate + * @throws IOException if the JSON string is invalid with respect to GroupCreate + */ public static GroupCreate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupCreate.class); } - /** - * Convert an instance of GroupCreate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupCreate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java index b67782d..cfd54f3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java @@ -14,36 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.GroupInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +41,8 @@ /** * Object describing a single member of a group, which can be an array or a group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object describing a single member of a group, which can be an array or a group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupEntry { public static final String SERIALIZED_NAME_MEMBER_ID = "member_id"; @SerializedName(SERIALIZED_NAME_MEMBER_ID) @@ -65,9 +56,10 @@ public class GroupEntry { @SerializedName(SERIALIZED_NAME_ARRAY) private ArrayInfo array; - public GroupEntry() { + public GroupEntry() { } + public GroupEntry( String memberId ) { @@ -75,50 +67,61 @@ public GroupEntry( this.memberId = memberId; } - /** + /** * The unique member id for the entry * @return memberId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The unique member id for the entry") + public String getMemberId() { return memberId; } + public GroupEntry group(GroupInfo group) { + this.group = group; return this; } - /** + /** * Get group * @return group - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public GroupInfo getGroup() { return group; } + public void setGroup(GroupInfo group) { this.group = group; } public GroupEntry array(ArrayInfo array) { + this.array = array; return this; } - /** + /** * Get array * @return array - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayInfo getArray() { return array; } + public void setArray(ArrayInfo array) { this.array = array; } @@ -133,10 +136,6 @@ public void setArray(ArrayInfo array) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupEntry instance itself */ public GroupEntry putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -148,8 +147,6 @@ public GroupEntry putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -157,9 +154,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -227,29 +221,30 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupEntry - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupEntry.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupEntry is not found in the empty JSON string", GroupEntry.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("member_id") != null && !jsonObj.get("member_id").isJsonNull()) && !jsonObj.get("member_id").isJsonPrimitive()) { + if (jsonObj.get("member_id") != null && !jsonObj.get("member_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `member_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("member_id").toString())); } // validate the optional field `group` - if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - GroupInfo.validateJsonElement(jsonObj.get("group")); + if (jsonObj.getAsJsonObject("group") != null) { + GroupInfo.validateJsonObject(jsonObj.getAsJsonObject("group")); } // validate the optional field `array` - if (jsonObj.get("array") != null && !jsonObj.get("array").isJsonNull()) { - ArrayInfo.validateJsonElement(jsonObj.get("array")); + if (jsonObj.getAsJsonObject("array") != null) { + ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array")); } } @@ -269,7 +264,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -281,12 +276,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -295,9 +285,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupEntry read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupEntry instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -311,10 +300,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -325,22 +312,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupEntry - * @throws IOException if the JSON string is invalid with respect to GroupEntry - */ + /** + * Create an instance of GroupEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupEntry + * @throws IOException if the JSON string is invalid with respect to GroupEntry + */ public static GroupEntry fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupEntry.class); } - /** - * Convert an instance of GroupEntry to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupEntry to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java index 2ba7132..d5fc4ae 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java @@ -14,42 +14,33 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupActions; -import io.tiledb.cloud.rest_api.model.GroupType; -import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -57,7 +48,8 @@ /** * metadata of a group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "metadata of a group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -101,7 +93,7 @@ public class GroupInfo { public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = new ArrayList<>(); + private List allowedActions = null; public static final String SERIALIZED_NAME_GROUP_TYPE = "group_type"; @SerializedName(SERIALIZED_NAME_GROUP_TYPE) @@ -125,7 +117,7 @@ public class GroupInfo { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -145,202 +137,243 @@ public class GroupInfo { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) - private List metadata = new ArrayList<>(); + private List metadata = null; - public GroupInfo() { + public GroupInfo() { } public GroupInfo id(String id) { + this.id = id; return this; } - /** + /** * unique ID of registered group * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of registered group") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public GroupInfo namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace group is in * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "user1", value = "namespace group is in") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public GroupInfo name(String name) { + this.name = name; return this; } - /** + /** * name of group * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "myarray1", value = "name of group") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public GroupInfo description(String description) { + this.description = description; return this; } - /** + /** * description of group * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "description of group") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public GroupInfo uri(String uri) { + this.uri = uri; return this; } - /** + /** * uri of group * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "s3://bucket/asset", value = "uri of group") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public GroupInfo tiledbUri(String tiledbUri) { + this.tiledbUri = tiledbUri; return this; } - /** + /** * uri for access through TileDB cloud * @return tiledbUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "uri for access through TileDB cloud") + public String getTiledbUri() { return tiledbUri; } + public void setTiledbUri(String tiledbUri) { this.tiledbUri = tiledbUri; } public GroupInfo assetCount(BigDecimal assetCount) { + this.assetCount = assetCount; return this; } - /** + /** * A count of direct array members * @return assetCount - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "12.0", value = "A count of direct array members") + public BigDecimal getAssetCount() { return assetCount; } + public void setAssetCount(BigDecimal assetCount) { this.assetCount = assetCount; } public GroupInfo groupCount(BigDecimal groupCount) { + this.groupCount = groupCount; return this; } - /** + /** * A count of direct group members * @return groupCount - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "4.0", value = "A count of direct group members") + public BigDecimal getGroupCount() { return groupCount; } + public void setGroupCount(BigDecimal groupCount) { this.groupCount = groupCount; } public GroupInfo size(BigDecimal size) { + this.size = size; return this; } - /** + /** * A count of direct members. This is the sum of asset_count and group_count * @return size - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "16.0", value = "A count of direct members. This is the sum of asset_count and group_count") + public BigDecimal getSize() { return size; } + public void setSize(BigDecimal size) { this.size = size; } public GroupInfo lastAccessed(OffsetDateTime lastAccessed) { + this.lastAccessed = lastAccessed; return this; } - /** + /** * Datetime groups was last accessed in UTC * @return lastAccessed - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime groups was last accessed in UTC") + public OffsetDateTime getLastAccessed() { return lastAccessed; } + public void setLastAccessed(OffsetDateTime lastAccessed) { this.lastAccessed = lastAccessed; } public GroupInfo allowedActions(List allowedActions) { + this.allowedActions = allowedActions; return this; } @@ -353,116 +386,140 @@ public GroupInfo addAllowedActionsItem(GroupActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this group * @return allowedActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of actions user is allowed to do on this group") + public List getAllowedActions() { return allowedActions; } + public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } public GroupInfo groupType(GroupType groupType) { + this.groupType = groupType; return this; } - /** + /** * Get groupType * @return groupType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public GroupType getGroupType() { return groupType; } + public void setGroupType(GroupType groupType) { this.groupType = groupType; } public GroupInfo logo(String logo) { + this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the gruop. Optional * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logo (base64 encoded) for the gruop. Optional") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public GroupInfo accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupInfo shareCount(BigDecimal shareCount) { + this.shareCount = shareCount; return this; } - /** + /** * number of unique namespaces this group is shared with * @return shareCount - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "number of unique namespaces this group is shared with") + public BigDecimal getShareCount() { return shareCount; } + public void setShareCount(BigDecimal shareCount) { this.shareCount = shareCount; } public GroupInfo publicShare(Boolean publicShare) { + this.publicShare = publicShare; return this; } - /** + /** * Suggests if the group was shared to public by owner * @return publicShare - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Suggests if the group was shared to public by owner") + public Boolean getPublicShare() { return publicShare; } + public void setPublicShare(Boolean publicShare) { this.publicShare = publicShare; } public GroupInfo tags(List tags) { + this.tags = tags; return this; } @@ -475,97 +532,117 @@ public GroupInfo addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for group * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for group") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public GroupInfo licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupInfo licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public GroupInfo createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } - /** + /** * Datetime the group was registered with tiledb * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime the group was registered with tiledb") + public OffsetDateTime getCreatedAt() { return createdAt; } + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } public GroupInfo createdBy(String createdBy) { + this.createdBy = createdBy; return this; } - /** + /** * The username of the group's creator, if known. * @return createdBy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The username of the group's creator, if known.") + public String getCreatedBy() { return createdBy; } + public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } public GroupInfo metadata(List metadata) { + this.metadata = metadata; return this; } @@ -578,15 +655,18 @@ public GroupInfo addMetadataItem(MetadataStringifiedEntry metadataItem) { return this; } - /** + /** * Contains metadata of the group. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. * @return metadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Contains metadata of the group. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. ") + public List getMetadata() { return metadata; } + public void setMetadata(List metadata) { this.metadata = metadata; } @@ -601,10 +681,6 @@ public void setMetadata(List metadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupInfo instance itself */ public GroupInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -616,8 +692,6 @@ public GroupInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -625,9 +699,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -763,77 +834,72 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupInfo is not found in the empty JSON string", GroupInfo.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - if ((jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonNull()) && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { + if (jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - // validate the optional field `group_type` - if (jsonObj.get("group_type") != null && !jsonObj.get("group_type").isJsonNull()) { - GroupType.validateJsonElement(jsonObj.get("group_type")); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } - if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { + if (jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - MetadataStringifiedEntry.validateJsonElement(jsonArraymetadata.get(i)); - }; + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + MetadataStringifiedEntry.validateJsonObject(jsonArraymetadata.get(i).getAsJsonObject()); + }; } } @@ -853,7 +919,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -865,12 +931,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -879,9 +940,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -895,10 +955,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -909,22 +967,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupInfo - * @throws IOException if the JSON string is invalid with respect to GroupInfo - */ + /** + * Create an instance of GroupInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupInfo + * @throws IOException if the JSON string is invalid with respect to GroupInfo + */ public static GroupInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupInfo.class); } - /** - * Convert an instance of GroupInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java index 1b0baed..933152e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupMemberType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * A groups member, array or another groups, to add or remove from an existing group. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A groups member, array or another groups, to add or remove from an existing group.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupMember { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -64,61 +56,73 @@ public class GroupMember { @SerializedName(SERIALIZED_NAME_MEMBER_TYPE) private GroupMemberType memberType; - public GroupMember() { + public GroupMember() { } public GroupMember namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * The namespace of the asset. * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace of the asset.") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public GroupMember name(String name) { + this.name = name; return this; } - /** + /** * The name or id of the asset. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name or id of the asset.") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public GroupMember memberType(GroupMemberType memberType) { + this.memberType = memberType; return this; } - /** + /** * Get memberType * @return memberType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public GroupMemberType getMemberType() { return memberType; } + public void setMemberType(GroupMemberType memberType) { this.memberType = memberType; } @@ -133,10 +137,6 @@ public void setMemberType(GroupMemberType memberType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupMember instance itself */ public GroupMember putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -148,8 +148,6 @@ public GroupMember putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -157,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -227,29 +222,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupMember - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupMember + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupMember.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMember is not found in the empty JSON string", GroupMember.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the optional field `member_type` - if (jsonObj.get("member_type") != null && !jsonObj.get("member_type").isJsonNull()) { - GroupMemberType.validateJsonElement(jsonObj.get("member_type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -268,7 +260,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupMember value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -280,12 +272,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -294,9 +281,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupMember read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupMember instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -310,10 +296,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -324,22 +308,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupMember - * @throws IOException if the JSON string is invalid with respect to GroupMember - */ + /** + * Create an instance of GroupMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupMember + * @throws IOException if the JSON string is invalid with respect to GroupMember + */ public static GroupMember fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupMember.class); } - /** - * Convert an instance of GroupMember to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupMember to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java index f988171..66ece8e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -93,10 +92,5 @@ public GroupMemberAssetType read(final JsonReader jsonReader) throws IOException return GroupMemberAssetType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - GroupMemberAssetType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java index 67ddcf1..ea33d41 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public GroupMemberType read(final JsonReader jsonReader) throws IOException { return GroupMemberType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - GroupMemberType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java index 30343ef..4f49501 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +43,8 @@ /** * Initial attributes for the registration of a an existing group. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Initial attributes for the registration of a an existing group.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupRegister { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -79,7 +72,7 @@ public class GroupRegister { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -89,124 +82,149 @@ public class GroupRegister { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupRegister() { + public GroupRegister() { } public GroupRegister description(String description) { + this.description = description; return this; } - /** + /** * A human readable description of the contents of the group. * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A human readable description of the contents of the group.") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public GroupRegister name(String name) { + this.name = name; return this; } - /** + /** * The name of the group. If must be unique within the group. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the group. If must be unique within the group.") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public GroupRegister parent(String parent) { + this.parent = parent; return this; } - /** + /** * The unique name or id of the parent of the group. If empty, then the new group will be a top level group. * @return parent - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The unique name or id of the parent of the group. If empty, then the new group will be a top level group.") + public String getParent() { return parent; } + public void setParent(String parent) { this.parent = parent; } public GroupRegister uri(String uri) { + this.uri = uri; return this; } - /** + /** * uri of group. * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "uri of group.") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public GroupRegister logo(String logo) { + this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the group. Optional * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public GroupRegister accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used. * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used.") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupRegister tags(List tags) { + this.tags = tags; return this; } @@ -219,53 +237,64 @@ public GroupRegister addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for groups. * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for groups.") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public GroupRegister licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom. * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom.") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupRegister licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } @@ -280,10 +309,6 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupRegister instance itself */ public GroupRegister putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -295,8 +320,6 @@ public GroupRegister putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -304,9 +327,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -392,45 +412,46 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupRegister - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupRegister.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupRegister + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupRegister.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegister is not found in the empty JSON string", GroupRegister.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonNull()) && !jsonObj.get("parent").isJsonPrimitive()) { + if (jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } } @@ -451,7 +472,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupRegister value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -463,12 +484,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -477,9 +493,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupRegister read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupRegister instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -493,10 +508,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -507,22 +520,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupRegister given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupRegister - * @throws IOException if the JSON string is invalid with respect to GroupRegister - */ + /** + * Create an instance of GroupRegister given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupRegister + * @throws IOException if the JSON string is invalid with respect to GroupRegister + */ public static GroupRegister fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupRegister.class); } - /** - * Convert an instance of GroupRegister to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupRegister to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java index 7007e5b..d125a37 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.GroupActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,15 +43,16 @@ /** * sharing state of a group with a namespace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "sharing state of a group with a namespace") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupSharing { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) - private List groupActions = new ArrayList<>(); + private List groupActions = null; public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) - private List arrayActions = new ArrayList<>(); + private List arrayActions = null; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -71,10 +62,11 @@ public class GroupSharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public GroupSharing() { + public GroupSharing() { } public GroupSharing groupActions(List groupActions) { + this.groupActions = groupActions; return this; } @@ -87,21 +79,25 @@ public GroupSharing addGroupActionsItem(GroupActions groupActionsItem) { return this; } - /** + /** * List of permitted actions for the group and all subgroups * @return groupActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for the group and all subgroups") + public List getGroupActions() { return groupActions; } + public void setGroupActions(List groupActions) { this.groupActions = groupActions; } public GroupSharing arrayActions(List arrayActions) { + this.arrayActions = arrayActions; return this; } @@ -114,53 +110,64 @@ public GroupSharing addArrayActionsItem(ArrayActions arrayActionsItem) { return this; } - /** + /** * List of permitted actions for all the subarrays of the group * @return arrayActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for all the subarrays of the group") + public List getArrayActions() { return arrayActions; } + public void setArrayActions(List arrayActions) { this.arrayActions = arrayActions; } public GroupSharing namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace being granted group access can be a user or organization * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "MyOrganization", value = "namespace being granted group access can be a user or organization") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public GroupSharing namespaceType(String namespaceType) { + this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") + public String getNamespaceType() { return namespaceType; } + public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -175,10 +182,6 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupSharing instance itself */ public GroupSharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -190,8 +193,6 @@ public GroupSharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -199,9 +200,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -272,31 +270,32 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupSharing - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupSharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupSharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupSharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharing is not found in the empty JSON string", GroupSharing.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull() && !jsonObj.get("group_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull() && !jsonObj.get("array_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if (jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -317,7 +316,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -329,12 +328,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -343,9 +337,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupSharing read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupSharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -359,10 +352,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -373,22 +364,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupSharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupSharing - * @throws IOException if the JSON string is invalid with respect to GroupSharing - */ + /** + * Create an instance of GroupSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupSharing + * @throws IOException if the JSON string is invalid with respect to GroupSharing + */ public static GroupSharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupSharing.class); } - /** - * Convert an instance of GroupSharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupSharing to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java index 2c30412..5263268 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.GroupActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,24 +43,26 @@ /** * a request to share a group and all the contents with a namespace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "a request to share a group and all the contents with a namespace") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupSharingRequest { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) - private List groupActions = new ArrayList<>(); + private List groupActions = null; public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) - private List arrayActions = new ArrayList<>(); + private List arrayActions = null; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; - public GroupSharingRequest() { + public GroupSharingRequest() { } public GroupSharingRequest groupActions(List groupActions) { + this.groupActions = groupActions; return this; } @@ -83,21 +75,25 @@ public GroupSharingRequest addGroupActionsItem(GroupActions groupActionsItem) { return this; } - /** + /** * List of permitted actions for the group and all subgroups * @return groupActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for the group and all subgroups") + public List getGroupActions() { return groupActions; } + public void setGroupActions(List groupActions) { this.groupActions = groupActions; } public GroupSharingRequest arrayActions(List arrayActions) { + this.arrayActions = arrayActions; return this; } @@ -110,34 +106,41 @@ public GroupSharingRequest addArrayActionsItem(ArrayActions arrayActionsItem) { return this; } - /** + /** * List of permitted actions for all the subarrays of the group * @return arrayActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for all the subarrays of the group") + public List getArrayActions() { return arrayActions; } + public void setArrayActions(List arrayActions) { this.arrayActions = arrayActions; } public GroupSharingRequest namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace being granted group access can be a user or organization * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "MyOrganization", value = "namespace being granted group access can be a user or organization") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -152,10 +155,6 @@ public void setNamespace(String namespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupSharingRequest instance itself */ public GroupSharingRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -167,8 +166,6 @@ public GroupSharingRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -176,9 +173,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -246,28 +240,29 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupSharingRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupSharingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupSharingRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupSharingRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharingRequest is not found in the empty JSON string", GroupSharingRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull() && !jsonObj.get("group_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull() && !jsonObj.get("array_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -288,7 +283,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupSharingRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -300,12 +295,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -314,9 +304,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupSharingRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupSharingRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -330,10 +319,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -344,22 +331,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupSharingRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupSharingRequest - * @throws IOException if the JSON string is invalid with respect to GroupSharingRequest - */ + /** + * Create an instance of GroupSharingRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupSharingRequest + * @throws IOException if the JSON string is invalid with respect to GroupSharingRequest + */ public static GroupSharingRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupSharingRequest.class); } - /** - * Convert an instance of GroupSharingRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupSharingRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java index f7f82d9..410ffcc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -81,10 +80,5 @@ public GroupType read(final JsonReader jsonReader) throws IOException { return GroupType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - GroupType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java index cd7494c..6a7c211 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,10 +66,5 @@ public GroupTypeMetadataKey read(final JsonReader jsonReader) throws IOException return GroupTypeMetadataKey.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - GroupTypeMetadataKey.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java index fbb278d..178fa82 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +44,8 @@ /** * Updates for a group. New values for the attributes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Updates for a group. New values for the attributes.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class GroupUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -72,7 +65,7 @@ public class GroupUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -82,86 +75,103 @@ public class GroupUpdate { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupUpdate() { + public GroupUpdate() { } public GroupUpdate description(String description) { + this.description = description; return this; } - /** + /** * A human readable description of the content of the group * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A human readable description of the content of the group") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public GroupUpdate name(String name) { + this.name = name; return this; } - /** + /** * The name of the group. If must be unique within the group. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the group. If must be unique within the group.") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public GroupUpdate logo(String logo) { + this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the group. Optional * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public GroupUpdate accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupUpdate tags(List tags) { + this.tags = tags; return this; } @@ -174,53 +184,64 @@ public GroupUpdate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for groups * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for groups") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public GroupUpdate licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupUpdate licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } @@ -235,10 +256,6 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupUpdate instance itself */ public GroupUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -250,8 +267,6 @@ public GroupUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -259,9 +274,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -352,39 +364,40 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GroupUpdate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GroupUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in GroupUpdate is not found in the empty JSON string", GroupUpdate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } } @@ -405,7 +418,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -417,12 +430,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -431,9 +439,8 @@ else if (entry.getValue() instanceof Character) @Override public GroupUpdate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance GroupUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -447,10 +454,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -461,22 +466,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupUpdate - * @throws IOException if the JSON string is invalid with respect to GroupUpdate - */ + /** + * Create an instance of GroupUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupUpdate + * @throws IOException if the JSON string is invalid with respect to GroupUpdate + */ public static GroupUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupUpdate.class); } - /** - * Convert an instance of GroupUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupUpdate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java index 981072a..967d1e2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java @@ -14,38 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.InvitationStatus; -import io.tiledb.cloud.rest_api.model.InvitationType; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +42,8 @@ /** * Invitations to share or collaborate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Invitations to share or collaborate") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -135,384 +125,464 @@ public class Invitation { @SerializedName(SERIALIZED_NAME_NAMESPACE_INVITED) private String namespaceInvited; - public Invitation() { + public Invitation() { } public Invitation id(String id) { + this.id = id; return this; } - /** + /** * Unique ID of invitation added to magic link * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of invitation added to magic link") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public Invitation invitationType(InvitationType invitationType) { + this.invitationType = invitationType; return this; } - /** + /** * Get invitationType * @return invitationType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public InvitationType getInvitationType() { return invitationType; } + public void setInvitationType(InvitationType invitationType) { this.invitationType = invitationType; } public Invitation ownerNamespaceUuid(String ownerNamespaceUuid) { + this.ownerNamespaceUuid = ownerNamespaceUuid; return this; } - /** + /** * Namespace of the owner of the invitation (user or organization) * @return ownerNamespaceUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Namespace of the owner of the invitation (user or organization)") + public String getOwnerNamespaceUuid() { return ownerNamespaceUuid; } + public void setOwnerNamespaceUuid(String ownerNamespaceUuid) { this.ownerNamespaceUuid = ownerNamespaceUuid; } public Invitation inviterUuid(String inviterUuid) { + this.inviterUuid = inviterUuid; return this; } - /** + /** * Unique ID of the user that sent the invitation * @return inviterUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the user that sent the invitation") + public String getInviterUuid() { return inviterUuid; } + public void setInviterUuid(String inviterUuid) { this.inviterUuid = inviterUuid; } public Invitation userNamespaceUuid(String userNamespaceUuid) { + this.userNamespaceUuid = userNamespaceUuid; return this; } - /** + /** * Unique ID of the user accepted the invitation * @return userNamespaceUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the user accepted the invitation") + public String getUserNamespaceUuid() { return userNamespaceUuid; } + public void setUserNamespaceUuid(String userNamespaceUuid) { this.userNamespaceUuid = userNamespaceUuid; } public Invitation organizationUserUuid(String organizationUserUuid) { + this.organizationUserUuid = organizationUserUuid; return this; } - /** + /** * Unique ID of the organization user accepted the invitation * @return organizationUserUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the organization user accepted the invitation") + public String getOrganizationUserUuid() { return organizationUserUuid; } + public void setOrganizationUserUuid(String organizationUserUuid) { this.organizationUserUuid = organizationUserUuid; } public Invitation organizationName(String organizationName) { + this.organizationName = organizationName; return this; } - /** + /** * Name of the organization, does not persist in database * @return organizationName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "organization_name", value = "Name of the organization, does not persist in database") + public String getOrganizationName() { return organizationName; } + public void setOrganizationName(String organizationName) { this.organizationName = organizationName; } public Invitation organizationRole(OrganizationRoles organizationRole) { + this.organizationRole = organizationRole; return this; } - /** + /** * Get organizationRole * @return organizationRole - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public OrganizationRoles getOrganizationRole() { return organizationRole; } + public void setOrganizationRole(OrganizationRoles organizationRole) { this.organizationRole = organizationRole; } public Invitation organizationUuid(String organizationUuid) { + this.organizationUuid = organizationUuid; return this; } - /** + /** * Unique ID of the organization whose user(s) accepted the invitation * @return organizationUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the organization whose user(s) accepted the invitation") + public String getOrganizationUuid() { return organizationUuid; } + public void setOrganizationUuid(String organizationUuid) { this.organizationUuid = organizationUuid; } public Invitation arrayUuid(String arrayUuid) { + this.arrayUuid = arrayUuid; return this; } - /** + /** * Unique ID of the array * @return arrayUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the array") + public String getArrayUuid() { return arrayUuid; } + public void setArrayUuid(String arrayUuid) { this.arrayUuid = arrayUuid; } public Invitation groupUuid(String groupUuid) { + this.groupUuid = groupUuid; return this; } - /** + /** * Unique ID of the group * @return groupUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the group") + public String getGroupUuid() { return groupUuid; } + public void setGroupUuid(String groupUuid) { this.groupUuid = groupUuid; } public Invitation arrayName(String arrayName) { + this.arrayName = arrayName; return this; } - /** + /** * Name of the array, does not persist in database * @return arrayName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "array_name", value = "Name of the array, does not persist in database") + public String getArrayName() { return arrayName; } + public void setArrayName(String arrayName) { this.arrayName = arrayName; } public Invitation email(String email) { + this.email = email; return this; } - /** + /** * Email of the individual we send the invitation to * @return email - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "jane@doe.com", value = "Email of the individual we send the invitation to") + public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } public Invitation actions(String actions) { + this.actions = actions; return this; } - /** + /** * A comma separated list of ArrayActions or NamespaceActions * @return actions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "read,write", value = "A comma separated list of ArrayActions or NamespaceActions") + public String getActions() { return actions; } + public void setActions(String actions) { this.actions = actions; } public Invitation groupActions(String groupActions) { + this.groupActions = groupActions; return this; } - /** + /** * A comma separated list of GroupActions * @return groupActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "read,write", value = "A comma separated list of GroupActions") + public String getGroupActions() { return groupActions; } + public void setGroupActions(String groupActions) { this.groupActions = groupActions; } public Invitation status(InvitationStatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public InvitationStatus getStatus() { return status; } + public void setStatus(InvitationStatus status) { this.status = status; } public Invitation createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } - /** + /** * Datetime the invitation was created in UTC * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime the invitation was created in UTC") + public OffsetDateTime getCreatedAt() { return createdAt; } + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } public Invitation expiresAt(OffsetDateTime expiresAt) { + this.expiresAt = expiresAt; return this; } - /** + /** * Datetime the invitation is expected to expire in UTC * @return expiresAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime the invitation is expected to expire in UTC") + public OffsetDateTime getExpiresAt() { return expiresAt; } + public void setExpiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } public Invitation acceptedAt(OffsetDateTime acceptedAt) { + this.acceptedAt = acceptedAt; return this; } - /** + /** * Datetime the invitation was accepted in UTC * @return acceptedAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime the invitation was accepted in UTC") + public OffsetDateTime getAcceptedAt() { return acceptedAt; } + public void setAcceptedAt(OffsetDateTime acceptedAt) { this.acceptedAt = acceptedAt; } public Invitation namespaceInvited(String namespaceInvited) { + this.namespaceInvited = namespaceInvited; return this; } - /** + /** * The namespace invited (user or organization, if it exists in the DB) * @return namespaceInvited - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace invited (user or organization, if it exists in the DB)") + public String getNamespaceInvited() { return namespaceInvited; } + public void setNamespaceInvited(String namespaceInvited) { this.namespaceInvited = namespaceInvited; } @@ -527,10 +597,6 @@ public void setNamespaceInvited(String namespaceInvited) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Invitation instance itself */ public Invitation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -542,8 +608,6 @@ public Invitation putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -551,9 +615,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -672,71 +733,60 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Invitation - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Invitation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Invitation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Invitation.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Invitation is not found in the empty JSON string", Invitation.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - // validate the optional field `invitation_type` - if (jsonObj.get("invitation_type") != null && !jsonObj.get("invitation_type").isJsonNull()) { - InvitationType.validateJsonElement(jsonObj.get("invitation_type")); - } - if ((jsonObj.get("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonNull()) && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { + if (jsonObj.get("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `owner_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owner_namespace_uuid").toString())); } - if ((jsonObj.get("inviter_uuid") != null && !jsonObj.get("inviter_uuid").isJsonNull()) && !jsonObj.get("inviter_uuid").isJsonPrimitive()) { + if (jsonObj.get("inviter_uuid") != null && !jsonObj.get("inviter_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `inviter_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("inviter_uuid").toString())); } - if ((jsonObj.get("user_namespace_uuid") != null && !jsonObj.get("user_namespace_uuid").isJsonNull()) && !jsonObj.get("user_namespace_uuid").isJsonPrimitive()) { + if (jsonObj.get("user_namespace_uuid") != null && !jsonObj.get("user_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_namespace_uuid").toString())); } - if ((jsonObj.get("organization_user_uuid") != null && !jsonObj.get("organization_user_uuid").isJsonNull()) && !jsonObj.get("organization_user_uuid").isJsonPrimitive()) { + if (jsonObj.get("organization_user_uuid") != null && !jsonObj.get("organization_user_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_user_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_user_uuid").toString())); } - if ((jsonObj.get("organization_name") != null && !jsonObj.get("organization_name").isJsonNull()) && !jsonObj.get("organization_name").isJsonPrimitive()) { + if (jsonObj.get("organization_name") != null && !jsonObj.get("organization_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_name").toString())); } - // validate the optional field `organization_role` - if (jsonObj.get("organization_role") != null && !jsonObj.get("organization_role").isJsonNull()) { - OrganizationRoles.validateJsonElement(jsonObj.get("organization_role")); - } - if ((jsonObj.get("organization_uuid") != null && !jsonObj.get("organization_uuid").isJsonNull()) && !jsonObj.get("organization_uuid").isJsonPrimitive()) { + if (jsonObj.get("organization_uuid") != null && !jsonObj.get("organization_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_uuid").toString())); } - if ((jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonNull()) && !jsonObj.get("array_uuid").isJsonPrimitive()) { + if (jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_uuid").toString())); } - if ((jsonObj.get("group_uuid") != null && !jsonObj.get("group_uuid").isJsonNull()) && !jsonObj.get("group_uuid").isJsonPrimitive()) { + if (jsonObj.get("group_uuid") != null && !jsonObj.get("group_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `group_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group_uuid").toString())); } - if ((jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonNull()) && !jsonObj.get("array_name").isJsonPrimitive()) { + if (jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_name").toString())); } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + if (jsonObj.get("email") != null && !jsonObj.get("email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } - if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonPrimitive()) { + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - if ((jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull()) && !jsonObj.get("group_actions").isJsonPrimitive()) { + if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - InvitationStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("namespace_invited") != null && !jsonObj.get("namespace_invited").isJsonNull()) && !jsonObj.get("namespace_invited").isJsonPrimitive()) { + if (jsonObj.get("namespace_invited") != null && !jsonObj.get("namespace_invited").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_invited` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_invited").toString())); } } @@ -757,7 +807,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Invitation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -769,12 +819,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -783,9 +828,8 @@ else if (entry.getValue() instanceof Character) @Override public Invitation read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Invitation instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -799,10 +843,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -813,22 +855,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Invitation given an JSON string - * - * @param jsonString JSON string - * @return An instance of Invitation - * @throws IOException if the JSON string is invalid with respect to Invitation - */ + /** + * Create an instance of Invitation given an JSON string + * + * @param jsonString JSON string + * @return An instance of Invitation + * @throws IOException if the JSON string is invalid with respect to Invitation + */ public static Invitation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Invitation.class); } - /** - * Convert an instance of Invitation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Invitation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java index 015a7c2..ad001a6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +43,8 @@ /** * Encapsulates information regarding inviting people using email to share array, same permissions for all invitees */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Encapsulates information regarding inviting people using email to share array, same permissions for all invitees") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class InvitationArrayShareEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -62,58 +54,60 @@ public class InvitationArrayShareEmail { @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) private List inviteeEmail = new ArrayList<>(); - public InvitationArrayShareEmail() { + public InvitationArrayShareEmail() { } public InvitationArrayShareEmail actions(List actions) { + this.actions = actions; return this; } public InvitationArrayShareEmail addActionsItem(ArrayActions actionsItem) { - if (this.actions == null) { - this.actions = new ArrayList<>(); - } this.actions.add(actionsItem); return this; } - /** + /** * List of permitted actions * @return actions - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "[read, write]", required = true, value = "List of permitted actions") + public List getActions() { return actions; } + public void setActions(List actions) { this.actions = actions; } public InvitationArrayShareEmail inviteeEmail(List inviteeEmail) { + this.inviteeEmail = inviteeEmail; return this; } public InvitationArrayShareEmail addInviteeEmailItem(String inviteeEmailItem) { - if (this.inviteeEmail == null) { - this.inviteeEmail = new ArrayList<>(); - } this.inviteeEmail.add(inviteeEmailItem); return this; } - /** + /** * Get inviteeEmail * @return inviteeEmail - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public List getInviteeEmail() { return inviteeEmail; } + public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } @@ -128,10 +122,6 @@ public void setInviteeEmail(List inviteeEmail) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationArrayShareEmail instance itself */ public InvitationArrayShareEmail putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -143,8 +133,6 @@ public InvitationArrayShareEmail putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,9 +140,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -221,36 +206,33 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("invitee_email"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InvitationArrayShareEmail - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!InvitationArrayShareEmail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationArrayShareEmail + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationArrayShareEmail.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationArrayShareEmail is not found in the empty JSON string", InvitationArrayShareEmail.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationArrayShareEmail.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("actions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - // ensure the required json array is present - if (jsonObj.get("invitee_email") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("invitee_email").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("invitee_email") != null && !jsonObj.get("invitee_email").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `invitee_email` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email").toString())); } } @@ -271,7 +253,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationArrayShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -283,12 +265,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -297,9 +274,8 @@ else if (entry.getValue() instanceof Character) @Override public InvitationArrayShareEmail read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance InvitationArrayShareEmail instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -313,10 +289,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -327,22 +301,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationArrayShareEmail given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationArrayShareEmail - * @throws IOException if the JSON string is invalid with respect to InvitationArrayShareEmail - */ + /** + * Create an instance of InvitationArrayShareEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationArrayShareEmail + * @throws IOException if the JSON string is invalid with respect to InvitationArrayShareEmail + */ public static InvitationArrayShareEmail fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationArrayShareEmail.class); } - /** - * Convert an instance of InvitationArrayShareEmail to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationArrayShareEmail to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java index 1fa7f71..11db85c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java @@ -14,59 +14,51 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Invitation; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Object including invitations and metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including invitations and metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class InvitationData { public static final String SERIALIZED_NAME_INVITATIONS = "invitations"; @SerializedName(SERIALIZED_NAME_INVITATIONS) - private List invitations = new ArrayList<>(); + private List invitations = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public InvitationData() { + public InvitationData() { } public InvitationData invitations(List invitations) { + this.invitations = invitations; return this; } @@ -79,34 +71,41 @@ public InvitationData addInvitationsItem(Invitation invitationsItem) { return this; } - /** + /** * List of invitations * @return invitations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of invitations") + public List getInvitations() { return invitations; } + public void setInvitations(List invitations) { this.invitations = invitations; } public InvitationData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +120,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationData instance itself */ public InvitationData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +131,6 @@ public InvitationData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +202,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InvitationData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!InvitationData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationData is not found in the empty JSON string", InvitationData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("invitations") != null && !jsonObj.get("invitations").isJsonNull()) { - JsonArray jsonArrayinvitations = jsonObj.getAsJsonArray("invitations"); - if (jsonArrayinvitations != null) { - // ensure the json data is an array - if (!jsonObj.get("invitations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `invitations` to be an array in the JSON string but got `%s`", jsonObj.get("invitations").toString())); - } - - // validate the optional field `invitations` (array) - for (int i = 0; i < jsonArrayinvitations.size(); i++) { - Invitation.validateJsonElement(jsonArrayinvitations.get(i)); - }; + JsonArray jsonArrayinvitations = jsonObj.getAsJsonArray("invitations"); + if (jsonArrayinvitations != null) { + // ensure the json data is an array + if (!jsonObj.get("invitations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `invitations` to be an array in the JSON string but got `%s`", jsonObj.get("invitations").toString())); } + + // validate the optional field `invitations` (array) + for (int i = 0; i < jsonArrayinvitations.size(); i++) { + Invitation.validateJsonObject(jsonArrayinvitations.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +262,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +271,8 @@ else if (entry.getValue() instanceof Character) @Override public InvitationData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance InvitationData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +286,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +298,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationData given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationData - * @throws IOException if the JSON string is invalid with respect to InvitationData - */ + /** + * Create an instance of InvitationData given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationData + * @throws IOException if the JSON string is invalid with respect to InvitationData + */ public static InvitationData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationData.class); } - /** - * Convert an instance of InvitationData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java index 0ef38f3..380bb14 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,37 +43,39 @@ /** * Encapsulates information regarding the failed invitation recipients */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Encapsulates information regarding the failed invitation recipients") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class InvitationFailedRecipients { public static final String SERIALIZED_NAME_FAILED_RECIPIENTS = "failed_recipients"; @SerializedName(SERIALIZED_NAME_FAILED_RECIPIENTS) private List failedRecipients = new ArrayList<>(); - public InvitationFailedRecipients() { + public InvitationFailedRecipients() { } public InvitationFailedRecipients failedRecipients(List failedRecipients) { + this.failedRecipients = failedRecipients; return this; } public InvitationFailedRecipients addFailedRecipientsItem(String failedRecipientsItem) { - if (this.failedRecipients == null) { - this.failedRecipients = new ArrayList<>(); - } this.failedRecipients.add(failedRecipientsItem); return this; } - /** + /** * Get failedRecipients * @return failedRecipients - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public List getFailedRecipients() { return failedRecipients; } + public void setFailedRecipients(List failedRecipients) { this.failedRecipients = failedRecipients; } @@ -96,10 +90,6 @@ public void setFailedRecipients(List failedRecipients) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationFailedRecipients instance itself */ public InvitationFailedRecipients putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -111,8 +101,6 @@ public InvitationFailedRecipients putAdditionalProperty(String key, Object value /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -120,9 +108,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,30 +170,29 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("failed_recipients"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InvitationFailedRecipients - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!InvitationFailedRecipients.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationFailedRecipients + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationFailedRecipients.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationFailedRecipients is not found in the empty JSON string", InvitationFailedRecipients.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationFailedRecipients.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("failed_recipients") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("failed_recipients").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("failed_recipients") != null && !jsonObj.get("failed_recipients").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `failed_recipients` to be an array in the JSON string but got `%s`", jsonObj.get("failed_recipients").toString())); } } @@ -229,7 +213,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationFailedRecipients value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -241,12 +225,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -255,9 +234,8 @@ else if (entry.getValue() instanceof Character) @Override public InvitationFailedRecipients read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance InvitationFailedRecipients instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -271,10 +249,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -285,22 +261,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationFailedRecipients given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationFailedRecipients - * @throws IOException if the JSON string is invalid with respect to InvitationFailedRecipients - */ + /** + * Create an instance of InvitationFailedRecipients given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationFailedRecipients + * @throws IOException if the JSON string is invalid with respect to InvitationFailedRecipients + */ public static InvitationFailedRecipients fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationFailedRecipients.class); } - /** - * Convert an instance of InvitationFailedRecipients to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationFailedRecipients to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java index 8bfc10c..2c10881 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.GroupActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +43,8 @@ /** * Encapsulates information regarding inviting people using email to share group, same permissions for all invitees */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Encapsulates information regarding inviting people using email to share group, same permissions for all invitees") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class InvitationGroupShareEmail { public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) @@ -67,85 +58,88 @@ public class InvitationGroupShareEmail { @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL_OR_NAME) private List inviteeEmailOrName = new ArrayList<>(); - public InvitationGroupShareEmail() { + public InvitationGroupShareEmail() { } public InvitationGroupShareEmail arrayActions(List arrayActions) { + this.arrayActions = arrayActions; return this; } public InvitationGroupShareEmail addArrayActionsItem(ArrayActions arrayActionsItem) { - if (this.arrayActions == null) { - this.arrayActions = new ArrayList<>(); - } this.arrayActions.add(arrayActionsItem); return this; } - /** + /** * List of permitted array actions * @return arrayActions - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "[read, write]", required = true, value = "List of permitted array actions") + public List getArrayActions() { return arrayActions; } + public void setArrayActions(List arrayActions) { this.arrayActions = arrayActions; } public InvitationGroupShareEmail groupActions(List groupActions) { + this.groupActions = groupActions; return this; } public InvitationGroupShareEmail addGroupActionsItem(GroupActions groupActionsItem) { - if (this.groupActions == null) { - this.groupActions = new ArrayList<>(); - } this.groupActions.add(groupActionsItem); return this; } - /** + /** * List of permitted group actions * @return groupActions - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "[read, write]", required = true, value = "List of permitted group actions") + public List getGroupActions() { return groupActions; } + public void setGroupActions(List groupActions) { this.groupActions = groupActions; } public InvitationGroupShareEmail inviteeEmailOrName(List inviteeEmailOrName) { + this.inviteeEmailOrName = inviteeEmailOrName; return this; } public InvitationGroupShareEmail addInviteeEmailOrNameItem(String inviteeEmailOrNameItem) { - if (this.inviteeEmailOrName == null) { - this.inviteeEmailOrName = new ArrayList<>(); - } this.inviteeEmailOrName.add(inviteeEmailOrNameItem); return this; } - /** + /** * Get inviteeEmailOrName * @return inviteeEmailOrName - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public List getInviteeEmailOrName() { return inviteeEmailOrName; } + public void setInviteeEmailOrName(List inviteeEmailOrName) { this.inviteeEmailOrName = inviteeEmailOrName; } @@ -160,10 +154,6 @@ public void setInviteeEmailOrName(List inviteeEmailOrName) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationGroupShareEmail instance itself */ public InvitationGroupShareEmail putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -175,8 +165,6 @@ public InvitationGroupShareEmail putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -184,9 +172,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -257,42 +242,37 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("invitee_email_or_name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InvitationGroupShareEmail - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!InvitationGroupShareEmail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationGroupShareEmail + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationGroupShareEmail.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationGroupShareEmail is not found in the empty JSON string", InvitationGroupShareEmail.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationGroupShareEmail.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("array_actions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("array_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); } - // ensure the required json array is present - if (jsonObj.get("group_actions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("group_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // ensure the required json array is present - if (jsonObj.get("invitee_email_or_name") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("invitee_email_or_name").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("invitee_email_or_name") != null && !jsonObj.get("invitee_email_or_name").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `invitee_email_or_name` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email_or_name").toString())); } } @@ -313,7 +293,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationGroupShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -325,12 +305,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -339,9 +314,8 @@ else if (entry.getValue() instanceof Character) @Override public InvitationGroupShareEmail read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance InvitationGroupShareEmail instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -355,10 +329,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -369,22 +341,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationGroupShareEmail given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationGroupShareEmail - * @throws IOException if the JSON string is invalid with respect to InvitationGroupShareEmail - */ + /** + * Create an instance of InvitationGroupShareEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationGroupShareEmail + * @throws IOException if the JSON string is invalid with respect to InvitationGroupShareEmail + */ public static InvitationGroupShareEmail fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationGroupShareEmail.class); } - /** - * Convert an instance of InvitationGroupShareEmail to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationGroupShareEmail to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java index 3c33477..5ac2ae4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,11 +43,12 @@ /** * Encapsulates information regarding inviting people using email to join organization, same permissions for all invitees */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Encapsulates information regarding inviting people using email to join organization, same permissions for all invitees") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList<>(); + private List actions = null; public static final String SERIALIZED_NAME_ORGANIZATION_ROLE = "organization_role"; @SerializedName(SERIALIZED_NAME_ORGANIZATION_ROLE) @@ -67,10 +58,11 @@ public class InvitationOrganizationJoinEmail { @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) private List inviteeEmail = new ArrayList<>(); - public InvitationOrganizationJoinEmail() { + public InvitationOrganizationJoinEmail() { } public InvitationOrganizationJoinEmail actions(List actions) { + this.actions = actions; return this; } @@ -83,61 +75,69 @@ public InvitationOrganizationJoinEmail addActionsItem(NamespaceActions actionsIt return this; } - /** + /** * List of permitted actions * @return actions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[read, write]", value = "List of permitted actions") + public List getActions() { return actions; } + public void setActions(List actions) { this.actions = actions; } public InvitationOrganizationJoinEmail organizationRole(OrganizationRoles organizationRole) { + this.organizationRole = organizationRole; return this; } - /** + /** * Get organizationRole * @return organizationRole - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public OrganizationRoles getOrganizationRole() { return organizationRole; } + public void setOrganizationRole(OrganizationRoles organizationRole) { this.organizationRole = organizationRole; } public InvitationOrganizationJoinEmail inviteeEmail(List inviteeEmail) { + this.inviteeEmail = inviteeEmail; return this; } public InvitationOrganizationJoinEmail addInviteeEmailItem(String inviteeEmailItem) { - if (this.inviteeEmail == null) { - this.inviteeEmail = new ArrayList<>(); - } this.inviteeEmail.add(inviteeEmailItem); return this; } - /** + /** * Get inviteeEmail * @return inviteeEmail - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public List getInviteeEmail() { return inviteeEmail; } + public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } @@ -152,10 +152,6 @@ public void setInviteeEmail(List inviteeEmail) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationOrganizationJoinEmail instance itself */ public InvitationOrganizationJoinEmail putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -167,8 +163,6 @@ public InvitationOrganizationJoinEmail putAdditionalProperty(String key, Object /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -176,9 +170,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -248,36 +239,33 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("invitee_email"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InvitationOrganizationJoinEmail - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!InvitationOrganizationJoinEmail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationOrganizationJoinEmail + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationOrganizationJoinEmail.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationOrganizationJoinEmail is not found in the empty JSON string", InvitationOrganizationJoinEmail.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationOrganizationJoinEmail.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - // validate the required field `organization_role` - OrganizationRoles.validateJsonElement(jsonObj.get("organization_role")); - // ensure the required json array is present - if (jsonObj.get("invitee_email") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("invitee_email").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("invitee_email") != null && !jsonObj.get("invitee_email").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `invitee_email` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email").toString())); } } @@ -298,7 +286,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationOrganizationJoinEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -310,12 +298,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -324,9 +307,8 @@ else if (entry.getValue() instanceof Character) @Override public InvitationOrganizationJoinEmail read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance InvitationOrganizationJoinEmail instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -340,10 +322,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -354,22 +334,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationOrganizationJoinEmail given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationOrganizationJoinEmail - * @throws IOException if the JSON string is invalid with respect to InvitationOrganizationJoinEmail - */ + /** + * Create an instance of InvitationOrganizationJoinEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationOrganizationJoinEmail + * @throws IOException if the JSON string is invalid with respect to InvitationOrganizationJoinEmail + */ public static InvitationOrganizationJoinEmail fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationOrganizationJoinEmail.class); } - /** - * Convert an instance of InvitationOrganizationJoinEmail to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationOrganizationJoinEmail to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java index 45bff2f..5b5e98f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public InvitationStatus read(final JsonReader jsonReader) throws IOException { return InvitationStatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - InvitationStatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java index 697523d..c6c2072 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -73,10 +72,5 @@ public InvitationType read(final JsonReader jsonReader) throws IOException { return InvitationType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - InvitationType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java index 9acb257..5843e91 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java @@ -14,36 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ActivityEventType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +42,8 @@ /** * Information related to last access of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Information related to last access of an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class LastAccessedArray { public static final String SERIALIZED_NAME_ARRAY_ID = "array_id"; @SerializedName(SERIALIZED_NAME_ARRAY_ID) @@ -73,99 +65,119 @@ public class LastAccessedArray { @SerializedName(SERIALIZED_NAME_ACCESS_TYPE) private ActivityEventType accessType; - public LastAccessedArray() { + public LastAccessedArray() { } public LastAccessedArray arrayId(String arrayId) { + this.arrayId = arrayId; return this; } - /** + /** * unique ID of array * @return arrayId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of array") + public String getArrayId() { return arrayId; } + public void setArrayId(String arrayId) { this.arrayId = arrayId; } public LastAccessedArray arrayName(String arrayName) { + this.arrayName = arrayName; return this; } - /** + /** * name of the array * @return arrayName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "array1", value = "name of the array") + public String getArrayName() { return arrayName; } + public void setArrayName(String arrayName) { this.arrayName = arrayName; } public LastAccessedArray namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace of a user or organization * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "mockuser", value = "namespace of a user or organization") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public LastAccessedArray accessedTime(BigDecimal accessedTime) { + this.accessedTime = accessedTime; return this; } - /** + /** * timestamp (epoch milliseconds) array is last accessed * @return accessedTime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1540471791873", value = "timestamp (epoch milliseconds) array is last accessed") + public BigDecimal getAccessedTime() { return accessedTime; } + public void setAccessedTime(BigDecimal accessedTime) { this.accessedTime = accessedTime; } public LastAccessedArray accessType(ActivityEventType accessType) { + this.accessType = accessType; return this; } - /** + /** * Get accessType * @return accessType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ActivityEventType getAccessType() { return accessType; } + public void setAccessType(ActivityEventType accessType) { this.accessType = accessType; } @@ -180,10 +192,6 @@ public void setAccessType(ActivityEventType accessType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LastAccessedArray instance itself */ public LastAccessedArray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -195,8 +203,6 @@ public LastAccessedArray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -204,9 +210,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -280,32 +283,29 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LastAccessedArray - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LastAccessedArray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LastAccessedArray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LastAccessedArray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in LastAccessedArray is not found in the empty JSON string", LastAccessedArray.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("array_id") != null && !jsonObj.get("array_id").isJsonNull()) && !jsonObj.get("array_id").isJsonPrimitive()) { + if (jsonObj.get("array_id") != null && !jsonObj.get("array_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_id").toString())); } - if ((jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonNull()) && !jsonObj.get("array_name").isJsonPrimitive()) { + if (jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_name").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - // validate the optional field `access_type` - if (jsonObj.get("access_type") != null && !jsonObj.get("access_type").isJsonNull()) { - ActivityEventType.validateJsonElement(jsonObj.get("access_type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -324,7 +324,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, LastAccessedArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -336,12 +336,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -350,9 +345,8 @@ else if (entry.getValue() instanceof Character) @Override public LastAccessedArray read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance LastAccessedArray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -366,10 +360,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -380,22 +372,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LastAccessedArray given an JSON string - * - * @param jsonString JSON string - * @return An instance of LastAccessedArray - * @throws IOException if the JSON string is invalid with respect to LastAccessedArray - */ + /** + * Create an instance of LastAccessedArray given an JSON string + * + * @param jsonString JSON string + * @return An instance of LastAccessedArray + * @throws IOException if the JSON string is invalid with respect to LastAccessedArray + */ public static LastAccessedArray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LastAccessedArray.class); } - /** - * Convert an instance of LastAccessedArray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LastAccessedArray to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java b/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java index 9faea4f..c19915c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -73,10 +72,5 @@ public Layout read(final JsonReader jsonReader) throws IOException { return Layout.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - Layout.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java index 061e96f..65e0882 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,29 +41,34 @@ /** * Request to load an array schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Request to load an array schema") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class LoadArraySchemaRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) private TileDBConfig config; - public LoadArraySchemaRequest() { + public LoadArraySchemaRequest() { } public LoadArraySchemaRequest config(TileDBConfig config) { + this.config = config; return this; } - /** + /** * Get config * @return config - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TileDBConfig getConfig() { return config; } + public void setConfig(TileDBConfig config) { this.config = config; } @@ -87,10 +83,6 @@ public void setConfig(TileDBConfig config) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadArraySchemaRequest instance itself */ public LoadArraySchemaRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -102,8 +94,6 @@ public LoadArraySchemaRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -111,9 +101,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -175,22 +162,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LoadArraySchemaRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LoadArraySchemaRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadArraySchemaRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadArraySchemaRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaRequest is not found in the empty JSON string", LoadArraySchemaRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); + if (jsonObj.getAsJsonObject("config") != null) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); } } @@ -210,7 +198,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, LoadArraySchemaRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -222,12 +210,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -236,9 +219,8 @@ else if (entry.getValue() instanceof Character) @Override public LoadArraySchemaRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance LoadArraySchemaRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -252,10 +234,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -266,22 +246,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LoadArraySchemaRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of LoadArraySchemaRequest - * @throws IOException if the JSON string is invalid with respect to LoadArraySchemaRequest - */ + /** + * Create an instance of LoadArraySchemaRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadArraySchemaRequest + * @throws IOException if the JSON string is invalid with respect to LoadArraySchemaRequest + */ public static LoadArraySchemaRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LoadArraySchemaRequest.class); } - /** - * Convert an instance of LoadArraySchemaRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LoadArraySchemaRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java index bb3786f..afb0fd9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java @@ -14,45 +14,35 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArraySchema; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; -import java.util.HashMap; import java.util.HashSet; -import java.util.List; -import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Contains the latest schema and all schemas for the opened array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Contains the latest schema and all schemas for the opened array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class LoadArraySchemaResponse { public static final String SERIALIZED_NAME_LATEST_ARRAY_SCHEMA = "latest_array_schema"; @SerializedName(SERIALIZED_NAME_LATEST_ARRAY_SCHEMA) @@ -60,31 +50,36 @@ public class LoadArraySchemaResponse { public static final String SERIALIZED_NAME_ALL_ARRAY_SCHEMAS = "all_array_schemas"; @SerializedName(SERIALIZED_NAME_ALL_ARRAY_SCHEMAS) - private Map allArraySchemas = new HashMap<>(); + private Map allArraySchemas = null; - public LoadArraySchemaResponse() { + public LoadArraySchemaResponse() { } public LoadArraySchemaResponse latestArraySchema(ArraySchema latestArraySchema) { + this.latestArraySchema = latestArraySchema; return this; } - /** + /** * Get latestArraySchema * @return latestArraySchema - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArraySchema getLatestArraySchema() { return latestArraySchema; } + public void setLatestArraySchema(ArraySchema latestArraySchema) { this.latestArraySchema = latestArraySchema; } public LoadArraySchemaResponse allArraySchemas(Map allArraySchemas) { + this.allArraySchemas = allArraySchemas; return this; } @@ -97,15 +92,18 @@ public LoadArraySchemaResponse putAllArraySchemasItem(String key, ArraySchema al return this; } - /** + /** * map of all array schemas * @return allArraySchemas - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "map of all array schemas") + public Map getAllArraySchemas() { return allArraySchemas; } + public void setAllArraySchemas(Map allArraySchemas) { this.allArraySchemas = allArraySchemas; } @@ -120,10 +118,6 @@ public void setAllArraySchemas(Map allArraySchemas) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadArraySchemaResponse instance itself */ public LoadArraySchemaResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -135,8 +129,6 @@ public LoadArraySchemaResponse putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -144,9 +136,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -211,22 +200,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LoadArraySchemaResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LoadArraySchemaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadArraySchemaResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadArraySchemaResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaResponse is not found in the empty JSON string", LoadArraySchemaResponse.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `latest_array_schema` - if (jsonObj.get("latest_array_schema") != null && !jsonObj.get("latest_array_schema").isJsonNull()) { - ArraySchema.validateJsonElement(jsonObj.get("latest_array_schema")); + if (jsonObj.getAsJsonObject("latest_array_schema") != null) { + ArraySchema.validateJsonObject(jsonObj.getAsJsonObject("latest_array_schema")); } } @@ -246,7 +236,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, LoadArraySchemaResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -258,12 +248,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -272,9 +257,8 @@ else if (entry.getValue() instanceof Character) @Override public LoadArraySchemaResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance LoadArraySchemaResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -288,10 +272,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -302,22 +284,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LoadArraySchemaResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of LoadArraySchemaResponse - * @throws IOException if the JSON string is invalid with respect to LoadArraySchemaResponse - */ + /** + * Create an instance of LoadArraySchemaResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadArraySchemaResponse + * @throws IOException if the JSON string is invalid with respect to LoadArraySchemaResponse + */ public static LoadArraySchemaResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LoadArraySchemaResponse.class); } - /** - * Convert an instance of LoadArraySchemaResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LoadArraySchemaResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java index 8ce920c..eb22023 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +43,8 @@ /** * Request to return enumerations for attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Request to return enumerations for attributes") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class LoadEnumerationsRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -60,31 +52,36 @@ public class LoadEnumerationsRequest { public static final String SERIALIZED_NAME_ENUMERATIONS = "enumerations"; @SerializedName(SERIALIZED_NAME_ENUMERATIONS) - private List enumerations = new ArrayList<>(); + private List enumerations = null; - public LoadEnumerationsRequest() { + public LoadEnumerationsRequest() { } public LoadEnumerationsRequest config(TileDBConfig config) { + this.config = config; return this; } - /** + /** * Get config * @return config - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TileDBConfig getConfig() { return config; } + public void setConfig(TileDBConfig config) { this.config = config; } public LoadEnumerationsRequest enumerations(List enumerations) { + this.enumerations = enumerations; return this; } @@ -97,15 +94,18 @@ public LoadEnumerationsRequest addEnumerationsItem(String enumerationsItem) { return this; } - /** + /** * Get enumerations * @return enumerations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getEnumerations() { return enumerations; } + public void setEnumerations(List enumerations) { this.enumerations = enumerations; } @@ -120,10 +120,6 @@ public void setEnumerations(List enumerations) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadEnumerationsRequest instance itself */ public LoadEnumerationsRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -135,8 +131,6 @@ public LoadEnumerationsRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -144,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -211,25 +202,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LoadEnumerationsRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LoadEnumerationsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadEnumerationsRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadEnumerationsRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsRequest is not found in the empty JSON string", LoadEnumerationsRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); + if (jsonObj.getAsJsonObject("config") != null) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); } - // ensure the optional json data is an array if present - if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull() && !jsonObj.get("enumerations").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); } } @@ -250,7 +242,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, LoadEnumerationsRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -262,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -276,9 +263,8 @@ else if (entry.getValue() instanceof Character) @Override public LoadEnumerationsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance LoadEnumerationsRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -292,10 +278,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -306,22 +290,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LoadEnumerationsRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of LoadEnumerationsRequest - * @throws IOException if the JSON string is invalid with respect to LoadEnumerationsRequest - */ + /** + * Create an instance of LoadEnumerationsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadEnumerationsRequest + * @throws IOException if the JSON string is invalid with respect to LoadEnumerationsRequest + */ public static LoadEnumerationsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LoadEnumerationsRequest.class); } - /** - * Convert an instance of LoadEnumerationsRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LoadEnumerationsRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java index 6ec4519..fece679 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java @@ -14,54 +14,47 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Enumeration; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Contains the enumerations of the array's attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Contains the enumerations of the array's attributes") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class LoadEnumerationsResponse { public static final String SERIALIZED_NAME_ENUMERATIONS = "enumerations"; @SerializedName(SERIALIZED_NAME_ENUMERATIONS) - private List enumerations = new ArrayList<>(); + private List enumerations = null; - public LoadEnumerationsResponse() { + public LoadEnumerationsResponse() { } public LoadEnumerationsResponse enumerations(List enumerations) { + this.enumerations = enumerations; return this; } @@ -74,15 +67,18 @@ public LoadEnumerationsResponse addEnumerationsItem(Enumeration enumerationsItem return this; } - /** + /** * Get enumerations * @return enumerations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getEnumerations() { return enumerations; } + public void setEnumerations(List enumerations) { this.enumerations = enumerations; } @@ -97,10 +93,6 @@ public void setEnumerations(List enumerations) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadEnumerationsResponse instance itself */ public LoadEnumerationsResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +104,6 @@ public LoadEnumerationsResponse putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +111,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +172,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LoadEnumerationsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LoadEnumerationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadEnumerationsResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadEnumerationsResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsResponse is not found in the empty JSON string", LoadEnumerationsResponse.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull()) { - JsonArray jsonArrayenumerations = jsonObj.getAsJsonArray("enumerations"); - if (jsonArrayenumerations != null) { - // ensure the json data is an array - if (!jsonObj.get("enumerations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); - } - - // validate the optional field `enumerations` (array) - for (int i = 0; i < jsonArrayenumerations.size(); i++) { - Enumeration.validateJsonElement(jsonArrayenumerations.get(i)); - }; + JsonArray jsonArrayenumerations = jsonObj.getAsJsonArray("enumerations"); + if (jsonArrayenumerations != null) { + // ensure the json data is an array + if (!jsonObj.get("enumerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); } + + // validate the optional field `enumerations` (array) + for (int i = 0; i < jsonArrayenumerations.size(); i++) { + Enumeration.validateJsonObject(jsonArrayenumerations.get(i).getAsJsonObject()); + }; } } @@ -230,7 +216,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, LoadEnumerationsResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +228,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +237,8 @@ else if (entry.getValue() instanceof Character) @Override public LoadEnumerationsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance LoadEnumerationsResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +252,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +264,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LoadEnumerationsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of LoadEnumerationsResponse - * @throws IOException if the JSON string is invalid with respect to LoadEnumerationsResponse - */ + /** + * Create an instance of LoadEnumerationsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadEnumerationsResponse + * @throws IOException if the JSON string is invalid with respect to LoadEnumerationsResponse + */ public static LoadEnumerationsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LoadEnumerationsResponse.class); } - /** - * Convert an instance of LoadEnumerationsResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LoadEnumerationsResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java index e74fc72..774f36a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * A user-favorite MLModel item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A user-favorite MLModel item") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class MLModelFavorite { public static final String SERIALIZED_NAME_MLMODEL_UUID = "mlmodel_uuid"; @SerializedName(SERIALIZED_NAME_MLMODEL_UUID) @@ -63,61 +56,73 @@ public class MLModelFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public MLModelFavorite() { + public MLModelFavorite() { } public MLModelFavorite mlmodelUuid(String mlmodelUuid) { + this.mlmodelUuid = mlmodelUuid; return this; } - /** + /** * unique UUID of the MLModel * @return mlmodelUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "unique UUID of the MLModel") + public String getMlmodelUuid() { return mlmodelUuid; } + public void setMlmodelUuid(String mlmodelUuid) { this.mlmodelUuid = mlmodelUuid; } public MLModelFavorite namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * the namespace of the MLModel * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the namespace of the MLModel") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public MLModelFavorite name(String name) { + this.name = name; return this; } - /** + /** * the name of the MLModel * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the MLModel") + public String getName() { return name; } + public void setName(String name) { this.name = name; } @@ -132,10 +137,6 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MLModelFavorite instance itself */ public MLModelFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public MLModelFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MLModelFavorite - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MLModelFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MLModelFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MLModelFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavorite is not found in the empty JSON string", MLModelFavorite.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("mlmodel_uuid") != null && !jsonObj.get("mlmodel_uuid").isJsonNull()) && !jsonObj.get("mlmodel_uuid").isJsonPrimitive()) { + if (jsonObj.get("mlmodel_uuid") != null && !jsonObj.get("mlmodel_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mlmodel_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mlmodel_uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MLModelFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public MLModelFavorite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance MLModelFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MLModelFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of MLModelFavorite - * @throws IOException if the JSON string is invalid with respect to MLModelFavorite - */ + /** + * Create an instance of MLModelFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of MLModelFavorite + * @throws IOException if the JSON string is invalid with respect to MLModelFavorite + */ public static MLModelFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MLModelFavorite.class); } - /** - * Convert an instance of MLModelFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MLModelFavorite to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java index bb15bda..9c0368c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Object including MLModel favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including MLModel favorites and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class MLModelFavoritesData { public static final String SERIALIZED_NAME_MLMODELS = "mlmodels"; @SerializedName(SERIALIZED_NAME_MLMODELS) - private List mlmodels = new ArrayList<>(); + private List mlmodels = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public MLModelFavoritesData() { + public MLModelFavoritesData() { } public MLModelFavoritesData mlmodels(List mlmodels) { + this.mlmodels = mlmodels; return this; } @@ -79,34 +72,41 @@ public MLModelFavoritesData addMlmodelsItem(ArrayInfo mlmodelsItem) { return this; } - /** + /** * List of MLModel infos * @return mlmodels - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of MLModel infos") + public List getMlmodels() { return mlmodels; } + public void setMlmodels(List mlmodels) { this.mlmodels = mlmodels; } public MLModelFavoritesData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MLModelFavoritesData instance itself */ public MLModelFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public MLModelFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MLModelFavoritesData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MLModelFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MLModelFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MLModelFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavoritesData is not found in the empty JSON string", MLModelFavoritesData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("mlmodels") != null && !jsonObj.get("mlmodels").isJsonNull()) { - JsonArray jsonArraymlmodels = jsonObj.getAsJsonArray("mlmodels"); - if (jsonArraymlmodels != null) { - // ensure the json data is an array - if (!jsonObj.get("mlmodels").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `mlmodels` to be an array in the JSON string but got `%s`", jsonObj.get("mlmodels").toString())); - } - - // validate the optional field `mlmodels` (array) - for (int i = 0; i < jsonArraymlmodels.size(); i++) { - ArrayInfo.validateJsonElement(jsonArraymlmodels.get(i)); - }; + JsonArray jsonArraymlmodels = jsonObj.getAsJsonArray("mlmodels"); + if (jsonArraymlmodels != null) { + // ensure the json data is an array + if (!jsonObj.get("mlmodels").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mlmodels` to be an array in the JSON string but got `%s`", jsonObj.get("mlmodels").toString())); } + + // validate the optional field `mlmodels` (array) + for (int i = 0; i < jsonArraymlmodels.size(); i++) { + ArrayInfo.validateJsonObject(jsonArraymlmodels.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MLModelFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public MLModelFavoritesData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance MLModelFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MLModelFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of MLModelFavoritesData - * @throws IOException if the JSON string is invalid with respect to MLModelFavoritesData - */ + /** + * Create an instance of MLModelFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of MLModelFavoritesData + * @throws IOException if the JSON string is invalid with respect to MLModelFavoritesData + */ public static MLModelFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MLModelFavoritesData.class); } - /** - * Convert an instance of MLModelFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MLModelFavoritesData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java index 440be04..505df72 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AttributeBufferSize; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,16 +44,18 @@ /** * a list of max buffer sizes, one per attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "a list of max buffer sizes, one per attribute") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class MaxBufferSizes { public static final String SERIALIZED_NAME_MAX_BUFFER_SIZES = "maxBufferSizes"; @SerializedName(SERIALIZED_NAME_MAX_BUFFER_SIZES) - private List maxBufferSizes = new ArrayList<>(); + private List maxBufferSizes = null; - public MaxBufferSizes() { + public MaxBufferSizes() { } public MaxBufferSizes maxBufferSizes(List maxBufferSizes) { + this.maxBufferSizes = maxBufferSizes; return this; } @@ -74,15 +68,18 @@ public MaxBufferSizes addMaxBufferSizesItem(AttributeBufferSize maxBufferSizesIt return this; } - /** + /** * Get maxBufferSizes * @return maxBufferSizes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getMaxBufferSizes() { return maxBufferSizes; } + public void setMaxBufferSizes(List maxBufferSizes) { this.maxBufferSizes = maxBufferSizes; } @@ -97,10 +94,6 @@ public void setMaxBufferSizes(List maxBufferSizes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MaxBufferSizes instance itself */ public MaxBufferSizes putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +105,6 @@ public MaxBufferSizes putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +112,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +173,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MaxBufferSizes - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MaxBufferSizes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MaxBufferSizes + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MaxBufferSizes.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in MaxBufferSizes is not found in the empty JSON string", MaxBufferSizes.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("maxBufferSizes") != null && !jsonObj.get("maxBufferSizes").isJsonNull()) { - JsonArray jsonArraymaxBufferSizes = jsonObj.getAsJsonArray("maxBufferSizes"); - if (jsonArraymaxBufferSizes != null) { - // ensure the json data is an array - if (!jsonObj.get("maxBufferSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `maxBufferSizes` to be an array in the JSON string but got `%s`", jsonObj.get("maxBufferSizes").toString())); - } - - // validate the optional field `maxBufferSizes` (array) - for (int i = 0; i < jsonArraymaxBufferSizes.size(); i++) { - AttributeBufferSize.validateJsonElement(jsonArraymaxBufferSizes.get(i)); - }; + JsonArray jsonArraymaxBufferSizes = jsonObj.getAsJsonArray("maxBufferSizes"); + if (jsonArraymaxBufferSizes != null) { + // ensure the json data is an array + if (!jsonObj.get("maxBufferSizes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `maxBufferSizes` to be an array in the JSON string but got `%s`", jsonObj.get("maxBufferSizes").toString())); } + + // validate the optional field `maxBufferSizes` (array) + for (int i = 0; i < jsonArraymaxBufferSizes.size(); i++) { + AttributeBufferSize.validateJsonObject(jsonArraymaxBufferSizes.get(i).getAsJsonObject()); + }; } } @@ -230,7 +217,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MaxBufferSizes value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +238,8 @@ else if (entry.getValue() instanceof Character) @Override public MaxBufferSizes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance MaxBufferSizes instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +253,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +265,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MaxBufferSizes given an JSON string - * - * @param jsonString JSON string - * @return An instance of MaxBufferSizes - * @throws IOException if the JSON string is invalid with respect to MaxBufferSizes - */ + /** + * Create an instance of MaxBufferSizes given an JSON string + * + * @param jsonString JSON string + * @return An instance of MaxBufferSizes + * @throws IOException if the JSON string is invalid with respect to MaxBufferSizes + */ public static MaxBufferSizes fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MaxBufferSizes.class); } - /** - * Convert an instance of MaxBufferSizes to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MaxBufferSizes to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java index beda1db..e28fb01 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java @@ -14,54 +14,47 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * The user's TileDB metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The user's TileDB metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class MetadataStringified { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = new ArrayList<>(); + private List entries = null; - public MetadataStringified() { + public MetadataStringified() { } public MetadataStringified entries(List entries) { + this.entries = entries; return this; } @@ -74,15 +67,18 @@ public MetadataStringified addEntriesItem(MetadataStringifiedEntry entriesItem) return this; } - /** + /** * List of metadata entries * @return entries - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of metadata entries") + public List getEntries() { return entries; } + public void setEntries(List entries) { this.entries = entries; } @@ -97,10 +93,6 @@ public void setEntries(List entries) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MetadataStringified instance itself */ public MetadataStringified putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +104,6 @@ public MetadataStringified putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +111,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +172,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MetadataStringified - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MetadataStringified.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MetadataStringified + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MetadataStringified.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringified is not found in the empty JSON string", MetadataStringified.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - MetadataStringifiedEntry.validateJsonElement(jsonArrayentries.get(i)); - }; + JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); + if (jsonArrayentries != null) { + // ensure the json data is an array + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + MetadataStringifiedEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; } } @@ -230,7 +216,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MetadataStringified value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +228,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +237,8 @@ else if (entry.getValue() instanceof Character) @Override public MetadataStringified read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance MetadataStringified instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +252,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +264,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MetadataStringified given an JSON string - * - * @param jsonString JSON string - * @return An instance of MetadataStringified - * @throws IOException if the JSON string is invalid with respect to MetadataStringified - */ + /** + * Create an instance of MetadataStringified given an JSON string + * + * @param jsonString JSON string + * @return An instance of MetadataStringified + * @throws IOException if the JSON string is invalid with respect to MetadataStringified + */ public static MetadataStringified fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MetadataStringified.class); } - /** - * Convert an instance of MetadataStringified to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MetadataStringified to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java index c7e1a98..f77ce7b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * key/value pair representing an asset metadata map entry */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "key/value pair representing an asset metadata map entry") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class MetadataStringifiedEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -63,61 +56,73 @@ public class MetadataStringifiedEntry { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public MetadataStringifiedEntry() { + public MetadataStringifiedEntry() { } public MetadataStringifiedEntry key(String key) { + this.key = key; return this; } - /** + /** * The metadata key * @return key - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The metadata key") + public String getKey() { return key; } + public void setKey(String key) { this.key = key; } public MetadataStringifiedEntry value(String value) { + this.value = value; return this; } - /** + /** * The metadata value * @return value - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The metadata value") + public String getValue() { return value; } + public void setValue(String value) { this.value = value; } public MetadataStringifiedEntry type(String type) { + this.type = type; return this; } - /** + /** * The metadata type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "array_metadata", value = "The metadata type") + public String getType() { return type; } + public void setType(String type) { this.type = type; } @@ -132,10 +137,6 @@ public void setType(String type) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MetadataStringifiedEntry instance itself */ public MetadataStringifiedEntry putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public MetadataStringifiedEntry putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MetadataStringifiedEntry - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MetadataStringifiedEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MetadataStringifiedEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MetadataStringifiedEntry.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringifiedEntry is not found in the empty JSON string", MetadataStringifiedEntry.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MetadataStringifiedEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public MetadataStringifiedEntry read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance MetadataStringifiedEntry instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MetadataStringifiedEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of MetadataStringifiedEntry - * @throws IOException if the JSON string is invalid with respect to MetadataStringifiedEntry - */ + /** + * Create an instance of MetadataStringifiedEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of MetadataStringifiedEntry + * @throws IOException if the JSON string is invalid with respect to MetadataStringifiedEntry + */ public static MetadataStringifiedEntry fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MetadataStringifiedEntry.class); } - /** - * Convert an instance of MetadataStringifiedEntry to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MetadataStringifiedEntry to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java index 81e3ce7..7fd1c5b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java @@ -14,51 +14,39 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.QueryRanges; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.TGUDFArgument; -import io.tiledb.cloud.rest_api.model.UDFArrayDetails; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import io.tiledb.cloud.rest_api.model.UDFSubarray; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * User-defined function */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "User-defined function") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class MultiArrayUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -106,11 +94,11 @@ public class MultiArrayUDF { public static final String SERIALIZED_NAME_ARGUMENTS_JSON = "arguments_json"; @SerializedName(SERIALIZED_NAME_ARGUMENTS_JSON) - private List argumentsJson; + private List argumentsJson = null; public static final String SERIALIZED_NAME_STORED_PARAM_UUIDS = "stored_param_uuids"; @SerializedName(SERIALIZED_NAME_STORED_PARAM_UUIDS) - private List storedParamUuids = new ArrayList<>(); + private List storedParamUuids = null; public static final String SERIALIZED_NAME_STORE_RESULTS = "store_results"; @SerializedName(SERIALIZED_NAME_STORE_RESULTS) @@ -130,11 +118,11 @@ public class MultiArrayUDF { public static final String SERIALIZED_NAME_BUFFERS = "buffers"; @SerializedName(SERIALIZED_NAME_BUFFERS) - private List buffers = new ArrayList<>(); + private List buffers = null; public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) - private List arrays = new ArrayList<>(); + private List arrays = null; public static final String SERIALIZED_NAME_TIMEOUT = "timeout"; @SerializedName(SERIALIZED_NAME_TIMEOUT) @@ -148,219 +136,264 @@ public class MultiArrayUDF { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public MultiArrayUDF() { + public MultiArrayUDF() { } public MultiArrayUDF udfInfoName(String udfInfoName) { + this.udfInfoName = udfInfoName; return this; } - /** + /** * name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec * @return udfInfoName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "TileDB-Inc/quickstart_median", value = "name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec") + public String getUdfInfoName() { return udfInfoName; } + public void setUdfInfoName(String udfInfoName) { this.udfInfoName = udfInfoName; } public MultiArrayUDF language(UDFLanguage language) { + this.language = language; return this; } - /** + /** * Get language * @return language - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFLanguage getLanguage() { return language; } + public void setLanguage(UDFLanguage language) { this.language = language; } public MultiArrayUDF version(String version) { + this.version = version; return this; } - /** + /** * Type-specific version * @return version - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Type-specific version") + public String getVersion() { return version; } + public void setVersion(String version) { this.version = version; } public MultiArrayUDF imageName(String imageName) { + this.imageName = imageName; return this; } - /** + /** * Docker image name to use for UDF * @return imageName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Docker image name to use for UDF") + public String getImageName() { return imageName; } + public void setImageName(String imageName) { this.imageName = imageName; } public MultiArrayUDF accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * The name of the access credentials to use. if unset, no credentials will be configured in the environment. * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the access credentials to use. if unset, no credentials will be configured in the environment.") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public MultiArrayUDF resourceClass(String resourceClass) { + this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "standard", value = "The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. ") + public String getResourceClass() { return resourceClass; } + public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public MultiArrayUDF exec(String exec) { + this.exec = exec; return this; } - /** + /** * Type-specific executable text * @return exec - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Type-specific executable text") + public String getExec() { return exec; } + public void setExec(String exec) { this.exec = exec; } public MultiArrayUDF execRaw(String execRaw) { + this.execRaw = execRaw; return this; } - /** + /** * optional raw text to store of serialized function, used for showing in UI * @return execRaw - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional raw text to store of serialized function, used for showing in UI") + public String getExecRaw() { return execRaw; } + public void setExecRaw(String execRaw) { this.execRaw = execRaw; } public MultiArrayUDF resultFormat(ResultFormat resultFormat) { + this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ResultFormat getResultFormat() { return resultFormat; } + public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public MultiArrayUDF taskName(String taskName) { + this.taskName = taskName; return this; } - /** + /** * name of task, optional * @return taskName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of task, optional") + public String getTaskName() { return taskName; } + public void setTaskName(String taskName) { this.taskName = taskName; } public MultiArrayUDF argument(String argument) { + this.argument = argument; return this; } - /** + /** * Deprecated: Prefer to use `argument_json` instead. Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format * @return argument - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Deprecated: Prefer to use `argument_json` instead. Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format ") + public String getArgument() { return argument; } + public void setArgument(String argument) { this.argument = argument; } public MultiArrayUDF argumentsJson(List argumentsJson) { + this.argumentsJson = argumentsJson; return this; } @@ -373,21 +406,25 @@ public MultiArrayUDF addArgumentsJsonItem(TGUDFArgument argumentsJsonItem) { return this; } - /** + /** * A series of key-value pairs to be passed as arguments into the UDF. See `TGUDFNodeData.arguments` for more information. If this format is used to pass arguments, arrays will be passed into the UDF as specified by the Node placeholders passed in here, rather than the classic method of putting all array arguments in the first parameter. Either this or `argument` should be set. * @return argumentsJson - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A series of key-value pairs to be passed as arguments into the UDF. See `TGUDFNodeData.arguments` for more information. If this format is used to pass arguments, arrays will be passed into the UDF as specified by the Node placeholders passed in here, rather than the classic method of putting all array arguments in the first parameter. Either this or `argument` should be set. ") + public List getArgumentsJson() { return argumentsJson; } + public void setArgumentsJson(List argumentsJson) { this.argumentsJson = argumentsJson; } public MultiArrayUDF storedParamUuids(List storedParamUuids) { + this.storedParamUuids = storedParamUuids; return this; } @@ -400,97 +437,117 @@ public MultiArrayUDF addStoredParamUuidsItem(String storedParamUuidsItem) { return this; } - /** + /** * The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}. * @return storedParamUuids - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}.") + public List getStoredParamUuids() { return storedParamUuids; } + public void setStoredParamUuids(List storedParamUuids) { this.storedParamUuids = storedParamUuids; } public MultiArrayUDF storeResults(Boolean storeResults) { + this.storeResults = storeResults; return this; } - /** + /** * store results for later retrieval * @return storeResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "store results for later retrieval") + public Boolean getStoreResults() { return storeResults; } + public void setStoreResults(Boolean storeResults) { this.storeResults = storeResults; } public MultiArrayUDF dontDownloadResults(Boolean dontDownloadResults) { + this.dontDownloadResults = dontDownloadResults; return this; } - /** + /** * Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\"). * @return dontDownloadResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\").") + public Boolean getDontDownloadResults() { return dontDownloadResults; } + public void setDontDownloadResults(Boolean dontDownloadResults) { this.dontDownloadResults = dontDownloadResults; } public MultiArrayUDF ranges(QueryRanges ranges) { + this.ranges = ranges; return this; } - /** + /** * Get ranges * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public QueryRanges getRanges() { return ranges; } + public void setRanges(QueryRanges ranges) { this.ranges = ranges; } public MultiArrayUDF subarray(UDFSubarray subarray) { + this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFSubarray getSubarray() { return subarray; } + public void setSubarray(UDFSubarray subarray) { this.subarray = subarray; } public MultiArrayUDF buffers(List buffers) { + this.buffers = buffers; return this; } @@ -503,21 +560,25 @@ public MultiArrayUDF addBuffersItem(String buffersItem) { return this; } - /** + /** * List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`. * @return buffers - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`.") + public List getBuffers() { return buffers; } + public void setBuffers(List buffers) { this.buffers = buffers; } public MultiArrayUDF arrays(List arrays) { + this.arrays = arrays; return this; } @@ -530,72 +591,87 @@ public MultiArrayUDF addArraysItem(UDFArrayDetails arraysItem) { return this; } - /** + /** * Array ranges/buffer into to run UDF on * @return arrays - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Array ranges/buffer into to run UDF on") + public List getArrays() { return arrays; } + public void setArrays(List arrays) { this.arrays = arrays; } public MultiArrayUDF timeout(Integer timeout) { + this.timeout = timeout; return this; } - /** + /** * UDF-type timeout in seconds (default: 900) * @return timeout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "UDF-type timeout in seconds (default: 900)") + public Integer getTimeout() { return timeout; } + public void setTimeout(Integer timeout) { this.timeout = timeout; } public MultiArrayUDF taskGraphUuid(String taskGraphUuid) { + this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") + public String getTaskGraphUuid() { return taskGraphUuid; } + public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public MultiArrayUDF clientNodeUuid(String clientNodeUuid) { + this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") + public String getClientNodeUuid() { return clientNodeUuid; } + public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } @@ -610,10 +686,6 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MultiArrayUDF instance itself */ public MultiArrayUDF putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -625,8 +697,6 @@ public MultiArrayUDF putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -634,9 +704,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -772,102 +839,91 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MultiArrayUDF - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MultiArrayUDF.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MultiArrayUDF + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MultiArrayUDF.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in MultiArrayUDF is not found in the empty JSON string", MultiArrayUDF.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { + if (jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); } - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } - if ((jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonNull()) && !jsonObj.get("image_name").isJsonPrimitive()) { + if (jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `image_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image_name").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - if ((jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonNull()) && !jsonObj.get("resource_class").isJsonPrimitive()) { + if (jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `resource_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_class").toString())); } - if ((jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) && !jsonObj.get("exec").isJsonPrimitive()) { + if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec").toString())); } - if ((jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonNull()) && !jsonObj.get("exec_raw").isJsonPrimitive()) { + if (jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec_raw` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec_raw").toString())); } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonNull()) && !jsonObj.get("task_name").isJsonPrimitive()) { + if (jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_name").toString())); } - if ((jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonNull()) && !jsonObj.get("argument").isJsonPrimitive()) { + if (jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `argument` to be a primitive type in the JSON string but got `%s`", jsonObj.get("argument").toString())); } - if (jsonObj.get("arguments_json") != null && !jsonObj.get("arguments_json").isJsonNull()) { - JsonArray jsonArrayargumentsJson = jsonObj.getAsJsonArray("arguments_json"); - if (jsonArrayargumentsJson != null) { - // ensure the json data is an array - if (!jsonObj.get("arguments_json").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arguments_json` to be an array in the JSON string but got `%s`", jsonObj.get("arguments_json").toString())); - } - - // validate the optional field `arguments_json` (array) - for (int i = 0; i < jsonArrayargumentsJson.size(); i++) { - TGUDFArgument.validateJsonElement(jsonArrayargumentsJson.get(i)); - }; + JsonArray jsonArrayargumentsJson = jsonObj.getAsJsonArray("arguments_json"); + if (jsonArrayargumentsJson != null) { + // ensure the json data is an array + if (!jsonObj.get("arguments_json").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arguments_json` to be an array in the JSON string but got `%s`", jsonObj.get("arguments_json").toString())); } + + // validate the optional field `arguments_json` (array) + for (int i = 0; i < jsonArrayargumentsJson.size(); i++) { + TGUDFArgument.validateJsonObject(jsonArrayargumentsJson.get(i).getAsJsonObject()); + }; } - // ensure the optional json data is an array if present - if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull() && !jsonObj.get("stored_param_uuids").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `stored_param_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("stored_param_uuids").toString())); } // validate the optional field `ranges` - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - QueryRanges.validateJsonElement(jsonObj.get("ranges")); + if (jsonObj.getAsJsonObject("ranges") != null) { + QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); } // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - UDFSubarray.validateJsonElement(jsonObj.get("subarray")); + if (jsonObj.getAsJsonObject("subarray") != null) { + UDFSubarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } - // ensure the optional json data is an array if present - if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull() && !jsonObj.get("buffers").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); } - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); - } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - UDFArrayDetails.validateJsonElement(jsonArrayarrays.get(i)); - }; + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + UDFArrayDetails.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); + }; } - if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); } - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); } } @@ -888,7 +944,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MultiArrayUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -900,12 +956,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -914,9 +965,8 @@ else if (entry.getValue() instanceof Character) @Override public MultiArrayUDF read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance MultiArrayUDF instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -930,10 +980,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -944,22 +992,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MultiArrayUDF given an JSON string - * - * @param jsonString JSON string - * @return An instance of MultiArrayUDF - * @throws IOException if the JSON string is invalid with respect to MultiArrayUDF - */ + /** + * Create an instance of MultiArrayUDF given an JSON string + * + * @param jsonString JSON string + * @return An instance of MultiArrayUDF + * @throws IOException if the JSON string is invalid with respect to MultiArrayUDF + */ public static MultiArrayUDF fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MultiArrayUDF.class); } - /** - * Convert an instance of MultiArrayUDF to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MultiArrayUDF to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java index 91bc16d..45f9906 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -89,10 +88,5 @@ public NamespaceActions read(final JsonReader jsonReader) throws IOException { return NamespaceActions.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - NamespaceActions.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java b/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java index d99b487..7cb92d4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainArray; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * object representing a non-empty domain */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "object representing a non-empty domain") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class NonEmptyDomain { public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) @@ -60,42 +52,50 @@ public class NonEmptyDomain { @SerializedName(SERIALIZED_NAME_IS_EMPTY) private Boolean isEmpty; - public NonEmptyDomain() { + public NonEmptyDomain() { } public NonEmptyDomain nonEmptyDomain(DomainArray nonEmptyDomain) { + this.nonEmptyDomain = nonEmptyDomain; return this; } - /** + /** * Get nonEmptyDomain * @return nonEmptyDomain - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public DomainArray getNonEmptyDomain() { return nonEmptyDomain; } + public void setNonEmptyDomain(DomainArray nonEmptyDomain) { this.nonEmptyDomain = nonEmptyDomain; } public NonEmptyDomain isEmpty(Boolean isEmpty) { + this.isEmpty = isEmpty; return this; } - /** + /** * Is non-empty domain really empty? * @return isEmpty - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Is non-empty domain really empty?") + public Boolean getIsEmpty() { return isEmpty; } + public void setIsEmpty(Boolean isEmpty) { this.isEmpty = isEmpty; } @@ -110,10 +110,6 @@ public void setIsEmpty(Boolean isEmpty) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NonEmptyDomain instance itself */ public NonEmptyDomain putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -125,8 +121,6 @@ public NonEmptyDomain putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -134,9 +128,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -203,28 +194,31 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("isEmpty"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NonEmptyDomain - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NonEmptyDomain.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NonEmptyDomain + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NonEmptyDomain.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in NonEmptyDomain is not found in the empty JSON string", NonEmptyDomain.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NonEmptyDomain.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `nonEmptyDomain` - DomainArray.validateJsonElement(jsonObj.get("nonEmptyDomain")); + // validate the optional field `nonEmptyDomain` + if (jsonObj.getAsJsonObject("nonEmptyDomain") != null) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -243,7 +237,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NonEmptyDomain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -255,12 +249,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -269,9 +258,8 @@ else if (entry.getValue() instanceof Character) @Override public NonEmptyDomain read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance NonEmptyDomain instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -285,10 +273,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -299,22 +285,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NonEmptyDomain given an JSON string - * - * @param jsonString JSON string - * @return An instance of NonEmptyDomain - * @throws IOException if the JSON string is invalid with respect to NonEmptyDomain - */ + /** + * Create an instance of NonEmptyDomain given an JSON string + * + * @param jsonString JSON string + * @return An instance of NonEmptyDomain + * @throws IOException if the JSON string is invalid with respect to NonEmptyDomain + */ public static NonEmptyDomain fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NonEmptyDomain.class); } - /** - * Convert an instance of NonEmptyDomain to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NonEmptyDomain to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java index 89e1edc..239e3c4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Copied notebook uri and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Copied notebook uri and information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class NotebookCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -67,80 +60,96 @@ public class NotebookCopied { @SerializedName(SERIALIZED_NAME_ID) private String id; - public NotebookCopied() { + public NotebookCopied() { } public NotebookCopied outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB Notebook * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB Notebook") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public NotebookCopied name(String name) { + this.name = name; return this; } - /** + /** * name of the notebook created * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of the notebook created") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public NotebookCopied namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace copied to * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "namespace copied to") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public NotebookCopied id(String id) { + this.id = id; return this; } - /** + /** * unique ID of the copied notebook * @return id - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the copied notebook") + public String getId() { return id; } + public void setId(String id) { this.id = id; } @@ -155,10 +164,6 @@ public void setId(String id) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookCopied instance itself */ public NotebookCopied putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -170,8 +175,6 @@ public NotebookCopied putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -179,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,36 +253,37 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("id"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NotebookCopied - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NotebookCopied.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookCopied + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookCopied.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopied is not found in the empty JSON string", NotebookCopied.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NotebookCopied.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if (!jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } } @@ -303,7 +304,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -315,12 +316,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -329,9 +325,8 @@ else if (entry.getValue() instanceof Character) @Override public NotebookCopied read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance NotebookCopied instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -345,10 +340,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -359,22 +352,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookCopied given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookCopied - * @throws IOException if the JSON string is invalid with respect to NotebookCopied - */ + /** + * Create an instance of NotebookCopied given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookCopied + * @throws IOException if the JSON string is invalid with respect to NotebookCopied + */ public static NotebookCopied fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookCopied.class); } - /** - * Convert an instance of NotebookCopied to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookCopied to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java index 7eb2f72..193426b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Output information required to copy a notebook */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Output information required to copy a notebook") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class NotebookCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -63,61 +56,73 @@ public class NotebookCopy { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; - public NotebookCopy() { + public NotebookCopy() { } public NotebookCopy outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB File") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public NotebookCopy name(String name) { + this.name = name; return this; } - /** + /** * name to set for registered notebook * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name to set for registered notebook") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public NotebookCopy namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace to copy to * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "namespace to copy to") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -132,10 +137,6 @@ public void setNamespace(String namespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookCopy instance itself */ public NotebookCopy putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public NotebookCopy putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NotebookCopy - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NotebookCopy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookCopy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookCopy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopy is not found in the empty JSON string", NotebookCopy.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public NotebookCopy read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance NotebookCopy instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookCopy given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookCopy - * @throws IOException if the JSON string is invalid with respect to NotebookCopy - */ + /** + * Create an instance of NotebookCopy given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookCopy + * @throws IOException if the JSON string is invalid with respect to NotebookCopy + */ public static NotebookCopy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookCopy.class); } - /** - * Convert an instance of NotebookCopy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookCopy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java index 6f08563..d5c32a2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * A user-favorite notebook item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A user-favorite notebook item") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class NotebookFavorite { public static final String SERIALIZED_NAME_NOTEBOOK_UUID = "notebook_uuid"; @SerializedName(SERIALIZED_NAME_NOTEBOOK_UUID) @@ -63,61 +56,73 @@ public class NotebookFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public NotebookFavorite() { + public NotebookFavorite() { } public NotebookFavorite notebookUuid(String notebookUuid) { + this.notebookUuid = notebookUuid; return this; } - /** + /** * unique UUID of the notebook * @return notebookUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "unique UUID of the notebook") + public String getNotebookUuid() { return notebookUuid; } + public void setNotebookUuid(String notebookUuid) { this.notebookUuid = notebookUuid; } public NotebookFavorite namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * the namespace of the notebook * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the namespace of the notebook") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public NotebookFavorite name(String name) { + this.name = name; return this; } - /** + /** * the name of the notebook * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the notebook") + public String getName() { return name; } + public void setName(String name) { this.name = name; } @@ -132,10 +137,6 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookFavorite instance itself */ public NotebookFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public NotebookFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NotebookFavorite - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NotebookFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavorite is not found in the empty JSON string", NotebookFavorite.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("notebook_uuid") != null && !jsonObj.get("notebook_uuid").isJsonNull()) && !jsonObj.get("notebook_uuid").isJsonPrimitive()) { + if (jsonObj.get("notebook_uuid") != null && !jsonObj.get("notebook_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `notebook_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notebook_uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public NotebookFavorite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance NotebookFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookFavorite - * @throws IOException if the JSON string is invalid with respect to NotebookFavorite - */ + /** + * Create an instance of NotebookFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookFavorite + * @throws IOException if the JSON string is invalid with respect to NotebookFavorite + */ public static NotebookFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookFavorite.class); } - /** - * Convert an instance of NotebookFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookFavorite to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java index fe6fba2..119e0c7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Object including notebook favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including notebook favorites and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class NotebookFavoritesData { public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; @SerializedName(SERIALIZED_NAME_NOTEBOOKS) - private List notebooks = new ArrayList<>(); + private List notebooks = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public NotebookFavoritesData() { + public NotebookFavoritesData() { } public NotebookFavoritesData notebooks(List notebooks) { + this.notebooks = notebooks; return this; } @@ -79,34 +72,41 @@ public NotebookFavoritesData addNotebooksItem(ArrayInfo notebooksItem) { return this; } - /** + /** * List of notebook infos * @return notebooks - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of notebook infos") + public List getNotebooks() { return notebooks; } + public void setNotebooks(List notebooks) { this.notebooks = notebooks; } public NotebookFavoritesData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookFavoritesData instance itself */ public NotebookFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public NotebookFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NotebookFavoritesData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NotebookFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavoritesData is not found in the empty JSON string", NotebookFavoritesData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { - JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); - if (jsonArraynotebooks != null) { - // ensure the json data is an array - if (!jsonObj.get("notebooks").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notebooks` to be an array in the JSON string but got `%s`", jsonObj.get("notebooks").toString())); - } - - // validate the optional field `notebooks` (array) - for (int i = 0; i < jsonArraynotebooks.size(); i++) { - ArrayInfo.validateJsonElement(jsonArraynotebooks.get(i)); - }; + JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); + if (jsonArraynotebooks != null) { + // ensure the json data is an array + if (!jsonObj.get("notebooks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `notebooks` to be an array in the JSON string but got `%s`", jsonObj.get("notebooks").toString())); } + + // validate the optional field `notebooks` (array) + for (int i = 0; i < jsonArraynotebooks.size(); i++) { + ArrayInfo.validateJsonObject(jsonArraynotebooks.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public NotebookFavoritesData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance NotebookFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookFavoritesData - * @throws IOException if the JSON string is invalid with respect to NotebookFavoritesData - */ + /** + * Create an instance of NotebookFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookFavoritesData + * @throws IOException if the JSON string is invalid with respect to NotebookFavoritesData + */ public static NotebookFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookFavoritesData.class); } - /** - * Convert an instance of NotebookFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookFavoritesData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java index 9b2c461..b34b1c0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PodStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +43,8 @@ /** * Status details of a notebook server */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Status details of a notebook server") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class NotebookStatus { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -101,232 +94,280 @@ public class NotebookStatus { @SerializedName(SERIALIZED_NAME_POD_STATUS) private PodStatus podStatus; - public NotebookStatus() { + public NotebookStatus() { } public NotebookStatus namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace of notebook * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "namespace of notebook") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public NotebookStatus uptime(Integer uptime) { + this.uptime = uptime; return this; } - /** + /** * duration notebook has been running in seconds * @return uptime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "120", value = "duration notebook has been running in seconds") + public Integer getUptime() { return uptime; } + public void setUptime(Integer uptime) { this.uptime = uptime; } public NotebookStatus cpuUsage(Integer cpuUsage) { + this.cpuUsage = cpuUsage; return this; } - /** + /** * current cpu usage in millicpu * @return cpuUsage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "4000", value = "current cpu usage in millicpu") + public Integer getCpuUsage() { return cpuUsage; } + public void setCpuUsage(Integer cpuUsage) { this.cpuUsage = cpuUsage; } public NotebookStatus gpuUsage(Integer gpuUsage) { + this.gpuUsage = gpuUsage; return this; } - /** + /** * gpu usage in milligpu * @return gpuUsage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "4000", value = "gpu usage in milligpu") + public Integer getGpuUsage() { return gpuUsage; } + public void setGpuUsage(Integer gpuUsage) { this.gpuUsage = gpuUsage; } public NotebookStatus memoryUsage(Integer memoryUsage) { + this.memoryUsage = memoryUsage; return this; } - /** + /** * memory usage in bytes * @return memoryUsage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "memory usage in bytes") + public Integer getMemoryUsage() { return memoryUsage; } + public void setMemoryUsage(Integer memoryUsage) { this.memoryUsage = memoryUsage; } public NotebookStatus gpuLimit(Integer gpuLimit) { + this.gpuLimit = gpuLimit; return this; } - /** + /** * gpu limit in milligpu * @return gpuLimit - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "gpu limit in milligpu") + public Integer getGpuLimit() { return gpuLimit; } + public void setGpuLimit(Integer gpuLimit) { this.gpuLimit = gpuLimit; } public NotebookStatus memoryLimit(Integer memoryLimit) { + this.memoryLimit = memoryLimit; return this; } - /** + /** * memory allocated to notebook server in bytes * @return memoryLimit - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "memory allocated to notebook server in bytes") + public Integer getMemoryLimit() { return memoryLimit; } + public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } public NotebookStatus storageUsage(Integer storageUsage) { + this.storageUsage = storageUsage; return this; } - /** + /** * storage usage in bytes * @return storageUsage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "storage usage in bytes") + public Integer getStorageUsage() { return storageUsage; } + public void setStorageUsage(Integer storageUsage) { this.storageUsage = storageUsage; } public NotebookStatus storageLimit(Integer storageLimit) { + this.storageLimit = storageLimit; return this; } - /** + /** * storage allocated to notebook server in bytes * @return storageLimit - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "storage allocated to notebook server in bytes") + public Integer getStorageLimit() { return storageLimit; } + public void setStorageLimit(Integer storageLimit) { this.storageLimit = storageLimit; } public NotebookStatus cpuCount(Integer cpuCount) { + this.cpuCount = cpuCount; return this; } - /** + /** * millicpu allocated to notebook server * @return cpuCount - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "4000", value = "millicpu allocated to notebook server") + public Integer getCpuCount() { return cpuCount; } + public void setCpuCount(Integer cpuCount) { this.cpuCount = cpuCount; } public NotebookStatus cost(Double cost) { + this.cost = cost; return this; } - /** + /** * cost in USD for the current notebook session * @return cost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "0.27", value = "cost in USD for the current notebook session") + public Double getCost() { return cost; } + public void setCost(Double cost) { this.cost = cost; } public NotebookStatus podStatus(PodStatus podStatus) { + this.podStatus = podStatus; return this; } - /** + /** * Get podStatus * @return podStatus - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PodStatus getPodStatus() { return podStatus; } + public void setPodStatus(PodStatus podStatus) { this.podStatus = podStatus; } @@ -341,10 +382,6 @@ public void setPodStatus(PodStatus podStatus) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookStatus instance itself */ public NotebookStatus putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -356,8 +393,6 @@ public NotebookStatus putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -365,9 +400,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -473,26 +505,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NotebookStatus - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NotebookStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookStatus.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookStatus is not found in the empty JSON string", NotebookStatus.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - // validate the optional field `pod_status` - if (jsonObj.get("pod_status") != null && !jsonObj.get("pod_status").isJsonNull()) { - PodStatus.validateJsonElement(jsonObj.get("pod_status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -511,7 +540,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -523,12 +552,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -537,9 +561,8 @@ else if (entry.getValue() instanceof Character) @Override public NotebookStatus read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance NotebookStatus instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -553,10 +576,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -567,22 +588,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookStatus - * @throws IOException if the JSON string is invalid with respect to NotebookStatus - */ + /** + * Create an instance of NotebookStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookStatus + * @throws IOException if the JSON string is invalid with respect to NotebookStatus + */ public static NotebookStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookStatus.class); } - /** - * Convert an instance of NotebookStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java index d5a4402..ff0f0c8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java @@ -14,43 +14,33 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetLocations; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; -import io.tiledb.cloud.rest_api.model.OrganizationUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -58,7 +48,8 @@ /** * Organization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Organization") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Organization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -90,11 +81,11 @@ public class Organization { public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private List users = new ArrayList<>(); + private List users = null; public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = new ArrayList<>(); + private List allowedActions = null; public static final String SERIALIZED_NAME_NUM_OF_ARRAYS = "num_of_arrays"; @SerializedName(SERIALIZED_NAME_NUM_OF_ARRAYS) @@ -102,7 +93,7 @@ public class Organization { public static final String SERIALIZED_NAME_ENABLED_FEATURES = "enabled_features"; @SerializedName(SERIALIZED_NAME_ENABLED_FEATURES) - private List enabledFeatures = new ArrayList<>(); + private List enabledFeatures = null; public static final String SERIALIZED_NAME_UNPAID_SUBSCRIPTION = "unpaid_subscription"; @SerializedName(SERIALIZED_NAME_UNPAID_SUBSCRIPTION) @@ -128,9 +119,10 @@ public class Organization { @SerializedName(SERIALIZED_NAME_ASSUME_ROLE_ARN) private String assumeRoleArn; - public Organization() { + public Organization() { } + public Organization( List enabledFeatures, Boolean unpaidSubscription, @@ -143,139 +135,168 @@ public Organization( } public Organization id(String id) { + this.id = id; return this; } - /** + /** * unique ID of organization * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of organization") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public Organization role(OrganizationRoles role) { + this.role = role; return this; } - /** + /** * Get role * @return role - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public OrganizationRoles getRole() { return role; } + public void setRole(OrganizationRoles role) { this.role = role; } public Organization name(String name) { + this.name = name; return this; } - /** + /** * organization name must be unique * @return name - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "organization name must be unique") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public Organization createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } - /** + /** * Datetime organization was created in UTC * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime organization was created in UTC") + public OffsetDateTime getCreatedAt() { return createdAt; } + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } public Organization updatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; return this; } - /** + /** * Datetime organization was updated in UTC * @return updatedAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime organization was updated in UTC") + public OffsetDateTime getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } public Organization logo(String logo) { + this.logo = logo; return this; } - /** + /** * Organization logo * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Organization logo") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public Organization description(String description) { + this.description = description; return this; } - /** + /** * Organization description * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Organization description") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public Organization users(List users) { + this.users = users; return this; } @@ -288,21 +309,25 @@ public Organization addUsersItem(OrganizationUser usersItem) { return this; } - /** + /** * Get users * @return users - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getUsers() { return users; } + public void setUsers(List users) { this.users = users; } public Organization allowedActions(List allowedActions) { + this.allowedActions = allowedActions; return this; } @@ -315,143 +340,175 @@ public Organization addAllowedActionsItem(NamespaceActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this organization * @return allowedActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of actions user is allowed to do on this organization") + public List getAllowedActions() { return allowedActions; } + public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } public Organization numOfArrays(BigDecimal numOfArrays) { + this.numOfArrays = numOfArrays; return this; } - /** + /** * number of registered arrays for this organization * @return numOfArrays - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "number of registered arrays for this organization") + public BigDecimal getNumOfArrays() { return numOfArrays; } + public void setNumOfArrays(BigDecimal numOfArrays) { this.numOfArrays = numOfArrays; } - /** + /** * List of extra/optional/beta features to enable for namespace * @return enabledFeatures - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of extra/optional/beta features to enable for namespace") + public List getEnabledFeatures() { return enabledFeatures; } - /** + + /** * A notice that the user has an unpaid subscription * @return unpaidSubscription - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A notice that the user has an unpaid subscription") + public Boolean getUnpaidSubscription() { return unpaidSubscription; } + public Organization defaultS3Path(String defaultS3Path) { + this.defaultS3Path = defaultS3Path; return this; } - /** + /** * The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. * @return defaultS3Path - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. ") + public String getDefaultS3Path() { return defaultS3Path; } + public void setDefaultS3Path(String defaultS3Path) { this.defaultS3Path = defaultS3Path; } public Organization defaultS3PathCredentialsName(String defaultS3PathCredentialsName) { + this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; return this; } - /** + /** * The name of the credentials used to create and access files in the `default_s3_path`, if needed. * @return defaultS3PathCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the credentials used to create and access files in the `default_s3_path`, if needed. ") + public String getDefaultS3PathCredentialsName() { return defaultS3PathCredentialsName; } + public void setDefaultS3PathCredentialsName(String defaultS3PathCredentialsName) { this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; } public Organization assetLocations(AssetLocations assetLocations) { + this.assetLocations = assetLocations; return this; } - /** + /** * Get assetLocations * @return assetLocations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetLocations getAssetLocations() { return assetLocations; } + public void setAssetLocations(AssetLocations assetLocations) { this.assetLocations = assetLocations; } - /** + /** * Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect * @return stripeConnect - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect") + public Boolean getStripeConnect() { return stripeConnect; } + public Organization assumeRoleArn(String assumeRoleArn) { + this.assumeRoleArn = assumeRoleArn; return this; } - /** + /** * A AWS Role that will be first assumed before assuming the organization's AWS Role. Visible to owners and admins. * @return assumeRoleArn - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A AWS Role that will be first assumed before assuming the organization's AWS Role. Visible to owners and admins. ") + public String getAssumeRoleArn() { return assumeRoleArn; } + public void setAssumeRoleArn(String assumeRoleArn) { this.assumeRoleArn = assumeRoleArn; } @@ -466,10 +523,6 @@ public void setAssumeRoleArn(String assumeRoleArn) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Organization instance itself */ public Organization putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -481,8 +534,6 @@ public Organization putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -490,9 +541,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -614,75 +662,70 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Organization - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Organization.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Organization + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Organization.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Organization is not found in the empty JSON string", Organization.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Organization.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - // validate the optional field `role` - if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { - OrganizationRoles.validateJsonElement(jsonObj.get("role")); - } - if (!jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); - } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - OrganizationUser.validateJsonElement(jsonArrayusers.get(i)); - }; + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + OrganizationUser.validateJsonObject(jsonArrayusers.get(i).getAsJsonObject()); + }; } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull() && !jsonObj.get("enabled_features").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); } - if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { + if (jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); } - if ((jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonNull()) && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_s3_path_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path_credentials_name").toString())); } // validate the optional field `asset_locations` - if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonElement(jsonObj.get("asset_locations")); + if (jsonObj.getAsJsonObject("asset_locations") != null) { + AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); } - if ((jsonObj.get("assume_role_arn") != null && !jsonObj.get("assume_role_arn").isJsonNull()) && !jsonObj.get("assume_role_arn").isJsonPrimitive()) { + if (jsonObj.get("assume_role_arn") != null && !jsonObj.get("assume_role_arn").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `assume_role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assume_role_arn").toString())); } } @@ -703,7 +746,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Organization value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -715,12 +758,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -729,9 +767,8 @@ else if (entry.getValue() instanceof Character) @Override public Organization read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Organization instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -745,10 +782,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -759,22 +794,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Organization given an JSON string - * - * @param jsonString JSON string - * @return An instance of Organization - * @throws IOException if the JSON string is invalid with respect to Organization - */ + /** + * Create an instance of Organization given an JSON string + * + * @param jsonString JSON string + * @return An instance of Organization + * @throws IOException if the JSON string is invalid with respect to Organization + */ public static Organization fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Organization.class); } - /** - * Convert an instance of Organization to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Organization to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java index c8af163..43c1984 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -33,6 +32,8 @@ public enum OrganizationRoles { ADMIN("admin"), + READ_WRITE_DELETE("read_write_delete"), + READ_WRITE("read_write"), READ_ONLY("read_only"); @@ -73,10 +74,5 @@ public OrganizationRoles read(final JsonReader jsonReader) throws IOException { return OrganizationRoles.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - OrganizationRoles.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java index 06aea63..7f07fd2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java @@ -14,36 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetLocations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +43,8 @@ /** * OrganizationUpdate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "OrganizationUpdate") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class OrganizationUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -77,118 +70,142 @@ public class OrganizationUpdate { @SerializedName(SERIALIZED_NAME_ASSET_LOCATIONS) private AssetLocations assetLocations; - public OrganizationUpdate() { + public OrganizationUpdate() { } public OrganizationUpdate name(String name) { + this.name = name; return this; } - /** + /** * organization name must be unique * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "organization name must be unique") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public OrganizationUpdate logo(String logo) { + this.logo = logo; return this; } - /** + /** * Organization logo * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Organization logo") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public OrganizationUpdate description(String description) { + this.description = description; return this; } - /** + /** * Organization description * @return description - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Organization description") + public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public OrganizationUpdate defaultS3Path(String defaultS3Path) { + this.defaultS3Path = defaultS3Path; return this; } - /** + /** * The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. * @return defaultS3Path - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. ") + public String getDefaultS3Path() { return defaultS3Path; } + public void setDefaultS3Path(String defaultS3Path) { this.defaultS3Path = defaultS3Path; } public OrganizationUpdate defaultS3PathCredentialsName(String defaultS3PathCredentialsName) { + this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; return this; } - /** + /** * The name of the credentials used to create and access files in the `default_s3_path`, if needed. * @return defaultS3PathCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the credentials used to create and access files in the `default_s3_path`, if needed. ") + public String getDefaultS3PathCredentialsName() { return defaultS3PathCredentialsName; } + public void setDefaultS3PathCredentialsName(String defaultS3PathCredentialsName) { this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; } public OrganizationUpdate assetLocations(AssetLocations assetLocations) { + this.assetLocations = assetLocations; return this; } - /** + /** * Get assetLocations * @return assetLocations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetLocations getAssetLocations() { return assetLocations; } + public void setAssetLocations(AssetLocations assetLocations) { this.assetLocations = assetLocations; } @@ -203,10 +220,6 @@ public void setAssetLocations(AssetLocations assetLocations) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the OrganizationUpdate instance itself */ public OrganizationUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -218,8 +231,6 @@ public OrganizationUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -227,9 +238,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -317,37 +325,38 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to OrganizationUpdate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OrganizationUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to OrganizationUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (OrganizationUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUpdate is not found in the empty JSON string", OrganizationUpdate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { + if (jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); } - if ((jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonNull()) && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_s3_path_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path_credentials_name").toString())); } // validate the optional field `asset_locations` - if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonElement(jsonObj.get("asset_locations")); + if (jsonObj.getAsJsonObject("asset_locations") != null) { + AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); } } @@ -367,7 +376,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, OrganizationUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -379,12 +388,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -393,9 +397,8 @@ else if (entry.getValue() instanceof Character) @Override public OrganizationUpdate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance OrganizationUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -409,10 +412,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -423,22 +424,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of OrganizationUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of OrganizationUpdate - * @throws IOException if the JSON string is invalid with respect to OrganizationUpdate - */ + /** + * Create an instance of OrganizationUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of OrganizationUpdate + * @throws IOException if the JSON string is invalid with respect to OrganizationUpdate + */ public static OrganizationUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, OrganizationUpdate.class); } - /** - * Convert an instance of OrganizationUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of OrganizationUpdate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java index 14b2330..2206f37 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +43,8 @@ /** * user in an organization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "user in an organization") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class OrganizationUser { public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -85,145 +76,174 @@ public class OrganizationUser { public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = new ArrayList<>(); + private List allowedActions = null; - public OrganizationUser() { + public OrganizationUser() { } public OrganizationUser userId(String userId) { + this.userId = userId; return this; } - /** + /** * unique ID of user * @return userId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of user") + public String getUserId() { return userId; } + public void setUserId(String userId) { this.userId = userId; } public OrganizationUser organizationId(String organizationId) { + this.organizationId = organizationId; return this; } - /** + /** * unique ID of organization * @return organizationId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of organization") + public String getOrganizationId() { return organizationId; } + public void setOrganizationId(String organizationId) { this.organizationId = organizationId; } public OrganizationUser username(String username) { + this.username = username; return this; } - /** + /** * username for user * @return username - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "username", value = "username for user") + public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public OrganizationUser userFullName(String userFullName) { + this.userFullName = userFullName; return this; } - /** + /** * full name of the user; available to organization admins * @return userFullName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "Alice Hanna", value = "full name of the user; available to organization admins") + public String getUserFullName() { return userFullName; } + public void setUserFullName(String userFullName) { this.userFullName = userFullName; } public OrganizationUser userEmail(String userEmail) { + this.userEmail = userEmail; return this; } - /** + /** * email address of the user; available to organization admins * @return userEmail - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "alice@example.com", value = "email address of the user; available to organization admins") + public String getUserEmail() { return userEmail; } + public void setUserEmail(String userEmail) { this.userEmail = userEmail; } public OrganizationUser organizationName(String organizationName) { + this.organizationName = organizationName; return this; } - /** + /** * name of organization * @return organizationName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "MyOrganization", value = "name of organization") + public String getOrganizationName() { return organizationName; } + public void setOrganizationName(String organizationName) { this.organizationName = organizationName; } public OrganizationUser role(OrganizationRoles role) { + this.role = role; return this; } - /** + /** * Get role * @return role - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public OrganizationRoles getRole() { return role; } + public void setRole(OrganizationRoles role) { this.role = role; } public OrganizationUser allowedActions(List allowedActions) { + this.allowedActions = allowedActions; return this; } @@ -236,15 +256,18 @@ public OrganizationUser addAllowedActionsItem(NamespaceActions allowedActionsIte return this; } - /** + /** * list of actions user is allowed to do on this organization * @return allowedActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of actions user is allowed to do on this organization") + public List getAllowedActions() { return allowedActions; } + public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } @@ -259,10 +282,6 @@ public void setAllowedActions(List allowedActions) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the OrganizationUser instance itself */ public OrganizationUser putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -274,8 +293,6 @@ public OrganizationUser putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -283,9 +300,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -368,43 +382,40 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to OrganizationUser - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OrganizationUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to OrganizationUser + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (OrganizationUser.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUser is not found in the empty JSON string", OrganizationUser.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("user_id") != null && !jsonObj.get("user_id").isJsonNull()) && !jsonObj.get("user_id").isJsonPrimitive()) { + if (jsonObj.get("user_id") != null && !jsonObj.get("user_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_id").toString())); } - if ((jsonObj.get("organization_id") != null && !jsonObj.get("organization_id").isJsonNull()) && !jsonObj.get("organization_id").isJsonPrimitive()) { + if (jsonObj.get("organization_id") != null && !jsonObj.get("organization_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_id").toString())); } - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } - if ((jsonObj.get("user_full_name") != null && !jsonObj.get("user_full_name").isJsonNull()) && !jsonObj.get("user_full_name").isJsonPrimitive()) { + if (jsonObj.get("user_full_name") != null && !jsonObj.get("user_full_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_full_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_full_name").toString())); } - if ((jsonObj.get("user_email") != null && !jsonObj.get("user_email").isJsonNull()) && !jsonObj.get("user_email").isJsonPrimitive()) { + if (jsonObj.get("user_email") != null && !jsonObj.get("user_email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_email").toString())); } - if ((jsonObj.get("organization_name") != null && !jsonObj.get("organization_name").isJsonNull()) && !jsonObj.get("organization_name").isJsonPrimitive()) { + if (jsonObj.get("organization_name") != null && !jsonObj.get("organization_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_name").toString())); } - // validate the optional field `role` - if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { - OrganizationRoles.validateJsonElement(jsonObj.get("role")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } } @@ -425,7 +436,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, OrganizationUser value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -437,12 +448,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -451,9 +457,8 @@ else if (entry.getValue() instanceof Character) @Override public OrganizationUser read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance OrganizationUser instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -467,10 +472,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -481,22 +484,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of OrganizationUser given an JSON string - * - * @param jsonString JSON string - * @return An instance of OrganizationUser - * @throws IOException if the JSON string is invalid with respect to OrganizationUser - */ + /** + * Create an instance of OrganizationUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of OrganizationUser + * @throws IOException if the JSON string is invalid with respect to OrganizationUser + */ public static OrganizationUser fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, OrganizationUser.class); } - /** - * Convert an instance of OrganizationUser to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of OrganizationUser to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java index 00d412d..424b91d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,7 @@ /** * PaginationMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class PaginationMetadata { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -68,80 +59,96 @@ public class PaginationMetadata { @SerializedName(SERIALIZED_NAME_TOTAL_ITEMS) private BigDecimal totalItems; - public PaginationMetadata() { + public PaginationMetadata() { } public PaginationMetadata page(BigDecimal page) { + this.page = page; return this; } - /** + /** * pagination offset. Use it to skip the first ((page - 1) * per_page) items * @return page - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1.0", value = "pagination offset. Use it to skip the first ((page - 1) * per_page) items") + public BigDecimal getPage() { return page; } + public void setPage(BigDecimal page) { this.page = page; } public PaginationMetadata perPage(BigDecimal perPage) { + this.perPage = perPage; return this; } - /** + /** * pagination limit (page size) * @return perPage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "pagination limit (page size)") + public BigDecimal getPerPage() { return perPage; } + public void setPerPage(BigDecimal perPage) { this.perPage = perPage; } public PaginationMetadata totalPages(BigDecimal totalPages) { + this.totalPages = totalPages; return this; } - /** + /** * number of total pages with current limit * @return totalPages - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "14.0", value = "number of total pages with current limit") + public BigDecimal getTotalPages() { return totalPages; } + public void setTotalPages(BigDecimal totalPages) { this.totalPages = totalPages; } public PaginationMetadata totalItems(BigDecimal totalItems) { + this.totalItems = totalItems; return this; } - /** + /** * number of total available items * @return totalItems - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "138.0", value = "number of total available items") + public BigDecimal getTotalItems() { return totalItems; } + public void setTotalItems(BigDecimal totalItems) { this.totalItems = totalItems; } @@ -156,10 +163,6 @@ public void setTotalItems(BigDecimal totalItems) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the PaginationMetadata instance itself */ public PaginationMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,8 +174,6 @@ public PaginationMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,9 +181,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,35 +251,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PaginationMetadata - */ + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PaginationMetadata + */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (io.tiledb.cloud.rest_api.v2.model.PaginationMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", io.tiledb.cloud.rest_api.v2.model.PaginationMetadata.openapiRequiredFields.toString())); - } - } - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to PaginationMetadata - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!PaginationMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + if (jsonObj == null) { + if (PaginationMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", PaginationMetadata.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -300,7 +283,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, PaginationMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -312,12 +295,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -326,9 +304,8 @@ else if (entry.getValue() instanceof Character) @Override public PaginationMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance PaginationMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -342,10 +319,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -356,22 +331,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of PaginationMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaginationMetadata - * @throws IOException if the JSON string is invalid with respect to PaginationMetadata - */ + /** + * Create an instance of PaginationMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaginationMetadata + * @throws IOException if the JSON string is invalid with respect to PaginationMetadata + */ public static PaginationMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, PaginationMetadata.class); } - /** - * Convert an instance of PaginationMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of PaginationMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java index 66f7c27..33d0a89 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public PodStatus read(final JsonReader jsonReader) throws IOException { return PodStatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PodStatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java index 5f87230..cbbdfce 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java @@ -14,39 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PricingAggregateUsage; -import io.tiledb.cloud.rest_api.model.PricingCurrency; -import io.tiledb.cloud.rest_api.model.PricingInterval; -import io.tiledb.cloud.rest_api.model.PricingType; -import io.tiledb.cloud.rest_api.model.PricingUnitLabel; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -54,7 +41,8 @@ /** * Pricing created by converting an array to product */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Pricing created by converting an array to product") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Pricing { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -108,251 +96,303 @@ public class Pricing { @SerializedName(SERIALIZED_NAME_ACTIVATED) private Boolean activated; - public Pricing() { + public Pricing() { } public Pricing id(String id) { + this.id = id; return this; } - /** + /** * Unique ID of plan as defined by Stripe * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "planID", value = "Unique ID of plan as defined by Stripe") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public Pricing arrayUuid(String arrayUuid) { + this.arrayUuid = arrayUuid; return this; } - /** + /** * Unique ID of registered array * @return arrayUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of registered array") + public String getArrayUuid() { return arrayUuid; } + public void setArrayUuid(String arrayUuid) { this.arrayUuid = arrayUuid; } public Pricing pricingName(String pricingName) { + this.pricingName = pricingName; return this; } - /** + /** * Name of pricing * @return pricingName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Name of pricing") + public String getPricingName() { return pricingName; } + public void setPricingName(String pricingName) { this.pricingName = pricingName; } public Pricing pricingType(PricingType pricingType) { + this.pricingType = pricingType; return this; } - /** + /** * Get pricingType * @return pricingType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PricingType getPricingType() { return pricingType; } + public void setPricingType(PricingType pricingType) { this.pricingType = pricingType; } public Pricing productName(String productName) { + this.productName = productName; return this; } - /** + /** * Name of product * @return productName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Name of product") + public String getProductName() { return productName; } + public void setProductName(String productName) { this.productName = productName; } public Pricing productStatementDescriptor(String productStatementDescriptor) { + this.productStatementDescriptor = productStatementDescriptor; return this; } - /** + /** * Extra information about a product which will appear on the credit card statement of the customer * @return productStatementDescriptor - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Extra information about a product which will appear on the credit card statement of the customer") + public String getProductStatementDescriptor() { return productStatementDescriptor; } + public void setProductStatementDescriptor(String productStatementDescriptor) { this.productStatementDescriptor = productStatementDescriptor; } public Pricing productUnitLabel(PricingUnitLabel productUnitLabel) { + this.productUnitLabel = productUnitLabel; return this; } - /** + /** * Get productUnitLabel * @return productUnitLabel - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PricingUnitLabel getProductUnitLabel() { return productUnitLabel; } + public void setProductUnitLabel(PricingUnitLabel productUnitLabel) { this.productUnitLabel = productUnitLabel; } public Pricing currency(PricingCurrency currency) { + this.currency = currency; return this; } - /** + /** * Get currency * @return currency - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PricingCurrency getCurrency() { return currency; } + public void setCurrency(PricingCurrency currency) { this.currency = currency; } public Pricing aggregateUsage(PricingAggregateUsage aggregateUsage) { + this.aggregateUsage = aggregateUsage; return this; } - /** + /** * Get aggregateUsage * @return aggregateUsage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PricingAggregateUsage getAggregateUsage() { return aggregateUsage; } + public void setAggregateUsage(PricingAggregateUsage aggregateUsage) { this.aggregateUsage = aggregateUsage; } public Pricing interval(PricingInterval interval) { + this.interval = interval; return this; } - /** + /** * Get interval * @return interval - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PricingInterval getInterval() { return interval; } + public void setInterval(PricingInterval interval) { this.interval = interval; } public Pricing dividedBy(Long dividedBy) { + this.dividedBy = dividedBy; return this; } - /** + /** * Group of n product unit labels * @return dividedBy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1048576", value = "Group of n product unit labels") + public Long getDividedBy() { return dividedBy; } + public void setDividedBy(Long dividedBy) { this.dividedBy = dividedBy; } public Pricing charge(Double charge) { + this.charge = charge; return this; } - /** + /** * Price in cents (decimal) per unitlabel * @return charge - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Price in cents (decimal) per unitlabel") + public Double getCharge() { return charge; } + public void setCharge(Double charge) { this.charge = charge; } public Pricing activated(Boolean activated) { + this.activated = activated; return this; } - /** + /** * If pricing is activated * @return activated - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "If pricing is activated") + public Boolean getActivated() { return activated; } + public void setActivated(Boolean activated) { this.activated = activated; } @@ -367,10 +407,6 @@ public void setActivated(Boolean activated) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Pricing instance itself */ public Pricing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -382,8 +418,6 @@ public Pricing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -391,9 +425,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -491,54 +522,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Pricing - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Pricing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Pricing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Pricing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Pricing is not found in the empty JSON string", Pricing.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonNull()) && !jsonObj.get("array_uuid").isJsonPrimitive()) { + if (jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_uuid").toString())); } - if ((jsonObj.get("pricing_name") != null && !jsonObj.get("pricing_name").isJsonNull()) && !jsonObj.get("pricing_name").isJsonPrimitive()) { + if (jsonObj.get("pricing_name") != null && !jsonObj.get("pricing_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `pricing_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pricing_name").toString())); } - // validate the optional field `pricing_type` - if (jsonObj.get("pricing_type") != null && !jsonObj.get("pricing_type").isJsonNull()) { - PricingType.validateJsonElement(jsonObj.get("pricing_type")); - } - if ((jsonObj.get("product_name") != null && !jsonObj.get("product_name").isJsonNull()) && !jsonObj.get("product_name").isJsonPrimitive()) { + if (jsonObj.get("product_name") != null && !jsonObj.get("product_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `product_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product_name").toString())); } - if ((jsonObj.get("product_statement_descriptor") != null && !jsonObj.get("product_statement_descriptor").isJsonNull()) && !jsonObj.get("product_statement_descriptor").isJsonPrimitive()) { + if (jsonObj.get("product_statement_descriptor") != null && !jsonObj.get("product_statement_descriptor").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `product_statement_descriptor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product_statement_descriptor").toString())); } - // validate the optional field `product_unit_label` - if (jsonObj.get("product_unit_label") != null && !jsonObj.get("product_unit_label").isJsonNull()) { - PricingUnitLabel.validateJsonElement(jsonObj.get("product_unit_label")); - } - // validate the optional field `currency` - if (jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) { - PricingCurrency.validateJsonElement(jsonObj.get("currency")); - } - // validate the optional field `aggregate_usage` - if (jsonObj.get("aggregate_usage") != null && !jsonObj.get("aggregate_usage").isJsonNull()) { - PricingAggregateUsage.validateJsonElement(jsonObj.get("aggregate_usage")); - } - // validate the optional field `interval` - if (jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull()) { - PricingInterval.validateJsonElement(jsonObj.get("interval")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -557,7 +569,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Pricing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -569,12 +581,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -583,9 +590,8 @@ else if (entry.getValue() instanceof Character) @Override public Pricing read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Pricing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -599,10 +605,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -613,22 +617,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Pricing given an JSON string - * - * @param jsonString JSON string - * @return An instance of Pricing - * @throws IOException if the JSON string is invalid with respect to Pricing - */ + /** + * Create an instance of Pricing given an JSON string + * + * @param jsonString JSON string + * @return An instance of Pricing + * @throws IOException if the JSON string is invalid with respect to Pricing + */ public static Pricing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Pricing.class); } - /** - * Convert an instance of Pricing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Pricing to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java index 52676b8..64c1be0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,10 +66,5 @@ public PricingAggregateUsage read(final JsonReader jsonReader) throws IOExceptio return PricingAggregateUsage.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PricingAggregateUsage.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java index c9dc5d0..bed28d5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,10 +66,5 @@ public PricingCurrency read(final JsonReader jsonReader) throws IOException { return PricingCurrency.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PricingCurrency.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java index ee267ac..6930160 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,10 +66,5 @@ public PricingInterval read(final JsonReader jsonReader) throws IOException { return PricingInterval.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PricingInterval.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java index 1606108..46dedd9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public PricingType read(final JsonReader jsonReader) throws IOException { return PricingType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PricingType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java index 82edb1a..cabe32b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public PricingUnitLabel read(final JsonReader jsonReader) throws IOException { return PricingUnitLabel.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PricingUnitLabel.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java b/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java index b7ee8e1..6555480 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public PublicShareFilter read(final JsonReader jsonReader) throws IOException { return PublicShareFilter.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PublicShareFilter.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java index 98c8469..2dcf6e4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java @@ -14,42 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AttributeBufferHeader; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.QueryReader; -import io.tiledb.cloud.rest_api.model.Querystatus; -import io.tiledb.cloud.rest_api.model.Querytype; -import io.tiledb.cloud.rest_api.model.Writer; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -57,7 +43,7 @@ /** * Query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Query { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -95,183 +81,216 @@ public class Query { @SerializedName(SERIALIZED_NAME_TOTAL_VAR_LEN_BUFFER_BYTES) private Integer totalVarLenBufferBytes; - public Query() { + public Query() { } public Query type(Querytype type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Querytype getType() { return type; } + public void setType(Querytype type) { this.type = type; } public Query layout(Layout layout) { + this.layout = layout; return this; } - /** + /** * Get layout * @return layout - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Layout getLayout() { return layout; } + public void setLayout(Layout layout) { this.layout = layout; } public Query status(Querystatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Querystatus getStatus() { return status; } + public void setStatus(Querystatus status) { this.status = status; } public Query attributeBufferHeaders(List attributeBufferHeaders) { + this.attributeBufferHeaders = attributeBufferHeaders; return this; } public Query addAttributeBufferHeadersItem(AttributeBufferHeader attributeBufferHeadersItem) { - if (this.attributeBufferHeaders == null) { - this.attributeBufferHeaders = new ArrayList<>(); - } this.attributeBufferHeaders.add(attributeBufferHeadersItem); return this; } - /** + /** * List of attribute buffer headers * @return attributeBufferHeaders - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of attribute buffer headers") + public List getAttributeBufferHeaders() { return attributeBufferHeaders; } + public void setAttributeBufferHeaders(List attributeBufferHeaders) { this.attributeBufferHeaders = attributeBufferHeaders; } public Query writer(Writer writer) { + this.writer = writer; return this; } - /** + /** * Get writer * @return writer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Writer getWriter() { return writer; } + public void setWriter(Writer writer) { this.writer = writer; } public Query reader(QueryReader reader) { + this.reader = reader; return this; } - /** + /** * Get reader * @return reader - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public QueryReader getReader() { return reader; } + public void setReader(QueryReader reader) { this.reader = reader; } public Query array(Array array) { + this.array = array; return this; } - /** + /** * Get array * @return array - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Array getArray() { return array; } + public void setArray(Array array) { this.array = array; } public Query totalFixedLengthBufferBytes(Integer totalFixedLengthBufferBytes) { + this.totalFixedLengthBufferBytes = totalFixedLengthBufferBytes; return this; } - /** + /** * Total number of bytes in fixed size attribute buffers. * @return totalFixedLengthBufferBytes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Total number of bytes in fixed size attribute buffers.") + public Integer getTotalFixedLengthBufferBytes() { return totalFixedLengthBufferBytes; } + public void setTotalFixedLengthBufferBytes(Integer totalFixedLengthBufferBytes) { this.totalFixedLengthBufferBytes = totalFixedLengthBufferBytes; } public Query totalVarLenBufferBytes(Integer totalVarLenBufferBytes) { + this.totalVarLenBufferBytes = totalVarLenBufferBytes; return this; } - /** + /** * Total number of bytes in variable size attribute buffers. * @return totalVarLenBufferBytes - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Total number of bytes in variable size attribute buffers.") + public Integer getTotalVarLenBufferBytes() { return totalVarLenBufferBytes; } + public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { this.totalVarLenBufferBytes = totalVarLenBufferBytes; } @@ -286,10 +305,6 @@ public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Query instance itself */ public Query putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -301,8 +316,6 @@ public Query putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -310,9 +323,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -405,52 +415,51 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("totalVarLenBufferBytes"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Query - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Query.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Query + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Query.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Query is not found in the empty JSON string", Query.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Query.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - Querytype.validateJsonElement(jsonObj.get("type")); - // validate the required field `layout` - Layout.validateJsonElement(jsonObj.get("layout")); - // validate the required field `status` - Querystatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); - } - JsonArray jsonArrayattributeBufferHeaders = jsonObj.getAsJsonArray("attributeBufferHeaders"); - // validate the required field `attributeBufferHeaders` (array) - for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { - AttributeBufferHeader.validateJsonElement(jsonArrayattributeBufferHeaders.get(i)); - }; + if (jsonArrayattributeBufferHeaders != null) { + // ensure the json data is an array + if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); + } + + // validate the optional field `attributeBufferHeaders` (array) + for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { + AttributeBufferHeader.validateJsonObject(jsonArrayattributeBufferHeaders.get(i).getAsJsonObject()); + }; + } // validate the optional field `writer` - if (jsonObj.get("writer") != null && !jsonObj.get("writer").isJsonNull()) { - Writer.validateJsonElement(jsonObj.get("writer")); + if (jsonObj.getAsJsonObject("writer") != null) { + Writer.validateJsonObject(jsonObj.getAsJsonObject("writer")); } // validate the optional field `reader` - if (jsonObj.get("reader") != null && !jsonObj.get("reader").isJsonNull()) { - QueryReader.validateJsonElement(jsonObj.get("reader")); + if (jsonObj.getAsJsonObject("reader") != null) { + QueryReader.validateJsonObject(jsonObj.getAsJsonObject("reader")); + } + // validate the optional field `array` + if (jsonObj.getAsJsonObject("array") != null) { + Array.validateJsonObject(jsonObj.getAsJsonObject("array")); } - // validate the required field `array` - Array.validateJsonElement(jsonObj.get("array")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -469,7 +478,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Query value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -481,12 +490,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -495,9 +499,8 @@ else if (entry.getValue() instanceof Character) @Override public Query read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Query instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -511,10 +514,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -525,22 +526,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Query given an JSON string - * - * @param jsonString JSON string - * @return An instance of Query - * @throws IOException if the JSON string is invalid with respect to Query - */ + /** + * Create an instance of Query given an JSON string + * + * @param jsonString JSON string + * @return An instance of Query + * @throws IOException if the JSON string is invalid with respect to Query + */ public static Query fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Query.class); } - /** - * Convert an instance of Query to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Query to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java index 6af759a..4b812b8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.QueryRanges; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +43,8 @@ /** * Query returning results as JSON */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Query returning results as JSON") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class QueryJson { public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; @SerializedName(SERIALIZED_NAME_QUERY_RANGES) @@ -60,31 +52,36 @@ public class QueryJson { public static final String SERIALIZED_NAME_FIELDS = "fields"; @SerializedName(SERIALIZED_NAME_FIELDS) - private List fields = new ArrayList<>(); + private List fields = null; - public QueryJson() { + public QueryJson() { } public QueryJson queryRanges(QueryRanges queryRanges) { + this.queryRanges = queryRanges; return this; } - /** + /** * Get queryRanges * @return queryRanges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public QueryRanges getQueryRanges() { return queryRanges; } + public void setQueryRanges(QueryRanges queryRanges) { this.queryRanges = queryRanges; } public QueryJson fields(List fields) { + this.fields = fields; return this; } @@ -97,15 +94,18 @@ public QueryJson addFieldsItem(String fieldsItem) { return this; } - /** + /** * List of fields to return data from, empty means return data for all fields * @return fields - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of fields to return data from, empty means return data for all fields") + public List getFields() { return fields; } + public void setFields(List fields) { this.fields = fields; } @@ -120,10 +120,6 @@ public void setFields(List fields) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the QueryJson instance itself */ public QueryJson putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -135,8 +131,6 @@ public QueryJson putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -144,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -211,25 +202,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to QueryJson - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!QueryJson.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to QueryJson + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (QueryJson.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in QueryJson is not found in the empty JSON string", QueryJson.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `query_ranges` - if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) { - QueryRanges.validateJsonElement(jsonObj.get("query_ranges")); + if (jsonObj.getAsJsonObject("query_ranges") != null) { + QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("query_ranges")); } - // ensure the optional json data is an array if present - if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull() && !jsonObj.get("fields").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fields` to be an array in the JSON string but got `%s`", jsonObj.get("fields").toString())); } } @@ -250,7 +242,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, QueryJson value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -262,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -276,9 +263,8 @@ else if (entry.getValue() instanceof Character) @Override public QueryJson read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance QueryJson instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -292,10 +278,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -306,22 +290,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of QueryJson given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryJson - * @throws IOException if the JSON string is invalid with respect to QueryJson - */ + /** + * Create an instance of QueryJson given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryJson + * @throws IOException if the JSON string is invalid with respect to QueryJson + */ public static QueryJson fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, QueryJson.class); } - /** - * Convert an instance of QueryJson to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of QueryJson to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java index db2e909..77ebfe4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +44,8 @@ /** * Subarray bounds to query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Subarray bounds to query") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class QueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -61,31 +53,36 @@ public class QueryRanges { public static final String SERIALIZED_NAME_RANGES = "ranges"; @SerializedName(SERIALIZED_NAME_RANGES) - private List> ranges = new ArrayList<>(); + private List> ranges = null; - public QueryRanges() { + public QueryRanges() { } public QueryRanges layout(Layout layout) { + this.layout = layout; return this; } - /** + /** * Get layout * @return layout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Layout getLayout() { return layout; } + public void setLayout(Layout layout) { this.layout = layout; } public QueryRanges ranges(List> ranges) { + this.ranges = ranges; return this; } @@ -98,15 +95,18 @@ public QueryRanges addRangesItem(List rangesItem) { return this; } - /** + /** * List of ranges, * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of ranges,") + public List> getRanges() { return ranges; } + public void setRanges(List> ranges) { this.ranges = ranges; } @@ -121,10 +121,6 @@ public void setRanges(List> ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the QueryRanges instance itself */ public QueryRanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public QueryRanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,25 +203,22 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to QueryRanges - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!QueryRanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to QueryRanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (QueryRanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in QueryRanges is not found in the empty JSON string", QueryRanges.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull() && !jsonObj.get("ranges").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); } } @@ -251,7 +239,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, QueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -263,12 +251,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -277,9 +260,8 @@ else if (entry.getValue() instanceof Character) @Override public QueryRanges read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance QueryRanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -293,10 +275,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -307,22 +287,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of QueryRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryRanges - * @throws IOException if the JSON string is invalid with respect to QueryRanges - */ + /** + * Create an instance of QueryRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryRanges + * @throws IOException if the JSON string is invalid with respect to QueryRanges + */ public static QueryRanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, QueryRanges.class); } - /** - * Convert an instance of QueryRanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of QueryRanges to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java index 52a4d8a..ee9e631 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java @@ -14,37 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.ReadState; -import io.tiledb.cloud.rest_api.model.Subarray; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +41,8 @@ /** * Read struct (can't be called reader due to class name conflict) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Read struct (can't be called reader due to class name conflict)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class QueryReader { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -78,118 +68,142 @@ public class QueryReader { @SerializedName(SERIALIZED_NAME_VAR_OFFSETS_BITSIZE) private Integer varOffsetsBitsize; - public QueryReader() { + public QueryReader() { } public QueryReader layout(Layout layout) { + this.layout = layout; return this; } - /** + /** * Get layout * @return layout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Layout getLayout() { return layout; } + public void setLayout(Layout layout) { this.layout = layout; } public QueryReader subarray(Subarray subarray) { + this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Subarray getSubarray() { return subarray; } + public void setSubarray(Subarray subarray) { this.subarray = subarray; } public QueryReader readState(ReadState readState) { + this.readState = readState; return this; } - /** + /** * Get readState * @return readState - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ReadState getReadState() { return readState; } + public void setReadState(ReadState readState) { this.readState = readState; } public QueryReader varOffsetsMode(String varOffsetsMode) { + this.varOffsetsMode = varOffsetsMode; return this; } - /** + /** * The offsets format (bytes or elements) to be used. * @return varOffsetsMode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The offsets format (bytes or elements) to be used.") + public String getVarOffsetsMode() { return varOffsetsMode; } + public void setVarOffsetsMode(String varOffsetsMode) { this.varOffsetsMode = varOffsetsMode; } public QueryReader varOffsetsAddExtraElement(Boolean varOffsetsAddExtraElement) { + this.varOffsetsAddExtraElement = varOffsetsAddExtraElement; return this; } - /** + /** * True if an extra element will be added to the end of the offsets buffer. * @return varOffsetsAddExtraElement - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "True if an extra element will be added to the end of the offsets buffer.") + public Boolean getVarOffsetsAddExtraElement() { return varOffsetsAddExtraElement; } + public void setVarOffsetsAddExtraElement(Boolean varOffsetsAddExtraElement) { this.varOffsetsAddExtraElement = varOffsetsAddExtraElement; } public QueryReader varOffsetsBitsize(Integer varOffsetsBitsize) { + this.varOffsetsBitsize = varOffsetsBitsize; return this; } - /** + /** * The offsets bitsize (32 or 64) to be used. * @return varOffsetsBitsize - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The offsets bitsize (32 or 64) to be used.") + public Integer getVarOffsetsBitsize() { return varOffsetsBitsize; } + public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { this.varOffsetsBitsize = varOffsetsBitsize; } @@ -204,10 +218,6 @@ public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the QueryReader instance itself */ public QueryReader putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -219,8 +229,6 @@ public QueryReader putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -228,9 +236,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -307,32 +312,29 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to QueryReader - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!QueryReader.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to QueryReader + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (QueryReader.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in QueryReader is not found in the empty JSON string", QueryReader.openapiRequiredFields.toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); } // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonElement(jsonObj.get("subarray")); + if (jsonObj.getAsJsonObject("subarray") != null) { + Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } // validate the optional field `readState` - if (jsonObj.get("readState") != null && !jsonObj.get("readState").isJsonNull()) { - ReadState.validateJsonElement(jsonObj.get("readState")); + if (jsonObj.getAsJsonObject("readState") != null) { + ReadState.validateJsonObject(jsonObj.getAsJsonObject("readState")); } - if ((jsonObj.get("varOffsetsMode") != null && !jsonObj.get("varOffsetsMode").isJsonNull()) && !jsonObj.get("varOffsetsMode").isJsonPrimitive()) { + if (jsonObj.get("varOffsetsMode") != null && !jsonObj.get("varOffsetsMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `varOffsetsMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("varOffsetsMode").toString())); } } @@ -353,7 +355,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, QueryReader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -365,12 +367,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -379,9 +376,8 @@ else if (entry.getValue() instanceof Character) @Override public QueryReader read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance QueryReader instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -395,10 +391,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -409,22 +403,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of QueryReader given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryReader - * @throws IOException if the JSON string is invalid with respect to QueryReader - */ + /** + * Create an instance of QueryReader given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryReader + * @throws IOException if the JSON string is invalid with respect to QueryReader + */ public static QueryReader fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, QueryReader.class); } - /** - * Convert an instance of QueryReader to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of QueryReader to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java index 8a07512..ef13838 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -75,10 +74,5 @@ public Querystatus read(final JsonReader jsonReader) throws IOException { return Querystatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - Querystatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java b/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java index 4ad6cc2..917ebc0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public Querytype read(final JsonReader jsonReader) throws IOException { return Querytype.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - Querytype.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java index 8c5bd25..d197442 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java @@ -14,43 +14,34 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.SubarrayPartitioner; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * state for reads */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "state for reads") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ReadState { public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; @SerializedName(SERIALIZED_NAME_INITIALIZED) @@ -68,80 +59,96 @@ public class ReadState { @SerializedName(SERIALIZED_NAME_SUBARRAY_PARTITIONER) private SubarrayPartitioner subarrayPartitioner; - public ReadState() { + public ReadState() { } public ReadState initialized(Boolean initialized) { + this.initialized = initialized; return this; } - /** + /** * True if the reader has been initialized. * @return initialized - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "True if the reader has been initialized.") + public Boolean getInitialized() { return initialized; } + public void setInitialized(Boolean initialized) { this.initialized = initialized; } public ReadState overflowed(Boolean overflowed) { + this.overflowed = overflowed; return this; } - /** + /** * True if the query produced results that could not fit in some buffer. * @return overflowed - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "True if the query produced results that could not fit in some buffer.") + public Boolean getOverflowed() { return overflowed; } + public void setOverflowed(Boolean overflowed) { this.overflowed = overflowed; } public ReadState unsplittable(Boolean unsplittable) { + this.unsplittable = unsplittable; return this; } - /** + /** * True if the current subarray partition is unsplittable. * @return unsplittable - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "True if the current subarray partition is unsplittable.") + public Boolean getUnsplittable() { return unsplittable; } + public void setUnsplittable(Boolean unsplittable) { this.unsplittable = unsplittable; } public ReadState subarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { + this.subarrayPartitioner = subarrayPartitioner; return this; } - /** + /** * Get subarrayPartitioner * @return subarrayPartitioner - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SubarrayPartitioner getSubarrayPartitioner() { return subarrayPartitioner; } + public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { this.subarrayPartitioner = subarrayPartitioner; } @@ -156,10 +163,6 @@ public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ReadState instance itself */ public ReadState putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,8 +174,6 @@ public ReadState putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,9 +181,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,22 +251,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ReadState - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ReadState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ReadState + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ReadState.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ReadState is not found in the empty JSON string", ReadState.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarrayPartitioner` - if (jsonObj.get("subarrayPartitioner") != null && !jsonObj.get("subarrayPartitioner").isJsonNull()) { - SubarrayPartitioner.validateJsonElement(jsonObj.get("subarrayPartitioner")); + if (jsonObj.getAsJsonObject("subarrayPartitioner") != null) { + SubarrayPartitioner.validateJsonObject(jsonObj.getAsJsonObject("subarrayPartitioner")); } } @@ -288,7 +287,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ReadState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -300,12 +299,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -314,9 +308,8 @@ else if (entry.getValue() instanceof Character) @Override public ReadState read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ReadState instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -330,10 +323,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -344,22 +335,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ReadState given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReadState - * @throws IOException if the JSON string is invalid with respect to ReadState - */ + /** + * Create an instance of ReadState given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReadState + * @throws IOException if the JSON string is invalid with respect to ReadState + */ public static ReadState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ReadState.class); } - /** - * Convert an instance of ReadState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ReadState to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java index 87dc568..57ee6b7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java @@ -14,38 +14,31 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraphNode; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +46,8 @@ /** * The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -81,130 +75,155 @@ public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = new ArrayList<>(); + private List nodes = null; - public RegisteredTaskGraph() { + public RegisteredTaskGraph() { } public RegisteredTaskGraph uuid(String uuid) { + this.uuid = uuid; return this; } - /** + /** * A server-assigned unique ID for the UDF, in UUID format. * @return uuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A server-assigned unique ID for the UDF, in UUID format.") + public String getUuid() { return uuid; } + public void setUuid(String uuid) { this.uuid = uuid; } public RegisteredTaskGraph namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * The namespace that owns this task graph log. * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace that owns this task graph log.") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public RegisteredTaskGraph name(String name) { + this.name = name; return this; } - /** + /** * The name of this graph, to appear in URLs. Must be unique per-namespace. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of this graph, to appear in URLs. Must be unique per-namespace. ") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public RegisteredTaskGraph readme(String readme) { + this.readme = readme; return this; } - /** + /** * Documentation for the task graph, in Markdown format. * @return readme - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Documentation for the task graph, in Markdown format.") + public String getReadme() { return readme; } + public void setReadme(String readme) { this.readme = readme; } public RegisteredTaskGraph licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * SPDX license identifier. * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "SPDX license identifier.") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public RegisteredTaskGraph licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * Full text of the license. * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Full text of the license.") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public RegisteredTaskGraph tags(List tags) { + this.tags = tags; return this; } @@ -217,21 +236,25 @@ public RegisteredTaskGraph addTagsItem(String tagsItem) { return this; } - /** + /** * Optional tags to classify the graph. * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optional tags to classify the graph.") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } public RegisteredTaskGraph nodes(List nodes) { + this.nodes = nodes; return this; } @@ -244,15 +267,18 @@ public RegisteredTaskGraph addNodesItem(TaskGraphNode nodesItem) { return this; } - /** + /** * The structure of the graph, in the form of the nodes that make it up. As with `TaskGraphLog`, nodes must topologically sorted, so that any node appears after all the nodes it depends on. * @return nodes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The structure of the graph, in the form of the nodes that make it up. As with `TaskGraphLog`, nodes must topologically sorted, so that any node appears after all the nodes it depends on. ") + public List getNodes() { return nodes; } + public void setNodes(List nodes) { this.nodes = nodes; } @@ -267,10 +293,6 @@ public void setNodes(List nodes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RegisteredTaskGraph instance itself */ public RegisteredTaskGraph putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -282,8 +304,6 @@ public RegisteredTaskGraph putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -291,9 +311,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -387,54 +404,53 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RegisteredTaskGraph - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RegisteredTaskGraph.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RegisteredTaskGraph + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (RegisteredTaskGraph.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in RegisteredTaskGraph is not found in the empty JSON string", RegisteredTaskGraph.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonNull()) && !jsonObj.get("readme").isJsonPrimitive()) { + if (jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `readme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("readme").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNode.validateJsonElement(jsonArraynodes.get(i)); - }; + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); + }; } } @@ -454,7 +470,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, RegisteredTaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -466,12 +482,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -480,9 +491,8 @@ else if (entry.getValue() instanceof Character) @Override public RegisteredTaskGraph read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance RegisteredTaskGraph instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -496,10 +506,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -510,22 +518,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RegisteredTaskGraph given an JSON string - * - * @param jsonString JSON string - * @return An instance of RegisteredTaskGraph - * @throws IOException if the JSON string is invalid with respect to RegisteredTaskGraph - */ + /** + * Create an instance of RegisteredTaskGraph given an JSON string + * + * @param jsonString JSON string + * @return An instance of RegisteredTaskGraph + * @throws IOException if the JSON string is invalid with respect to RegisteredTaskGraph + */ public static RegisteredTaskGraph fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RegisteredTaskGraph.class); } - /** - * Convert an instance of RegisteredTaskGraph to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RegisteredTaskGraph to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java index c0f1c46..fcee897 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,29 +41,34 @@ /** * Password to update */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Password to update") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class ResetUserPasswordRequest { public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; - public ResetUserPasswordRequest() { + public ResetUserPasswordRequest() { } public ResetUserPasswordRequest password(String password) { + this.password = password; return this; } - /** + /** * password * @return password - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "password", value = "password") + public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } @@ -86,10 +83,6 @@ public void setPassword(String password) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ResetUserPasswordRequest instance itself */ public ResetUserPasswordRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -101,8 +94,6 @@ public ResetUserPasswordRequest putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,9 +101,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -174,20 +162,21 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ResetUserPasswordRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ResetUserPasswordRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResetUserPasswordRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ResetUserPasswordRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in ResetUserPasswordRequest is not found in the empty JSON string", ResetUserPasswordRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { + if (jsonObj.get("password") != null && !jsonObj.get("password").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); } } @@ -208,7 +197,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ResetUserPasswordRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -220,12 +209,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -234,9 +218,8 @@ else if (entry.getValue() instanceof Character) @Override public ResetUserPasswordRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance ResetUserPasswordRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,10 +233,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -264,22 +245,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ResetUserPasswordRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of ResetUserPasswordRequest - * @throws IOException if the JSON string is invalid with respect to ResetUserPasswordRequest - */ + /** + * Create an instance of ResetUserPasswordRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResetUserPasswordRequest + * @throws IOException if the JSON string is invalid with respect to ResetUserPasswordRequest + */ public static ResetUserPasswordRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ResetUserPasswordRequest.class); } - /** - * Convert an instance of ResetUserPasswordRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ResetUserPasswordRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java index fafbf1e..9becf5c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -79,10 +78,5 @@ public ResultFormat read(final JsonReader jsonReader) throws IOException { return ResultFormat.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ResultFormat.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java b/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java index 49c833f..1cec21f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -31,11 +30,11 @@ public enum RetryPolicy { ALWAYS("Always"), - ON_FAILURE("OnFailure"), + ONFAILURE("OnFailure"), - ON_ERROR("OnError"), + ONERROR("OnError"), - ON_TRANSIENT_ERROR("OnTransientError"); + ONTRANSIENTERROR("OnTransientError"); private String value; @@ -73,10 +72,5 @@ public RetryPolicy read(final JsonReader jsonReader) throws IOException { return RetryPolicy.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - RetryPolicy.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java index 1d8acba..bbb2e09 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java @@ -14,36 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Backoff; -import io.tiledb.cloud.rest_api.model.RetryPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,7 +41,8 @@ /** * RetryStrategy provides controls on how to retry a taskgraph node */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "RetryStrategy provides controls on how to retry a taskgraph node") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class RetryStrategy { public static final String SERIALIZED_NAME_BACKOFF = "backoff"; @SerializedName(SERIALIZED_NAME_BACKOFF) @@ -69,80 +60,96 @@ public class RetryStrategy { @SerializedName(SERIALIZED_NAME_RETRY_POLICY) private RetryPolicy retryPolicy; - public RetryStrategy() { + public RetryStrategy() { } public RetryStrategy backoff(Backoff backoff) { + this.backoff = backoff; return this; } - /** + /** * Get backoff * @return backoff - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Backoff getBackoff() { return backoff; } + public void setBackoff(Backoff backoff) { this.backoff = backoff; } public RetryStrategy expression(String expression) { + this.expression = expression; return this; } - /** + /** * Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not be retried and the retry strategy will be ignored * @return expression - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not be retried and the retry strategy will be ignored") + public String getExpression() { return expression; } + public void setExpression(String expression) { this.expression = expression; } public RetryStrategy limit(Integer limit) { + this.limit = limit; return this; } - /** + /** * Limit is the maximum number of retry attempts when retrying a container. It does not include the original container; the maximum number of total attempts will be `limit + 1`. * @return limit - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Limit is the maximum number of retry attempts when retrying a container. It does not include the original container; the maximum number of total attempts will be `limit + 1`.") + public Integer getLimit() { return limit; } + public void setLimit(Integer limit) { this.limit = limit; } public RetryStrategy retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; return this; } - /** + /** * Get retryPolicy * @return retryPolicy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public RetryPolicy getRetryPolicy() { return retryPolicy; } + public void setRetryPolicy(RetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; } @@ -157,10 +164,6 @@ public void setRetryPolicy(RetryPolicy retryPolicy) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RetryStrategy instance itself */ public RetryStrategy putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -172,8 +175,6 @@ public RetryStrategy putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -181,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -254,30 +252,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RetryStrategy - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RetryStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetryStrategy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (RetryStrategy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in RetryStrategy is not found in the empty JSON string", RetryStrategy.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `backoff` - if (jsonObj.get("backoff") != null && !jsonObj.get("backoff").isJsonNull()) { - Backoff.validateJsonElement(jsonObj.get("backoff")); + if (jsonObj.getAsJsonObject("backoff") != null) { + Backoff.validateJsonObject(jsonObj.getAsJsonObject("backoff")); } - if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { + if (jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } - // validate the optional field `retryPolicy` - if (jsonObj.get("retryPolicy") != null && !jsonObj.get("retryPolicy").isJsonNull()) { - RetryPolicy.validateJsonElement(jsonObj.get("retryPolicy")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -296,7 +291,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, RetryStrategy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -308,12 +303,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -322,9 +312,8 @@ else if (entry.getValue() instanceof Character) @Override public RetryStrategy read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance RetryStrategy instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -338,10 +327,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -352,22 +339,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RetryStrategy given an JSON string - * - * @param jsonString JSON string - * @return An instance of RetryStrategy - * @throws IOException if the JSON string is invalid with respect to RetryStrategy - */ + /** + * Create an instance of RetryStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetryStrategy + * @throws IOException if the JSON string is invalid with respect to RetryStrategy + */ public static RetryStrategy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RetryStrategy.class); } - /** - * Convert an instance of RetryStrategy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RetryStrategy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java index 4c63642..afeebfb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +43,8 @@ /** * Parameters for running sql query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Parameters for running sql query") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SQLParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -84,11 +76,11 @@ public class SQLParameters { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) - private List initCommands = new ArrayList<>(); + private List initCommands = null; public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) - private List parameters = new ArrayList<>(); + private List parameters = null; public static final String SERIALIZED_NAME_TASK_GRAPH_UUID = "task_graph_uuid"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_UUID) @@ -98,143 +90,172 @@ public class SQLParameters { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public SQLParameters() { + public SQLParameters() { } public SQLParameters name(String name) { + this.name = name; return this; } - /** + /** * name of task, optional * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of task, optional") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public SQLParameters query(String query) { + this.query = query; return this; } - /** + /** * query to run * @return query - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "query to run") + public String getQuery() { return query; } + public void setQuery(String query) { this.query = query; } public SQLParameters outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * Output array uri * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "s3://my_bucket/my_output_array", value = "Output array uri") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public SQLParameters storeResults(Boolean storeResults) { + this.storeResults = storeResults; return this; } - /** + /** * store results for later retrieval * @return storeResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "store results for later retrieval") + public Boolean getStoreResults() { return storeResults; } + public void setStoreResults(Boolean storeResults) { this.storeResults = storeResults; } public SQLParameters dontDownloadResults(Boolean dontDownloadResults) { + this.dontDownloadResults = dontDownloadResults; return this; } - /** + /** * Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\"). * @return dontDownloadResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\").") + public Boolean getDontDownloadResults() { return dontDownloadResults; } + public void setDontDownloadResults(Boolean dontDownloadResults) { this.dontDownloadResults = dontDownloadResults; } public SQLParameters resourceClass(String resourceClass) { + this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the SQL execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the SQL will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "standard", value = "The resource class to use for the SQL execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the SQL will execute in the standard resource class of the TileDB Cloud provider. ") + public String getResourceClass() { return resourceClass; } + public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public SQLParameters resultFormat(ResultFormat resultFormat) { + this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ResultFormat getResultFormat() { return resultFormat; } + public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public SQLParameters initCommands(List initCommands) { + this.initCommands = initCommands; return this; } @@ -247,21 +268,25 @@ public SQLParameters addInitCommandsItem(String initCommandsItem) { return this; } - /** + /** * Queries or commands to run before main query * @return initCommands - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Queries or commands to run before main query") + public List getInitCommands() { return initCommands; } + public void setInitCommands(List initCommands) { this.initCommands = initCommands; } public SQLParameters parameters(List parameters) { + this.parameters = parameters; return this; } @@ -274,53 +299,64 @@ public SQLParameters addParametersItem(Object parametersItem) { return this; } - /** + /** * SQL query parameters * @return parameters - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "SQL query parameters") + public List getParameters() { return parameters; } + public void setParameters(List parameters) { this.parameters = parameters; } public SQLParameters taskGraphUuid(String taskGraphUuid) { + this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") + public String getTaskGraphUuid() { return taskGraphUuid; } + public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public SQLParameters clientNodeUuid(String clientNodeUuid) { + this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") + public String getClientNodeUuid() { return clientNodeUuid; } + public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } @@ -335,10 +371,6 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SQLParameters instance itself */ public SQLParameters putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -350,8 +382,6 @@ public SQLParameters putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -359,9 +389,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -453,47 +480,44 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SQLParameters - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SQLParameters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SQLParameters + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SQLParameters.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SQLParameters is not found in the empty JSON string", SQLParameters.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("query") != null && !jsonObj.get("query").isJsonNull()) && !jsonObj.get("query").isJsonPrimitive()) { + if (jsonObj.get("query") != null && !jsonObj.get("query").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query").toString())); } - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonNull()) && !jsonObj.get("resource_class").isJsonPrimitive()) { + if (jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `resource_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_class").toString())); } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull() && !jsonObj.get("init_commands").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("init_commands").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull() && !jsonObj.get("parameters").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `parameters` to be an array in the JSON string but got `%s`", jsonObj.get("parameters").toString())); } - if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); } - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); } } @@ -514,7 +538,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SQLParameters value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -526,12 +550,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -540,9 +559,8 @@ else if (entry.getValue() instanceof Character) @Override public SQLParameters read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SQLParameters instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -556,10 +574,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -570,22 +586,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SQLParameters given an JSON string - * - * @param jsonString JSON string - * @return An instance of SQLParameters - * @throws IOException if the JSON string is invalid with respect to SQLParameters - */ + /** + * Create an instance of SQLParameters given an JSON string + * + * @param jsonString JSON string + * @return An instance of SQLParameters + * @throws IOException if the JSON string is invalid with respect to SQLParameters + */ public static SQLParameters fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SQLParameters.class); } - /** - * Convert an instance of SQLParameters to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SQLParameters to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java index 38d0496..717d6fc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java @@ -14,40 +14,31 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainCheckResult; -import io.tiledb.cloud.rest_api.model.DomainVerificationStatus; -import io.tiledb.cloud.rest_api.model.SSODomainSetup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,7 +46,8 @@ /** * The information used to set up a single-sign on connection to a customer domain. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The information used to set up a single-sign on connection to a customer domain. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SSODomainConfig { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -87,145 +79,174 @@ public class SSODomainConfig { public static final String SERIALIZED_NAME_CHECK_RESULTS = "check_results"; @SerializedName(SERIALIZED_NAME_CHECK_RESULTS) - private List checkResults = new ArrayList<>(); + private List checkResults = null; - public SSODomainConfig() { + public SSODomainConfig() { } public SSODomainConfig uuid(String uuid) { + this.uuid = uuid; return this; } - /** + /** * A server-generated ID for the configuration. * @return uuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A server-generated ID for the configuration.") + public String getUuid() { return uuid; } + public void setUuid(String uuid) { this.uuid = uuid; } public SSODomainConfig domain(String domain) { + this.domain = domain; return this; } - /** + /** * The fully-qualified domain (but with no trailing dot) to connect for single sign-on. This may not be changed after creation. * @return domain - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The fully-qualified domain (but with no trailing dot) to connect for single sign-on. This may not be changed after creation. ") + public String getDomain() { return domain; } + public void setDomain(String domain) { this.domain = domain; } public SSODomainConfig oidcIssuer(String oidcIssuer) { + this.oidcIssuer = oidcIssuer; return this; } - /** + /** * The URL of the OpenID Connect issuer that can be used to authenticate this domain's users. The prefix where the `/.well-known/openid-configuration` file can be found; usually without a trailing slash. * @return oidcIssuer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The URL of the OpenID Connect issuer that can be used to authenticate this domain's users. The prefix where the `/.well-known/openid-configuration` file can be found; usually without a trailing slash. ") + public String getOidcIssuer() { return oidcIssuer; } + public void setOidcIssuer(String oidcIssuer) { this.oidcIssuer = oidcIssuer; } public SSODomainConfig oidcClientId(String oidcClientId) { + this.oidcClientId = oidcClientId; return this; } - /** + /** * The OpenID Connect client ID for this SSO instance. * @return oidcClientId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The OpenID Connect client ID for this SSO instance.") + public String getOidcClientId() { return oidcClientId; } + public void setOidcClientId(String oidcClientId) { this.oidcClientId = oidcClientId; } public SSODomainConfig oidcClientSecret(String oidcClientSecret) { + this.oidcClientSecret = oidcClientSecret; return this; } - /** + /** * The OpenID Connect client secret for this SSO instance. * @return oidcClientSecret - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The OpenID Connect client secret for this SSO instance.") + public String getOidcClientSecret() { return oidcClientSecret; } + public void setOidcClientSecret(String oidcClientSecret) { this.oidcClientSecret = oidcClientSecret; } public SSODomainConfig domainSetup(SSODomainSetup domainSetup) { + this.domainSetup = domainSetup; return this; } - /** + /** * Get domainSetup * @return domainSetup - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SSODomainSetup getDomainSetup() { return domainSetup; } + public void setDomainSetup(SSODomainSetup domainSetup) { this.domainSetup = domainSetup; } public SSODomainConfig verificationStatus(DomainVerificationStatus verificationStatus) { + this.verificationStatus = verificationStatus; return this; } - /** + /** * Get verificationStatus * @return verificationStatus - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DomainVerificationStatus getVerificationStatus() { return verificationStatus; } + public void setVerificationStatus(DomainVerificationStatus verificationStatus) { this.verificationStatus = verificationStatus; } public SSODomainConfig checkResults(List checkResults) { + this.checkResults = checkResults; return this; } @@ -238,15 +259,18 @@ public SSODomainConfig addCheckResultsItem(DomainCheckResult checkResultsItem) { return this; } - /** + /** * A list of the results of recent attempts to verify this domain. * @return checkResults - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A list of the results of recent attempts to verify this domain. ") + public List getCheckResults() { return checkResults; } + public void setCheckResults(List checkResults) { this.checkResults = checkResults; } @@ -261,10 +285,6 @@ public void setCheckResults(List checkResults) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SSODomainConfig instance itself */ public SSODomainConfig putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -276,8 +296,6 @@ public SSODomainConfig putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -285,9 +303,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -381,55 +396,50 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SSODomainConfig - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SSODomainConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SSODomainConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SSODomainConfig.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfig is not found in the empty JSON string", SSODomainConfig.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - if ((jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) && !jsonObj.get("domain").isJsonPrimitive()) { + if (jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `domain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("domain").toString())); } - if ((jsonObj.get("oidc_issuer") != null && !jsonObj.get("oidc_issuer").isJsonNull()) && !jsonObj.get("oidc_issuer").isJsonPrimitive()) { + if (jsonObj.get("oidc_issuer") != null && !jsonObj.get("oidc_issuer").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `oidc_issuer` to be a primitive type in the JSON string but got `%s`", jsonObj.get("oidc_issuer").toString())); } - if ((jsonObj.get("oidc_client_id") != null && !jsonObj.get("oidc_client_id").isJsonNull()) && !jsonObj.get("oidc_client_id").isJsonPrimitive()) { + if (jsonObj.get("oidc_client_id") != null && !jsonObj.get("oidc_client_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `oidc_client_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("oidc_client_id").toString())); } - if ((jsonObj.get("oidc_client_secret") != null && !jsonObj.get("oidc_client_secret").isJsonNull()) && !jsonObj.get("oidc_client_secret").isJsonPrimitive()) { + if (jsonObj.get("oidc_client_secret") != null && !jsonObj.get("oidc_client_secret").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `oidc_client_secret` to be a primitive type in the JSON string but got `%s`", jsonObj.get("oidc_client_secret").toString())); } // validate the optional field `domain_setup` - if (jsonObj.get("domain_setup") != null && !jsonObj.get("domain_setup").isJsonNull()) { - SSODomainSetup.validateJsonElement(jsonObj.get("domain_setup")); + if (jsonObj.getAsJsonObject("domain_setup") != null) { + SSODomainSetup.validateJsonObject(jsonObj.getAsJsonObject("domain_setup")); } - // validate the optional field `verification_status` - if (jsonObj.get("verification_status") != null && !jsonObj.get("verification_status").isJsonNull()) { - DomainVerificationStatus.validateJsonElement(jsonObj.get("verification_status")); - } - if (jsonObj.get("check_results") != null && !jsonObj.get("check_results").isJsonNull()) { - JsonArray jsonArraycheckResults = jsonObj.getAsJsonArray("check_results"); - if (jsonArraycheckResults != null) { - // ensure the json data is an array - if (!jsonObj.get("check_results").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `check_results` to be an array in the JSON string but got `%s`", jsonObj.get("check_results").toString())); - } - - // validate the optional field `check_results` (array) - for (int i = 0; i < jsonArraycheckResults.size(); i++) { - DomainCheckResult.validateJsonElement(jsonArraycheckResults.get(i)); - }; + JsonArray jsonArraycheckResults = jsonObj.getAsJsonArray("check_results"); + if (jsonArraycheckResults != null) { + // ensure the json data is an array + if (!jsonObj.get("check_results").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `check_results` to be an array in the JSON string but got `%s`", jsonObj.get("check_results").toString())); } + + // validate the optional field `check_results` (array) + for (int i = 0; i < jsonArraycheckResults.size(); i++) { + DomainCheckResult.validateJsonObject(jsonArraycheckResults.get(i).getAsJsonObject()); + }; } } @@ -449,7 +459,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SSODomainConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -461,12 +471,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -475,9 +480,8 @@ else if (entry.getValue() instanceof Character) @Override public SSODomainConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SSODomainConfig instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -491,10 +495,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -505,22 +507,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SSODomainConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of SSODomainConfig - * @throws IOException if the JSON string is invalid with respect to SSODomainConfig - */ + /** + * Create an instance of SSODomainConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of SSODomainConfig + * @throws IOException if the JSON string is invalid with respect to SSODomainConfig + */ public static SSODomainConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SSODomainConfig.class); } - /** - * Convert an instance of SSODomainConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SSODomainConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java index 4e2cdfc..b5d3723 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.SSODomainConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,16 +44,18 @@ /** * The response to a request for the list of domain claims associated with a particular organization. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The response to a request for the list of domain claims associated with a particular organization. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SSODomainConfigResponse { public static final String SERIALIZED_NAME_DOMAIN_CONFIGS = "domain_configs"; @SerializedName(SERIALIZED_NAME_DOMAIN_CONFIGS) - private List domainConfigs = new ArrayList<>(); + private List domainConfigs = null; - public SSODomainConfigResponse() { + public SSODomainConfigResponse() { } public SSODomainConfigResponse domainConfigs(List domainConfigs) { + this.domainConfigs = domainConfigs; return this; } @@ -74,15 +68,18 @@ public SSODomainConfigResponse addDomainConfigsItem(SSODomainConfig domainConfig return this; } - /** + /** * Get domainConfigs * @return domainConfigs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getDomainConfigs() { return domainConfigs; } + public void setDomainConfigs(List domainConfigs) { this.domainConfigs = domainConfigs; } @@ -97,10 +94,6 @@ public void setDomainConfigs(List domainConfigs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SSODomainConfigResponse instance itself */ public SSODomainConfigResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +105,6 @@ public SSODomainConfigResponse putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +112,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +173,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SSODomainConfigResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SSODomainConfigResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SSODomainConfigResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SSODomainConfigResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfigResponse is not found in the empty JSON string", SSODomainConfigResponse.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("domain_configs") != null && !jsonObj.get("domain_configs").isJsonNull()) { - JsonArray jsonArraydomainConfigs = jsonObj.getAsJsonArray("domain_configs"); - if (jsonArraydomainConfigs != null) { - // ensure the json data is an array - if (!jsonObj.get("domain_configs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `domain_configs` to be an array in the JSON string but got `%s`", jsonObj.get("domain_configs").toString())); - } - - // validate the optional field `domain_configs` (array) - for (int i = 0; i < jsonArraydomainConfigs.size(); i++) { - SSODomainConfig.validateJsonElement(jsonArraydomainConfigs.get(i)); - }; + JsonArray jsonArraydomainConfigs = jsonObj.getAsJsonArray("domain_configs"); + if (jsonArraydomainConfigs != null) { + // ensure the json data is an array + if (!jsonObj.get("domain_configs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `domain_configs` to be an array in the JSON string but got `%s`", jsonObj.get("domain_configs").toString())); } + + // validate the optional field `domain_configs` (array) + for (int i = 0; i < jsonArraydomainConfigs.size(); i++) { + SSODomainConfig.validateJsonObject(jsonArraydomainConfigs.get(i).getAsJsonObject()); + }; } } @@ -230,7 +217,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SSODomainConfigResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +238,8 @@ else if (entry.getValue() instanceof Character) @Override public SSODomainConfigResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SSODomainConfigResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +253,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +265,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SSODomainConfigResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of SSODomainConfigResponse - * @throws IOException if the JSON string is invalid with respect to SSODomainConfigResponse - */ + /** + * Create an instance of SSODomainConfigResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SSODomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to SSODomainConfigResponse + */ public static SSODomainConfigResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SSODomainConfigResponse.class); } - /** - * Convert an instance of SSODomainConfigResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SSODomainConfigResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java index 94d9127..9db95ea 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Configuration settings to verify ownership of a given domain. At least one of these must be completed enable user login from the domain. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Configuration settings to verify ownership of a given domain. At least one of these must be completed enable user login from the domain. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SSODomainSetup { public static final String SERIALIZED_NAME_TXT = "txt"; @SerializedName(SERIALIZED_NAME_TXT) @@ -63,61 +56,73 @@ public class SSODomainSetup { @SerializedName(SERIALIZED_NAME_CNAME_DST) private String cnameDst; - public SSODomainSetup() { + public SSODomainSetup() { } public SSODomainSetup txt(String txt) { + this.txt = txt; return this; } - /** + /** * a DNS TXT record to set on the domain to claim. * @return txt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "a DNS TXT record to set on the domain to claim.") + public String getTxt() { return txt; } + public void setTxt(String txt) { this.txt = txt; } public SSODomainSetup cnameSrc(String cnameSrc) { + this.cnameSrc = cnameSrc; return this; } - /** + /** * a DNS name to set a CNAME record on * @return cnameSrc - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "a DNS name to set a CNAME record on") + public String getCnameSrc() { return cnameSrc; } + public void setCnameSrc(String cnameSrc) { this.cnameSrc = cnameSrc; } public SSODomainSetup cnameDst(String cnameDst) { + this.cnameDst = cnameDst; return this; } - /** + /** * the CNAME target of `cname_src`. * @return cnameDst - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the CNAME target of `cname_src`.") + public String getCnameDst() { return cnameDst; } + public void setCnameDst(String cnameDst) { this.cnameDst = cnameDst; } @@ -132,10 +137,6 @@ public void setCnameDst(String cnameDst) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SSODomainSetup instance itself */ public SSODomainSetup putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public SSODomainSetup putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SSODomainSetup - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SSODomainSetup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SSODomainSetup + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SSODomainSetup.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainSetup is not found in the empty JSON string", SSODomainSetup.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("txt") != null && !jsonObj.get("txt").isJsonNull()) && !jsonObj.get("txt").isJsonPrimitive()) { + if (jsonObj.get("txt") != null && !jsonObj.get("txt").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `txt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("txt").toString())); } - if ((jsonObj.get("cname_src") != null && !jsonObj.get("cname_src").isJsonNull()) && !jsonObj.get("cname_src").isJsonPrimitive()) { + if (jsonObj.get("cname_src") != null && !jsonObj.get("cname_src").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cname_src` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname_src").toString())); } - if ((jsonObj.get("cname_dst") != null && !jsonObj.get("cname_dst").isJsonNull()) && !jsonObj.get("cname_dst").isJsonPrimitive()) { + if (jsonObj.get("cname_dst") != null && !jsonObj.get("cname_dst").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cname_dst` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname_dst").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SSODomainSetup value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public SSODomainSetup read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SSODomainSetup instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SSODomainSetup given an JSON string - * - * @param jsonString JSON string - * @return An instance of SSODomainSetup - * @throws IOException if the JSON string is invalid with respect to SSODomainSetup - */ + /** + * Create an instance of SSODomainSetup given an JSON string + * + * @param jsonString JSON string + * @return An instance of SSODomainSetup + * @throws IOException if the JSON string is invalid with respect to SSODomainSetup + */ public static SSODomainSetup fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SSODomainSetup.class); } - /** - * Convert an instance of SSODomainSetup to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SSODomainSetup to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java index c71a9aa..9a07e4e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -77,10 +76,5 @@ public SSOProvider read(final JsonReader jsonReader) throws IOException { return SSOProvider.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - SSOProvider.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java index f3c175d..411de94 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java @@ -14,36 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -51,16 +42,17 @@ /** * SharePaymentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SharePaymentRequest { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = new ArrayList<>(); + private List namespaces = null; - public SharePaymentRequest() { + public SharePaymentRequest() { } public SharePaymentRequest namespaces(List namespaces) { + this.namespaces = namespaces; return this; } @@ -73,15 +65,18 @@ public SharePaymentRequest addNamespacesItem(String namespacesItem) { return this; } - /** + /** * Get namespaces * @return namespaces - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getNamespaces() { return namespaces; } + public void setNamespaces(List namespaces) { this.namespaces = namespaces; } @@ -96,10 +91,6 @@ public void setNamespaces(List namespaces) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SharePaymentRequest instance itself */ public SharePaymentRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -111,8 +102,6 @@ public SharePaymentRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -120,9 +109,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -184,21 +170,22 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SharePaymentRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SharePaymentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SharePaymentRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SharePaymentRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SharePaymentRequest is not found in the empty JSON string", SharePaymentRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); } } @@ -219,7 +206,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SharePaymentRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -231,12 +218,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -245,9 +227,8 @@ else if (entry.getValue() instanceof Character) @Override public SharePaymentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SharePaymentRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -261,10 +242,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -275,22 +254,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SharePaymentRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of SharePaymentRequest - * @throws IOException if the JSON string is invalid with respect to SharePaymentRequest - */ + /** + * Create an instance of SharePaymentRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of SharePaymentRequest + * @throws IOException if the JSON string is invalid with respect to SharePaymentRequest + */ public static SharePaymentRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SharePaymentRequest.class); } - /** - * Convert an instance of SharePaymentRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SharePaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java index bc5fa0d..7ec5b1e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java @@ -14,43 +14,34 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.FragmentMetadata; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Single Fragment info of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Single Fragment info of an array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SingleFragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_NAME = "ArraySchemaName"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_NAME) @@ -60,42 +51,50 @@ public class SingleFragmentInfo { @SerializedName(SERIALIZED_NAME_META) private FragmentMetadata meta; - public SingleFragmentInfo() { + public SingleFragmentInfo() { } public SingleFragmentInfo arraySchemaName(String arraySchemaName) { + this.arraySchemaName = arraySchemaName; return this; } - /** + /** * array schema name * @return arraySchemaName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "array schema name") + public String getArraySchemaName() { return arraySchemaName; } + public void setArraySchemaName(String arraySchemaName) { this.arraySchemaName = arraySchemaName; } public SingleFragmentInfo meta(FragmentMetadata meta) { + this.meta = meta; return this; } - /** + /** * Get meta * @return meta - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public FragmentMetadata getMeta() { return meta; } + public void setMeta(FragmentMetadata meta) { this.meta = meta; } @@ -110,10 +109,6 @@ public void setMeta(FragmentMetadata meta) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SingleFragmentInfo instance itself */ public SingleFragmentInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -125,8 +120,6 @@ public SingleFragmentInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -134,9 +127,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,25 +191,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SingleFragmentInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SingleFragmentInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SingleFragmentInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SingleFragmentInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SingleFragmentInfo is not found in the empty JSON string", SingleFragmentInfo.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("ArraySchemaName") != null && !jsonObj.get("ArraySchemaName").isJsonNull()) && !jsonObj.get("ArraySchemaName").isJsonPrimitive()) { + if (jsonObj.get("ArraySchemaName") != null && !jsonObj.get("ArraySchemaName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `ArraySchemaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ArraySchemaName").toString())); } // validate the optional field `meta` - if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { - FragmentMetadata.validateJsonElement(jsonObj.get("meta")); + if (jsonObj.getAsJsonObject("meta") != null) { + FragmentMetadata.validateJsonObject(jsonObj.getAsJsonObject("meta")); } } @@ -239,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SingleFragmentInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -251,12 +242,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -265,9 +251,8 @@ else if (entry.getValue() instanceof Character) @Override public SingleFragmentInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SingleFragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -281,10 +266,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -295,22 +278,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SingleFragmentInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of SingleFragmentInfo - * @throws IOException if the JSON string is invalid with respect to SingleFragmentInfo - */ + /** + * Create an instance of SingleFragmentInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of SingleFragmentInfo + * @throws IOException if the JSON string is invalid with respect to SingleFragmentInfo + */ public static SingleFragmentInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SingleFragmentInfo.class); } - /** - * Convert an instance of SingleFragmentInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SingleFragmentInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java index 938bdea..30a007c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java @@ -14,35 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +42,8 @@ /** * The path at which a given asset will be stored, and the credentials used to access that asset. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The path at which a given asset will be stored, and the credentials used to access that asset. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class StorageLocation { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -60,42 +53,50 @@ public class StorageLocation { @SerializedName(SERIALIZED_NAME_CREDENTIALS_NAME) private String credentialsName; - public StorageLocation() { + public StorageLocation() { } public StorageLocation path(String path) { + this.path = path; return this; } - /** + /** * The path to store this asset type. If unset, a suffix of the user's `default_s3_path` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this path; leaving it `null` (or absent) will leave the path unchanged. * @return path - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The path to store this asset type. If unset, a suffix of the user's `default_s3_path` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this path; leaving it `null` (or absent) will leave the path unchanged. ") + public String getPath() { return path; } + public void setPath(String path) { this.path = path; } public StorageLocation credentialsName(String credentialsName) { + this.credentialsName = credentialsName; return this; } - /** + /** * The name of the credentials used to acess this storage path. If unset, the `default_s3_path_credentials_name` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this name; leaving it `null` (or absent) will leave the name unchanged. * @return credentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the credentials used to acess this storage path. If unset, the `default_s3_path_credentials_name` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this name; leaving it `null` (or absent) will leave the name unchanged. ") + public String getCredentialsName() { return credentialsName; } + public void setCredentialsName(String credentialsName) { this.credentialsName = credentialsName; } @@ -110,10 +111,6 @@ public void setCredentialsName(String credentialsName) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the StorageLocation instance itself */ public StorageLocation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -125,8 +122,6 @@ public StorageLocation putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -134,9 +129,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,23 +204,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to StorageLocation - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!StorageLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to StorageLocation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (StorageLocation.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in StorageLocation is not found in the empty JSON string", StorageLocation.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + if (jsonObj.get("path") != null && !jsonObj.get("path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } - if ((jsonObj.get("credentials_name") != null && !jsonObj.get("credentials_name").isJsonNull()) && !jsonObj.get("credentials_name").isJsonPrimitive()) { + if (jsonObj.get("credentials_name") != null && !jsonObj.get("credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentials_name").toString())); } } @@ -249,7 +242,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, StorageLocation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -261,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -275,9 +263,8 @@ else if (entry.getValue() instanceof Character) @Override public StorageLocation read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance StorageLocation instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -291,10 +278,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -305,22 +290,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of StorageLocation given an JSON string - * - * @param jsonString JSON string - * @return An instance of StorageLocation - * @throws IOException if the JSON string is invalid with respect to StorageLocation - */ + /** + * Create an instance of StorageLocation given an JSON string + * + * @param jsonString JSON string + * @return An instance of StorageLocation + * @throws IOException if the JSON string is invalid with respect to StorageLocation + */ public static StorageLocation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, StorageLocation.class); } - /** - * Convert an instance of StorageLocation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of StorageLocation to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java index a29f6b2..abe058d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.SubarrayRanges; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +44,8 @@ /** * A Subarray */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A Subarray") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Subarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -61,31 +53,36 @@ public class Subarray { public static final String SERIALIZED_NAME_RANGES = "ranges"; @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = new ArrayList<>(); + private List ranges = null; - public Subarray() { + public Subarray() { } public Subarray layout(Layout layout) { + this.layout = layout; return this; } - /** + /** * Get layout * @return layout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Layout getLayout() { return layout; } + public void setLayout(Layout layout) { this.layout = layout; } public Subarray ranges(List ranges) { + this.ranges = ranges; return this; } @@ -98,15 +95,18 @@ public Subarray addRangesItem(SubarrayRanges rangesItem) { return this; } - /** + /** * List of 1D ranges, one per dimension * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of 1D ranges, one per dimension") + public List getRanges() { return ranges; } + public void setRanges(List ranges) { this.ranges = ranges; } @@ -121,10 +121,6 @@ public void setRanges(List ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Subarray instance itself */ public Subarray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public Subarray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Subarray - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Subarray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Subarray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Subarray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Subarray is not found in the empty JSON string", Subarray.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); - if (jsonArrayranges != null) { - // ensure the json data is an array - if (!jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); - } - - // validate the optional field `ranges` (array) - for (int i = 0; i < jsonArrayranges.size(); i++) { - SubarrayRanges.validateJsonElement(jsonArrayranges.get(i)); - }; + JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); + if (jsonArrayranges != null) { + // ensure the json data is an array + if (!jsonObj.get("ranges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); } + + // validate the optional field `ranges` (array) + for (int i = 0; i < jsonArrayranges.size(); i++) { + SubarrayRanges.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); + }; } } @@ -261,7 +247,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Subarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +259,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +268,8 @@ else if (entry.getValue() instanceof Character) @Override public Subarray read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Subarray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +283,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +295,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Subarray given an JSON string - * - * @param jsonString JSON string - * @return An instance of Subarray - * @throws IOException if the JSON string is invalid with respect to Subarray - */ + /** + * Create an instance of Subarray given an JSON string + * + * @param jsonString JSON string + * @return An instance of Subarray + * @throws IOException if the JSON string is invalid with respect to Subarray + */ public static Subarray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Subarray.class); } - /** - * Convert an instance of Subarray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Subarray to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java index bd1aefc..f4aae13 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java @@ -14,40 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AttributeBufferSize; -import io.tiledb.cloud.rest_api.model.Subarray; -import io.tiledb.cloud.rest_api.model.SubarrayPartitionerCurrent; -import io.tiledb.cloud.rest_api.model.SubarrayPartitionerState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,7 +44,8 @@ /** * The subarray partitioner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The subarray partitioner") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SubarrayPartitioner { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -63,7 +53,7 @@ public class SubarrayPartitioner { public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) - private List budget = new ArrayList<>(); + private List budget = null; public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -81,29 +71,34 @@ public class SubarrayPartitioner { @SerializedName(SERIALIZED_NAME_MEMORY_BUDGET_VAR) private Integer memoryBudgetVar; - public SubarrayPartitioner() { + public SubarrayPartitioner() { } public SubarrayPartitioner subarray(Subarray subarray) { + this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Subarray getSubarray() { return subarray; } + public void setSubarray(Subarray subarray) { this.subarray = subarray; } public SubarrayPartitioner budget(List budget) { + this.budget = budget; return this; } @@ -116,91 +111,110 @@ public SubarrayPartitioner addBudgetItem(AttributeBufferSize budgetItem) { return this; } - /** + /** * Result size budget (in bytes) for all attributes. * @return budget - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Result size budget (in bytes) for all attributes.") + public List getBudget() { return budget; } + public void setBudget(List budget) { this.budget = budget; } public SubarrayPartitioner current(SubarrayPartitionerCurrent current) { + this.current = current; return this; } - /** + /** * Get current * @return current - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SubarrayPartitionerCurrent getCurrent() { return current; } + public void setCurrent(SubarrayPartitionerCurrent current) { this.current = current; } public SubarrayPartitioner state(SubarrayPartitionerState state) { + this.state = state; return this; } - /** + /** * Get state * @return state - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public SubarrayPartitionerState getState() { return state; } + public void setState(SubarrayPartitionerState state) { this.state = state; } public SubarrayPartitioner memoryBudget(Integer memoryBudget) { + this.memoryBudget = memoryBudget; return this; } - /** + /** * The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes * @return memoryBudget - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes") + public Integer getMemoryBudget() { return memoryBudget; } + public void setMemoryBudget(Integer memoryBudget) { this.memoryBudget = memoryBudget; } public SubarrayPartitioner memoryBudgetVar(Integer memoryBudgetVar) { + this.memoryBudgetVar = memoryBudgetVar; return this; } - /** + /** * The memory budget for the var-sized attributes * @return memoryBudgetVar - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The memory budget for the var-sized attributes") + public Integer getMemoryBudgetVar() { return memoryBudgetVar; } + public void setMemoryBudgetVar(Integer memoryBudgetVar) { this.memoryBudgetVar = memoryBudgetVar; } @@ -215,10 +229,6 @@ public void setMemoryBudgetVar(Integer memoryBudgetVar) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayPartitioner instance itself */ public SubarrayPartitioner putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -230,8 +240,6 @@ public SubarrayPartitioner putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -239,9 +247,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -318,44 +323,43 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SubarrayPartitioner - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SubarrayPartitioner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SubarrayPartitioner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayPartitioner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitioner is not found in the empty JSON string", SubarrayPartitioner.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonElement(jsonObj.get("subarray")); + if (jsonObj.getAsJsonObject("subarray") != null) { + Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } - if (jsonObj.get("budget") != null && !jsonObj.get("budget").isJsonNull()) { - JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); - if (jsonArraybudget != null) { - // ensure the json data is an array - if (!jsonObj.get("budget").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); - } - - // validate the optional field `budget` (array) - for (int i = 0; i < jsonArraybudget.size(); i++) { - AttributeBufferSize.validateJsonElement(jsonArraybudget.get(i)); - }; + JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); + if (jsonArraybudget != null) { + // ensure the json data is an array + if (!jsonObj.get("budget").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); } + + // validate the optional field `budget` (array) + for (int i = 0; i < jsonArraybudget.size(); i++) { + AttributeBufferSize.validateJsonObject(jsonArraybudget.get(i).getAsJsonObject()); + }; } // validate the optional field `current` - if (jsonObj.get("current") != null && !jsonObj.get("current").isJsonNull()) { - SubarrayPartitionerCurrent.validateJsonElement(jsonObj.get("current")); + if (jsonObj.getAsJsonObject("current") != null) { + SubarrayPartitionerCurrent.validateJsonObject(jsonObj.getAsJsonObject("current")); } // validate the optional field `state` - if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { - SubarrayPartitionerState.validateJsonElement(jsonObj.get("state")); + if (jsonObj.getAsJsonObject("state") != null) { + SubarrayPartitionerState.validateJsonObject(jsonObj.getAsJsonObject("state")); } } @@ -375,7 +379,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayPartitioner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -387,12 +391,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -401,9 +400,8 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayPartitioner read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SubarrayPartitioner instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -417,10 +415,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -431,22 +427,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayPartitioner given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitioner - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitioner - */ + /** + * Create an instance of SubarrayPartitioner given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitioner + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitioner + */ public static SubarrayPartitioner fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayPartitioner.class); } - /** - * Convert an instance of SubarrayPartitioner to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayPartitioner to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java index fe2fc02..1d9940c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Subarray; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * The current partition info */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The current partition info") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SubarrayPartitionerCurrent { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -68,80 +60,96 @@ public class SubarrayPartitionerCurrent { @SerializedName(SERIALIZED_NAME_SPLIT_MULTI_RANGE) private Boolean splitMultiRange; - public SubarrayPartitionerCurrent() { + public SubarrayPartitionerCurrent() { } public SubarrayPartitionerCurrent subarray(Subarray subarray) { + this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Subarray getSubarray() { return subarray; } + public void setSubarray(Subarray subarray) { this.subarray = subarray; } public SubarrayPartitionerCurrent start(Integer start) { + this.start = start; return this; } - /** + /** * PartitionInfo start * @return start - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "PartitionInfo start") + public Integer getStart() { return start; } + public void setStart(Integer start) { this.start = start; } public SubarrayPartitionerCurrent end(Integer end) { + this.end = end; return this; } - /** + /** * PartitionInfo end * @return end - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "PartitionInfo end") + public Integer getEnd() { return end; } + public void setEnd(Integer end) { this.end = end; } public SubarrayPartitionerCurrent splitMultiRange(Boolean splitMultiRange) { + this.splitMultiRange = splitMultiRange; return this; } - /** + /** * PartitionInfo splitMultiRange * @return splitMultiRange - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "PartitionInfo splitMultiRange") + public Boolean getSplitMultiRange() { return splitMultiRange; } + public void setSplitMultiRange(Boolean splitMultiRange) { this.splitMultiRange = splitMultiRange; } @@ -156,10 +164,6 @@ public void setSplitMultiRange(Boolean splitMultiRange) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayPartitionerCurrent instance itself */ public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,8 +175,6 @@ public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,22 +252,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SubarrayPartitionerCurrent - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SubarrayPartitionerCurrent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SubarrayPartitionerCurrent + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayPartitionerCurrent.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerCurrent is not found in the empty JSON string", SubarrayPartitionerCurrent.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonElement(jsonObj.get("subarray")); + if (jsonObj.getAsJsonObject("subarray") != null) { + Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } } @@ -288,7 +288,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -300,12 +300,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -314,9 +309,8 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayPartitionerCurrent read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SubarrayPartitionerCurrent instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -330,10 +324,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -344,22 +336,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayPartitionerCurrent given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitionerCurrent - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerCurrent - */ + /** + * Create an instance of SubarrayPartitionerCurrent given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitionerCurrent + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerCurrent + */ public static SubarrayPartitionerCurrent fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayPartitionerCurrent.class); } - /** - * Convert an instance of SubarrayPartitionerCurrent to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayPartitionerCurrent to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java index f8712ee..1ce309d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Subarray; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +44,8 @@ /** * The state information for the remaining partitions to be produced */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The state information for the remaining partitions to be produced") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -64,54 +57,63 @@ public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_SINGLE_RANGE = "singleRange"; @SerializedName(SERIALIZED_NAME_SINGLE_RANGE) - private List singleRange = new ArrayList<>(); + private List singleRange = null; public static final String SERIALIZED_NAME_MULTI_RANGE = "multiRange"; @SerializedName(SERIALIZED_NAME_MULTI_RANGE) - private List multiRange = new ArrayList<>(); + private List multiRange = null; - public SubarrayPartitionerState() { + public SubarrayPartitionerState() { } public SubarrayPartitionerState start(Integer start) { + this.start = start; return this; } - /** + /** * State start * @return start - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "State start") + public Integer getStart() { return start; } + public void setStart(Integer start) { this.start = start; } public SubarrayPartitionerState end(Integer end) { + this.end = end; return this; } - /** + /** * State end * @return end - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "State end") + public Integer getEnd() { return end; } + public void setEnd(Integer end) { this.end = end; } public SubarrayPartitionerState singleRange(List singleRange) { + this.singleRange = singleRange; return this; } @@ -124,21 +126,25 @@ public SubarrayPartitionerState addSingleRangeItem(Subarray singleRangeItem) { return this; } - /** + /** * State singleRange * @return singleRange - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "State singleRange") + public List getSingleRange() { return singleRange; } + public void setSingleRange(List singleRange) { this.singleRange = singleRange; } public SubarrayPartitionerState multiRange(List multiRange) { + this.multiRange = multiRange; return this; } @@ -151,15 +157,18 @@ public SubarrayPartitionerState addMultiRangeItem(Subarray multiRangeItem) { return this; } - /** + /** * State multiRange * @return multiRange - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "State multiRange") + public List getMultiRange() { return multiRange; } + public void setMultiRange(List multiRange) { this.multiRange = multiRange; } @@ -174,10 +183,6 @@ public void setMultiRange(List multiRange) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayPartitionerState instance itself */ public SubarrayPartitionerState putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -189,8 +194,6 @@ public SubarrayPartitionerState putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -198,9 +201,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -271,46 +271,43 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SubarrayPartitionerState - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SubarrayPartitionerState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SubarrayPartitionerState + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayPartitionerState.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerState is not found in the empty JSON string", SubarrayPartitionerState.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("singleRange") != null && !jsonObj.get("singleRange").isJsonNull()) { - JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); - if (jsonArraysingleRange != null) { - // ensure the json data is an array - if (!jsonObj.get("singleRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); - } - - // validate the optional field `singleRange` (array) - for (int i = 0; i < jsonArraysingleRange.size(); i++) { - Subarray.validateJsonElement(jsonArraysingleRange.get(i)); - }; + JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); + if (jsonArraysingleRange != null) { + // ensure the json data is an array + if (!jsonObj.get("singleRange").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); } + + // validate the optional field `singleRange` (array) + for (int i = 0; i < jsonArraysingleRange.size(); i++) { + Subarray.validateJsonObject(jsonArraysingleRange.get(i).getAsJsonObject()); + }; } - if (jsonObj.get("multiRange") != null && !jsonObj.get("multiRange").isJsonNull()) { - JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); - if (jsonArraymultiRange != null) { - // ensure the json data is an array - if (!jsonObj.get("multiRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); - } - - // validate the optional field `multiRange` (array) - for (int i = 0; i < jsonArraymultiRange.size(); i++) { - Subarray.validateJsonElement(jsonArraymultiRange.get(i)); - }; + JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); + if (jsonArraymultiRange != null) { + // ensure the json data is an array + if (!jsonObj.get("multiRange").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); } + + // validate the optional field `multiRange` (array) + for (int i = 0; i < jsonArraymultiRange.size(); i++) { + Subarray.validateJsonObject(jsonArraymultiRange.get(i).getAsJsonObject()); + }; } } @@ -330,7 +327,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayPartitionerState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -342,12 +339,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -356,9 +348,8 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayPartitionerState read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SubarrayPartitionerState instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -372,10 +363,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -386,22 +375,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayPartitionerState given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitionerState - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerState - */ + /** + * Create an instance of SubarrayPartitionerState given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitionerState + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerState + */ public static SubarrayPartitionerState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayPartitionerState.class); } - /** - * Convert an instance of SubarrayPartitionerState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayPartitionerState to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java index 023d9fd..25cd96c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,7 +43,8 @@ /** * A set of 1D ranges for a subarray */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A set of 1D ranges for a subarray") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class SubarrayRanges { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -64,50 +56,59 @@ public class SubarrayRanges { public static final String SERIALIZED_NAME_BUFFER = "buffer"; @SerializedName(SERIALIZED_NAME_BUFFER) - private List buffer = new ArrayList<>(); + private List buffer = null; - public SubarrayRanges() { + public SubarrayRanges() { } public SubarrayRanges type(Datatype type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Datatype getType() { return type; } + public void setType(Datatype type) { this.type = type; } public SubarrayRanges hasDefaultRange(Boolean hasDefaultRange) { + this.hasDefaultRange = hasDefaultRange; return this; } - /** + /** * True if the range is the default range * @return hasDefaultRange - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "True if the range is the default range") + public Boolean getHasDefaultRange() { return hasDefaultRange; } + public void setHasDefaultRange(Boolean hasDefaultRange) { this.hasDefaultRange = hasDefaultRange; } public SubarrayRanges buffer(List buffer) { + this.buffer = buffer; return this; } @@ -120,15 +121,18 @@ public SubarrayRanges addBufferItem(Integer bufferItem) { return this; } - /** + /** * The bytes of the ranges * @return buffer - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The bytes of the ranges") + public List getBuffer() { return buffer; } + public void setBuffer(List buffer) { this.buffer = buffer; } @@ -143,10 +147,6 @@ public void setBuffer(List buffer) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayRanges instance itself */ public SubarrayRanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -158,8 +158,6 @@ public SubarrayRanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -167,9 +165,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -237,25 +232,22 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SubarrayRanges - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SubarrayRanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SubarrayRanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayRanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayRanges is not found in the empty JSON string", SubarrayRanges.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - Datatype.validateJsonElement(jsonObj.get("type")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonNull() && !jsonObj.get("buffer").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buffer` to be an array in the JSON string but got `%s`", jsonObj.get("buffer").toString())); } } @@ -276,7 +268,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -288,12 +280,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -302,9 +289,8 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayRanges read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance SubarrayRanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -318,10 +304,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -332,22 +316,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayRanges - * @throws IOException if the JSON string is invalid with respect to SubarrayRanges - */ + /** + * Create an instance of SubarrayRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayRanges + * @throws IOException if the JSON string is invalid with respect to SubarrayRanges + */ public static SubarrayRanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayRanges.class); } - /** - * Convert an instance of SubarrayRanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayRanges to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java index b4558e4..e5ce381 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java @@ -14,45 +14,37 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Pricing; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Subscription of a user (customer) to another user's arrays */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Subscription of a user (customer) to another user's arrays") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Subscription { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -68,69 +60,82 @@ public class Subscription { public static final String SERIALIZED_NAME_PRICING = "pricing"; @SerializedName(SERIALIZED_NAME_PRICING) - private List pricing = new ArrayList<>(); + private List pricing = null; - public Subscription() { + public Subscription() { } public Subscription id(String id) { + this.id = id; return this; } - /** + /** * Unique ID of subscription as defined by Stripe * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "subscriptionID", value = "Unique ID of subscription as defined by Stripe") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public Subscription ownerNamespaceUuid(String ownerNamespaceUuid) { + this.ownerNamespaceUuid = ownerNamespaceUuid; return this; } - /** + /** * Unique ID of the array (product) owner * @return ownerNamespaceUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the array (product) owner") + public String getOwnerNamespaceUuid() { return ownerNamespaceUuid; } + public void setOwnerNamespaceUuid(String ownerNamespaceUuid) { this.ownerNamespaceUuid = ownerNamespaceUuid; } public Subscription customerNamespaceUuid(String customerNamespaceUuid) { + this.customerNamespaceUuid = customerNamespaceUuid; return this; } - /** + /** * Unique ID of the array (product) user (customer) * @return customerNamespaceUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the array (product) user (customer)") + public String getCustomerNamespaceUuid() { return customerNamespaceUuid; } + public void setCustomerNamespaceUuid(String customerNamespaceUuid) { this.customerNamespaceUuid = customerNamespaceUuid; } public Subscription pricing(List pricing) { + this.pricing = pricing; return this; } @@ -143,15 +148,18 @@ public Subscription addPricingItem(Pricing pricingItem) { return this; } - /** + /** * list of pricing used by this subscription * @return pricing - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of pricing used by this subscription") + public List getPricing() { return pricing; } + public void setPricing(List pricing) { this.pricing = pricing; } @@ -166,10 +174,6 @@ public void setPricing(List pricing) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Subscription instance itself */ public Subscription putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -181,8 +185,6 @@ public Subscription putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -190,9 +192,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -263,41 +262,40 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Subscription - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Subscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Subscription + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Subscription.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Subscription is not found in the empty JSON string", Subscription.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonNull()) && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { + if (jsonObj.get("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `owner_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owner_namespace_uuid").toString())); } - if ((jsonObj.get("customer_namespace_uuid") != null && !jsonObj.get("customer_namespace_uuid").isJsonNull()) && !jsonObj.get("customer_namespace_uuid").isJsonPrimitive()) { + if (jsonObj.get("customer_namespace_uuid") != null && !jsonObj.get("customer_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `customer_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customer_namespace_uuid").toString())); } - if (jsonObj.get("pricing") != null && !jsonObj.get("pricing").isJsonNull()) { - JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); - if (jsonArraypricing != null) { - // ensure the json data is an array - if (!jsonObj.get("pricing").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); - } - - // validate the optional field `pricing` (array) - for (int i = 0; i < jsonArraypricing.size(); i++) { - Pricing.validateJsonElement(jsonArraypricing.get(i)); - }; + JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); + if (jsonArraypricing != null) { + // ensure the json data is an array + if (!jsonObj.get("pricing").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); } + + // validate the optional field `pricing` (array) + for (int i = 0; i < jsonArraypricing.size(); i++) { + Pricing.validateJsonObject(jsonArraypricing.get(i).getAsJsonObject()); + }; } } @@ -317,7 +315,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Subscription value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -329,12 +327,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -343,9 +336,8 @@ else if (entry.getValue() instanceof Character) @Override public Subscription read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Subscription instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -359,10 +351,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -373,22 +363,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Subscription given an JSON string - * - * @param jsonString JSON string - * @return An instance of Subscription - * @throws IOException if the JSON string is invalid with respect to Subscription - */ + /** + * Create an instance of Subscription given an JSON string + * + * @param jsonString JSON string + * @return An instance of Subscription + * @throws IOException if the JSON string is invalid with respect to Subscription + */ public static Subscription fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Subscription.class); } - /** - * Convert an instance of Subscription to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Subscription to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java index 99f5119..7604c55 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TGQueryRanges; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * The details of an array that should be queried and provided as the input to a UDF Node. This is essentially a `UDFArrayDetails`, but you’re allowed to provide most of the values as Nodes if you want. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The details of an array that should be queried and provided as the input to a UDF Node. This is essentially a `UDFArrayDetails`, but you’re allowed to provide most of the values as Nodes if you want. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGArrayNodeData { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -64,61 +56,73 @@ public class TGArrayNodeData { @SerializedName(SERIALIZED_NAME_BUFFERS) private Object buffers; - public TGArrayNodeData() { + public TGArrayNodeData() { } public TGArrayNodeData uri(Object uri) { + this.uri = uri; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") + public Object getUri() { return uri; } + public void setUri(Object uri) { this.uri = uri; } public TGArrayNodeData ranges(TGQueryRanges ranges) { + this.ranges = ranges; return this; } - /** + /** * Get ranges * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TGQueryRanges getRanges() { return ranges; } + public void setRanges(TGQueryRanges ranges) { this.ranges = ranges; } public TGArrayNodeData buffers(Object buffers) { + this.buffers = buffers; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return buffers - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") + public Object getBuffers() { return buffers; } + public void setBuffers(Object buffers) { this.buffers = buffers; } @@ -133,10 +137,6 @@ public void setBuffers(Object buffers) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGArrayNodeData instance itself */ public TGArrayNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -148,8 +148,6 @@ public TGArrayNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -157,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -227,22 +222,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGArrayNodeData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGArrayNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGArrayNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGArrayNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGArrayNodeData is not found in the empty JSON string", TGArrayNodeData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `ranges` - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - TGQueryRanges.validateJsonElement(jsonObj.get("ranges")); + if (jsonObj.getAsJsonObject("ranges") != null) { + TGQueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); } } @@ -262,7 +258,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGArrayNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -274,12 +270,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -288,9 +279,8 @@ else if (entry.getValue() instanceof Character) @Override public TGArrayNodeData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGArrayNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -304,10 +294,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -318,22 +306,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGArrayNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGArrayNodeData - * @throws IOException if the JSON string is invalid with respect to TGArrayNodeData - */ + /** + * Create an instance of TGArrayNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGArrayNodeData + * @throws IOException if the JSON string is invalid with respect to TGArrayNodeData + */ public static TGArrayNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGArrayNodeData.class); } - /** - * Convert an instance of TGArrayNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGArrayNodeData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java index 453929a..6a81ab2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java @@ -14,35 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +42,8 @@ /** * Specifies that a node is an “input value”, allowing for parameterized task graphs. An input node may not depend upon any other nodes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Specifies that a node is an “input value”, allowing for parameterized task graphs. An input node may not depend upon any other nodes. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGInputNodeData { public static final String SERIALIZED_NAME_DEFAULT_VALUE = "default_value"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) @@ -60,42 +53,50 @@ public class TGInputNodeData { @SerializedName(SERIALIZED_NAME_DATATYPE) private String datatype; - public TGInputNodeData() { + public TGInputNodeData() { } public TGInputNodeData defaultValue(Object defaultValue) { + this.defaultValue = defaultValue; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return defaultValue - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") + public Object getDefaultValue() { return defaultValue; } + public void setDefaultValue(Object defaultValue) { this.defaultValue = defaultValue; } public TGInputNodeData datatype(String datatype) { + this.datatype = datatype; return this; } - /** + /** * An annotation of what datatype this node is supposed to be. Conventionally, this is a Python-format type annotation, but it’s purely for documentation purposes and not validated. * @return datatype - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An annotation of what datatype this node is supposed to be. Conventionally, this is a Python-format type annotation, but it’s purely for documentation purposes and not validated. ") + public String getDatatype() { return datatype; } + public void setDatatype(String datatype) { this.datatype = datatype; } @@ -110,10 +111,6 @@ public void setDatatype(String datatype) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGInputNodeData instance itself */ public TGInputNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -125,8 +122,6 @@ public TGInputNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -134,9 +129,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,20 +204,21 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGInputNodeData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGInputNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGInputNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGInputNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGInputNodeData is not found in the empty JSON string", TGInputNodeData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("datatype") != null && !jsonObj.get("datatype").isJsonNull()) && !jsonObj.get("datatype").isJsonPrimitive()) { + if (jsonObj.get("datatype") != null && !jsonObj.get("datatype").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `datatype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datatype").toString())); } } @@ -246,7 +239,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGInputNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -258,12 +251,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -272,9 +260,8 @@ else if (entry.getValue() instanceof Character) @Override public TGInputNodeData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGInputNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -288,10 +275,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -302,22 +287,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGInputNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGInputNodeData - * @throws IOException if the JSON string is invalid with respect to TGInputNodeData - */ + /** + * Create an instance of TGInputNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGInputNodeData + * @throws IOException if the JSON string is invalid with respect to TGInputNodeData + */ public static TGInputNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGInputNodeData.class); } - /** - * Convert an instance of TGInputNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGInputNodeData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java index 30ef336..3e7d4bd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * Parameterizable version of `QueryRanges`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Parameterizable version of `QueryRanges`.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGQueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -64,61 +56,73 @@ public class TGQueryRanges { @SerializedName(SERIALIZED_NAME_RANGES) private Object ranges; - public TGQueryRanges() { + public TGQueryRanges() { } public TGQueryRanges layout(Layout layout) { + this.layout = layout; return this; } - /** + /** * Get layout * @return layout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Layout getLayout() { return layout; } + public void setLayout(Layout layout) { this.layout = layout; } public TGQueryRanges friendlyRanges(Object friendlyRanges) { + this.friendlyRanges = friendlyRanges; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return friendlyRanges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") + public Object getFriendlyRanges() { return friendlyRanges; } + public void setFriendlyRanges(Object friendlyRanges) { this.friendlyRanges = friendlyRanges; } public TGQueryRanges ranges(Object ranges) { + this.ranges = ranges; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") + public Object getRanges() { return ranges; } + public void setRanges(Object ranges) { this.ranges = ranges; } @@ -133,10 +137,6 @@ public void setRanges(Object ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGQueryRanges instance itself */ public TGQueryRanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -148,8 +148,6 @@ public TGQueryRanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -157,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -227,23 +222,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGQueryRanges - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGQueryRanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGQueryRanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGQueryRanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGQueryRanges is not found in the empty JSON string", TGQueryRanges.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -262,7 +254,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGQueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -274,12 +266,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -288,9 +275,8 @@ else if (entry.getValue() instanceof Character) @Override public TGQueryRanges read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGQueryRanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -304,10 +290,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -318,22 +302,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGQueryRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGQueryRanges - * @throws IOException if the JSON string is invalid with respect to TGQueryRanges - */ + /** + * Create an instance of TGQueryRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGQueryRanges + * @throws IOException if the JSON string is invalid with respect to TGQueryRanges + */ public static TGQueryRanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGQueryRanges.class); } - /** - * Convert an instance of TGQueryRanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGQueryRanges to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java index 283243e..d2036fd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java @@ -14,38 +14,30 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,11 +45,12 @@ /** * A node specifying an SQL query to execute in TileDB Cloud. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A node specifying an SQL query to execute in TileDB Cloud. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGSQLNodeData { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) - private List initCommands = new ArrayList<>(); + private List initCommands = null; public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -65,7 +58,7 @@ public class TGSQLNodeData { public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) - private List parameters = new ArrayList<>(); + private List parameters = null; public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -75,10 +68,11 @@ public class TGSQLNodeData { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; - public TGSQLNodeData() { + public TGSQLNodeData() { } public TGSQLNodeData initCommands(List initCommands) { + this.initCommands = initCommands; return this; } @@ -91,40 +85,48 @@ public TGSQLNodeData addInitCommandsItem(String initCommandsItem) { return this; } - /** + /** * The commands to execute before running the query itself. * @return initCommands - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The commands to execute before running the query itself.") + public List getInitCommands() { return initCommands; } + public void setInitCommands(List initCommands) { this.initCommands = initCommands; } public TGSQLNodeData query(String query) { + this.query = query; return this; } - /** + /** * The text of the SQL query to execute. Parameters are substituted in for `?`s, just as in a regular MariaDB query. * @return query - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The text of the SQL query to execute. Parameters are substituted in for `?`s, just as in a regular MariaDB query. ") + public String getQuery() { return query; } + public void setQuery(String query) { this.query = query; } public TGSQLNodeData parameters(List parameters) { + this.parameters = parameters; return this; } @@ -137,53 +139,64 @@ public TGSQLNodeData addParametersItem(Object parametersItem) { return this; } - /** + /** * The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. * @return parameters - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. ") + public List getParameters() { return parameters; } + public void setParameters(List parameters) { this.parameters = parameters; } public TGSQLNodeData resultFormat(ResultFormat resultFormat) { + this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ResultFormat getResultFormat() { return resultFormat; } + public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public TGSQLNodeData namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * If set, the non-default namespace to execute this SQL query under. * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the non-default namespace to execute this SQL query under. ") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -198,10 +211,6 @@ public void setNamespace(String namespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGSQLNodeData instance itself */ public TGSQLNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -213,8 +222,6 @@ public TGSQLNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -222,9 +229,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -309,35 +313,32 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGSQLNodeData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGSQLNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGSQLNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGSQLNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGSQLNodeData is not found in the empty JSON string", TGSQLNodeData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull() && !jsonObj.get("init_commands").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("init_commands").toString())); } - if ((jsonObj.get("query") != null && !jsonObj.get("query").isJsonNull()) && !jsonObj.get("query").isJsonPrimitive()) { + if (jsonObj.get("query") != null && !jsonObj.get("query").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull() && !jsonObj.get("parameters").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `parameters` to be an array in the JSON string but got `%s`", jsonObj.get("parameters").toString())); } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -358,7 +359,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGSQLNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -370,12 +371,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -384,9 +380,8 @@ else if (entry.getValue() instanceof Character) @Override public TGSQLNodeData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGSQLNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -400,10 +395,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -414,22 +407,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGSQLNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGSQLNodeData - * @throws IOException if the JSON string is invalid with respect to TGSQLNodeData - */ + /** + * Create an instance of TGSQLNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGSQLNodeData + * @throws IOException if the JSON string is invalid with respect to TGSQLNodeData + */ public static TGSQLNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGSQLNodeData.class); } - /** - * Convert an instance of TGSQLNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGSQLNodeData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java index 1209bb1..3f71d51 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java @@ -14,35 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +42,8 @@ /** * A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGUDFArgument { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -60,42 +53,50 @@ public class TGUDFArgument { @SerializedName(SERIALIZED_NAME_VALUE) private Object value; - public TGUDFArgument() { + public TGUDFArgument() { } public TGUDFArgument name(String name) { + this.name = name; return this; } - /** + /** * The name of the argument, if present. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the argument, if present.") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public TGUDFArgument value(Object value) { + this.value = value; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return value - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") + public Object getValue() { return value; } + public void setValue(Object value) { this.value = value; } @@ -110,10 +111,6 @@ public void setValue(Object value) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFArgument instance itself */ public TGUDFArgument putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -125,8 +122,6 @@ public TGUDFArgument putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -134,9 +129,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,20 +204,21 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGUDFArgument - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGUDFArgument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFArgument + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFArgument.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFArgument is not found in the empty JSON string", TGUDFArgument.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,7 +239,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFArgument value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -258,12 +251,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -272,9 +260,8 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFArgument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGUDFArgument instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -288,10 +275,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -302,22 +287,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFArgument given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFArgument - * @throws IOException if the JSON string is invalid with respect to TGUDFArgument - */ + /** + * Create an instance of TGUDFArgument given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFArgument + * @throws IOException if the JSON string is invalid with respect to TGUDFArgument + */ public static TGUDFArgument fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFArgument.class); } - /** - * Convert an instance of TGUDFArgument to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFArgument to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java index 79168f6..4d3d960 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java @@ -14,40 +14,32 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; -import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,7 +47,8 @@ /** * Metadata about the environment where we want to execute a UDF. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Metadata about the environment where we want to execute a UDF.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGUDFEnvironment { public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @@ -95,188 +88,225 @@ public class TGUDFEnvironment { public static final String SERIALIZED_NAME_STORAGE = "storage"; @SerializedName(SERIALIZED_NAME_STORAGE) - private List storage = new ArrayList<>(); + private List storage = null; - public TGUDFEnvironment() { + public TGUDFEnvironment() { } public TGUDFEnvironment language(UDFLanguage language) { + this.language = language; return this; } - /** + /** * Get language * @return language - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFLanguage getLanguage() { return language; } + public void setLanguage(UDFLanguage language) { this.language = language; } public TGUDFEnvironment languageVersion(String languageVersion) { + this.languageVersion = languageVersion; return this; } - /** + /** * The language version used to execute this UDF. Neither this nor `language` needs to be set for registered UDFs, since the language and version are stored server-side with the UDF itself. * @return languageVersion - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The language version used to execute this UDF. Neither this nor `language` needs to be set for registered UDFs, since the language and version are stored server-side with the UDF itself. ") + public String getLanguageVersion() { return languageVersion; } + public void setLanguageVersion(String languageVersion) { this.languageVersion = languageVersion; } public TGUDFEnvironment imageName(String imageName) { + this.imageName = imageName; return this; } - /** + /** * The name of the image to use for the execution environment. * @return imageName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the image to use for the execution environment. ") + public String getImageName() { return imageName; } + public void setImageName(String imageName) { this.imageName = imageName; } public TGUDFEnvironment accessCredentialsName(String accessCredentialsName) { + this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * The name of the access credentials to use. if unset, no credentials will be configured in the environment. * @return accessCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the access credentials to use. if unset, no credentials will be configured in the environment. ") + public String getAccessCredentialsName() { return accessCredentialsName; } + public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public TGUDFEnvironment namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * If set, the non-default namespace to execute this UDF under (and to query any Array Nodes that are used as inputs to this UDF). * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the non-default namespace to execute this UDF under (and to query any Array Nodes that are used as inputs to this UDF). ") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public TGUDFEnvironment resourceClass(String resourceClass) { + this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. ") + public String getResourceClass() { return resourceClass; } + public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public TGUDFEnvironment resources(TGUDFEnvironmentResources resources) { + this.resources = resources; return this; } - /** + /** * Get resources * @return resources - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TGUDFEnvironmentResources getResources() { return resources; } + public void setResources(TGUDFEnvironmentResources resources) { this.resources = resources; } public TGUDFEnvironment runClientSide(Boolean runClientSide) { + this.runClientSide = runClientSide; return this; } - /** + /** * A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. * @return runClientSide - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. ") + public Boolean getRunClientSide() { return runClientSide; } + public void setRunClientSide(Boolean runClientSide) { this.runClientSide = runClientSide; } public TGUDFEnvironment timeout(BigDecimal timeout) { + this.timeout = timeout; return this; } - /** + /** * The maximum length of time this UDF is allowed to execute for before it is killed and fails. If not present (or zero), the function is allowed to run indefinitely (subject to the server’s global limits). * @return timeout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The maximum length of time this UDF is allowed to execute for before it is killed and fails. If not present (or zero), the function is allowed to run indefinitely (subject to the server’s global limits). ") + public BigDecimal getTimeout() { return timeout; } + public void setTimeout(BigDecimal timeout) { this.timeout = timeout; } - public TGUDFEnvironment storage(List storage) { + public TGUDFEnvironment storage(List storage) { + this.storage = storage; return this; } - public TGUDFEnvironment addStorageItem(Object storageItem) { + public TGUDFEnvironment addStorageItem(TGUDFStorage storageItem) { if (this.storage == null) { this.storage = new ArrayList<>(); } @@ -284,16 +314,19 @@ public TGUDFEnvironment addStorageItem(Object storageItem) { return this; } - /** - * Storage options for mounting persistent volumes + /** + * Storage options for mounting persistent volumes. * @return storage - */ + **/ @javax.annotation.Nullable - public List getStorage() { + @ApiModelProperty(value = "Storage options for mounting persistent volumes. ") + + public List getStorage() { return storage; } - public void setStorage(List storage) { + + public void setStorage(List storage) { this.storage = storage; } @@ -307,10 +340,6 @@ public void setStorage(List storage) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFEnvironment instance itself */ public TGUDFEnvironment putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -322,8 +351,6 @@ public TGUDFEnvironment putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -331,9 +358,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -433,45 +457,50 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGUDFEnvironment - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGUDFEnvironment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFEnvironment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFEnvironment.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironment is not found in the empty JSON string", TGUDFEnvironment.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } - if ((jsonObj.get("language_version") != null && !jsonObj.get("language_version").isJsonNull()) && !jsonObj.get("language_version").isJsonPrimitive()) { + if (jsonObj.get("language_version") != null && !jsonObj.get("language_version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `language_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("language_version").toString())); } - if ((jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonNull()) && !jsonObj.get("image_name").isJsonPrimitive()) { + if (jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `image_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image_name").toString())); } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonNull()) && !jsonObj.get("resource_class").isJsonPrimitive()) { + if (jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `resource_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_class").toString())); } // validate the optional field `resources` - if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { - TGUDFEnvironmentResources.validateJsonElement(jsonObj.get("resources")); + if (jsonObj.getAsJsonObject("resources") != null) { + TGUDFEnvironmentResources.validateJsonObject(jsonObj.getAsJsonObject("resources")); } - // ensure the optional json data is an array if present - if (jsonObj.get("storage") != null && !jsonObj.get("storage").isJsonNull() && !jsonObj.get("storage").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `storage` to be an array in the JSON string but got `%s`", jsonObj.get("storage").toString())); + JsonArray jsonArraystorage = jsonObj.getAsJsonArray("storage"); + if (jsonArraystorage != null) { + // ensure the json data is an array + if (!jsonObj.get("storage").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `storage` to be an array in the JSON string but got `%s`", jsonObj.get("storage").toString())); + } + + // validate the optional field `storage` (array) + for (int i = 0; i < jsonArraystorage.size(); i++) { + TGUDFStorage.validateJsonObject(jsonArraystorage.get(i).getAsJsonObject()); + }; } } @@ -491,7 +520,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFEnvironment value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -503,12 +532,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -517,9 +541,8 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFEnvironment read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGUDFEnvironment instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -533,10 +556,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -547,22 +568,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFEnvironment given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFEnvironment - * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironment - */ + /** + * Create an instance of TGUDFEnvironment given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFEnvironment + * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironment + */ public static TGUDFEnvironment fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFEnvironment.class); } - /** - * Convert an instance of TGUDFEnvironment to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFEnvironment to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java index 26b8868..0f96fe2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGUDFEnvironmentResources { public static final String SERIALIZED_NAME_CPU = "cpu"; @SerializedName(SERIALIZED_NAME_CPU) @@ -63,61 +56,73 @@ public class TGUDFEnvironmentResources { @SerializedName(SERIALIZED_NAME_GPU) private Integer gpu; - public TGUDFEnvironmentResources() { + public TGUDFEnvironmentResources() { } public TGUDFEnvironmentResources cpu(String cpu) { + this.cpu = cpu; return this; } - /** + /** * Get cpu * @return cpu - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "500m", value = "") + public String getCpu() { return cpu; } + public void setCpu(String cpu) { this.cpu = cpu; } public TGUDFEnvironmentResources memory(String memory) { + this.memory = memory; return this; } - /** + /** * Get memory * @return memory - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "8Gi", value = "") + public String getMemory() { return memory; } + public void setMemory(String memory) { this.memory = memory; } public TGUDFEnvironmentResources gpu(Integer gpu) { + this.gpu = gpu; return this; } - /** + /** * Get gpu * @return gpu - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + public Integer getGpu() { return gpu; } + public void setGpu(Integer gpu) { this.gpu = gpu; } @@ -132,10 +137,6 @@ public void setGpu(Integer gpu) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFEnvironmentResources instance itself */ public TGUDFEnvironmentResources putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public TGUDFEnvironmentResources putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,23 +222,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGUDFEnvironmentResources - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGUDFEnvironmentResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFEnvironmentResources + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFEnvironmentResources.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironmentResources is not found in the empty JSON string", TGUDFEnvironmentResources.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("cpu") != null && !jsonObj.get("cpu").isJsonNull()) && !jsonObj.get("cpu").isJsonPrimitive()) { + if (jsonObj.get("cpu") != null && !jsonObj.get("cpu").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cpu` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cpu").toString())); } - if ((jsonObj.get("memory") != null && !jsonObj.get("memory").isJsonNull()) && !jsonObj.get("memory").isJsonPrimitive()) { + if (jsonObj.get("memory") != null && !jsonObj.get("memory").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `memory` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memory").toString())); } } @@ -263,7 +260,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFEnvironmentResources value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -275,12 +272,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -289,9 +281,8 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFEnvironmentResources read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGUDFEnvironmentResources instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -305,10 +296,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -319,22 +308,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFEnvironmentResources given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFEnvironmentResources - * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironmentResources - */ + /** + * Create an instance of TGUDFEnvironmentResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFEnvironmentResources + * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironmentResources + */ public static TGUDFEnvironmentResources fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFEnvironmentResources.class); } - /** - * Convert an instance of TGUDFEnvironmentResources to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFEnvironmentResources to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java index 7097528..0bc4cd5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java @@ -14,48 +14,39 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.TGUDFArgument; -import io.tiledb.cloud.rest_api.model.TGUDFEnvironment; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * A node specifying the execution of a user-defined function. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A node specifying the execution of a user-defined function.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGUDFNodeData { public static final String SERIALIZED_NAME_REGISTERED_UDF_NAME = "registered_udf_name"; @SerializedName(SERIALIZED_NAME_REGISTERED_UDF_NAME) @@ -75,92 +66,109 @@ public class TGUDFNodeData { public static final String SERIALIZED_NAME_ARGUMENTS = "arguments"; @SerializedName(SERIALIZED_NAME_ARGUMENTS) - private List arguments = new ArrayList<>(); + private List arguments = null; public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) private ResultFormat resultFormat; - public TGUDFNodeData() { + public TGUDFNodeData() { } public TGUDFNodeData registeredUdfName(String registeredUdfName) { + this.registeredUdfName = registeredUdfName; return this; } - /** + /** * If set, the name of the registered UDF to execute, in the format `namespace/name`. Either this or `executable_code` should be set, but not both. * @return registeredUdfName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the name of the registered UDF to execute, in the format `namespace/name`. Either this or `executable_code` should be set, but not both. ") + public String getRegisteredUdfName() { return registeredUdfName; } + public void setRegisteredUdfName(String registeredUdfName) { this.registeredUdfName = registeredUdfName; } public TGUDFNodeData executableCode(String executableCode) { + this.executableCode = executableCode; return this; } - /** + /** * If set, the base64 serialization of the code for this step, encoded in a language-specific format (e.g. Pickle for Python, serialization for R). * @return executableCode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the base64 serialization of the code for this step, encoded in a language-specific format (e.g. Pickle for Python, serialization for R). ") + public String getExecutableCode() { return executableCode; } + public void setExecutableCode(String executableCode) { this.executableCode = executableCode; } public TGUDFNodeData sourceText(String sourceText) { + this.sourceText = sourceText; return this; } - /** + /** * Optionally, the source text for the code passed in `executable_code`. *For reference only; only the code in `executable_code` is actually executed.* This will be included in activity logs and may be useful for debugging. * @return sourceText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optionally, the source text for the code passed in `executable_code`. *For reference only; only the code in `executable_code` is actually executed.* This will be included in activity logs and may be useful for debugging. ") + public String getSourceText() { return sourceText; } + public void setSourceText(String sourceText) { this.sourceText = sourceText; } public TGUDFNodeData environment(TGUDFEnvironment environment) { + this.environment = environment; return this; } - /** + /** * Get environment * @return environment - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TGUDFEnvironment getEnvironment() { return environment; } + public void setEnvironment(TGUDFEnvironment environment) { this.environment = environment; } public TGUDFNodeData arguments(List arguments) { + this.arguments = arguments; return this; } @@ -173,34 +181,41 @@ public TGUDFNodeData addArgumentsItem(TGUDFArgument argumentsItem) { return this; } - /** + /** * The arguments to a UDF function. This encompasses both named and positional arguments. The format is designed to provide compatibility across languages like Python which have a fairly traditional split between positional arguments and named arguments, and languages like R which has a rather unique way of specifying arguments. For Python (and most other languages), all positional arguments will come before all named arguments (if any are present): // fn(arg1, arg2, arg3) [ {value: arg1}, {value: arg2}, {value: arg3}, ] // fn(arg1, arg2, n=kw1, a=kw2) [ {value: arg1}, {value: arg2}, {name: \"n\", value: kw1}, {name: \"a\", value: kw2}, ] // fn(kw=k1, only=k2) [ {name: \"kw\", value: k1}, {name: \"only\", value: k2}, ] However, in R, named and positional arguments may be intermixed freely: // fn(arg, n=kw1, arg2) [ {value: arg}, {name: \"n\", value: kw1}, {value: arg2}, ] * @return arguments - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The arguments to a UDF function. This encompasses both named and positional arguments. The format is designed to provide compatibility across languages like Python which have a fairly traditional split between positional arguments and named arguments, and languages like R which has a rather unique way of specifying arguments. For Python (and most other languages), all positional arguments will come before all named arguments (if any are present): // fn(arg1, arg2, arg3) [ {value: arg1}, {value: arg2}, {value: arg3}, ] // fn(arg1, arg2, n=kw1, a=kw2) [ {value: arg1}, {value: arg2}, {name: \"n\", value: kw1}, {name: \"a\", value: kw2}, ] // fn(kw=k1, only=k2) [ {name: \"kw\", value: k1}, {name: \"only\", value: k2}, ] However, in R, named and positional arguments may be intermixed freely: // fn(arg, n=kw1, arg2) [ {value: arg}, {name: \"n\", value: kw1}, {value: arg2}, ] ") + public List getArguments() { return arguments; } + public void setArguments(List arguments) { this.arguments = arguments; } public TGUDFNodeData resultFormat(ResultFormat resultFormat) { + this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ResultFormat getResultFormat() { return resultFormat; } + public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } @@ -215,10 +230,6 @@ public void setResultFormat(ResultFormat resultFormat) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFNodeData instance itself */ public TGUDFNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -230,8 +241,6 @@ public TGUDFNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -239,9 +248,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -329,49 +335,44 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGUDFNodeData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGUDFNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFNodeData is not found in the empty JSON string", TGUDFNodeData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("registered_udf_name") != null && !jsonObj.get("registered_udf_name").isJsonNull()) && !jsonObj.get("registered_udf_name").isJsonPrimitive()) { + if (jsonObj.get("registered_udf_name") != null && !jsonObj.get("registered_udf_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `registered_udf_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("registered_udf_name").toString())); } - if ((jsonObj.get("executable_code") != null && !jsonObj.get("executable_code").isJsonNull()) && !jsonObj.get("executable_code").isJsonPrimitive()) { + if (jsonObj.get("executable_code") != null && !jsonObj.get("executable_code").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `executable_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("executable_code").toString())); } - if ((jsonObj.get("source_text") != null && !jsonObj.get("source_text").isJsonNull()) && !jsonObj.get("source_text").isJsonPrimitive()) { + if (jsonObj.get("source_text") != null && !jsonObj.get("source_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `source_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_text").toString())); } // validate the optional field `environment` - if (jsonObj.get("environment") != null && !jsonObj.get("environment").isJsonNull()) { - TGUDFEnvironment.validateJsonElement(jsonObj.get("environment")); + if (jsonObj.getAsJsonObject("environment") != null) { + TGUDFEnvironment.validateJsonObject(jsonObj.getAsJsonObject("environment")); } - if (jsonObj.get("arguments") != null && !jsonObj.get("arguments").isJsonNull()) { - JsonArray jsonArrayarguments = jsonObj.getAsJsonArray("arguments"); - if (jsonArrayarguments != null) { - // ensure the json data is an array - if (!jsonObj.get("arguments").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arguments` to be an array in the JSON string but got `%s`", jsonObj.get("arguments").toString())); - } - - // validate the optional field `arguments` (array) - for (int i = 0; i < jsonArrayarguments.size(); i++) { - TGUDFArgument.validateJsonElement(jsonArrayarguments.get(i)); - }; + JsonArray jsonArrayarguments = jsonObj.getAsJsonArray("arguments"); + if (jsonArrayarguments != null) { + // ensure the json data is an array + if (!jsonObj.get("arguments").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arguments` to be an array in the JSON string but got `%s`", jsonObj.get("arguments").toString())); } - } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); + + // validate the optional field `arguments` (array) + for (int i = 0; i < jsonArrayarguments.size(); i++) { + TGUDFArgument.validateJsonObject(jsonArrayarguments.get(i).getAsJsonObject()); + }; } } @@ -391,7 +392,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -403,12 +404,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -417,9 +413,8 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFNodeData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGUDFNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -433,10 +428,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -447,22 +440,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFNodeData - * @throws IOException if the JSON string is invalid with respect to TGUDFNodeData - */ + /** + * Create an instance of TGUDFNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFNodeData + * @throws IOException if the JSON string is invalid with respect to TGUDFNodeData + */ public static TGUDFNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFNodeData.class); } - /** - * Convert an instance of TGUDFNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFNodeData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java index 17a0f5e..d747de5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java @@ -14,47 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** - * Storage mount details + * Storage options for mounting persistent volumes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Storage options for mounting persistent volumes.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TGUDFStorage { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) private String path; + public static final String SERIALIZED_NAME_TILEDB_URI = "tiledb_uri"; + @SerializedName(SERIALIZED_NAME_TILEDB_URI) + private String tiledbUri; + public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) private String size; @@ -63,61 +60,96 @@ public class TGUDFStorage { @SerializedName(SERIALIZED_NAME_STORAGE_CLASS) private String storageClass; - public TGUDFStorage() { + public TGUDFStorage() { } public TGUDFStorage path(String path) { + this.path = path; return this; } - /** - * mount path + /** + * Mount path for the attached volume. * @return path - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Mount path for the attached volume. ") + public String getPath() { return path; } + public void setPath(String path) { this.path = path; } + public TGUDFStorage tiledbUri(String tiledbUri) { + + this.tiledbUri = tiledbUri; + return this; + } + + /** + * TileDB filesystem to mount + * @return tiledbUri + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "tiledb:///", value = "TileDB filesystem to mount ") + + public String getTiledbUri() { + return tiledbUri; + } + + + public void setTiledbUri(String tiledbUri) { + this.tiledbUri = tiledbUri; + } + + public TGUDFStorage size(String size) { + this.size = size; return this; } - /** - * storage size in bytes + /** + * Storage size. * @return size - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "8Gi", value = "Storage size. ") + public String getSize() { return size; } + public void setSize(String size) { this.size = size; } public TGUDFStorage storageClass(String storageClass) { + this.storageClass = storageClass; return this; } - /** - * storage class + /** + * Storage class to use for creating the volume. * @return storageClass - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "gp2", value = "Storage class to use for creating the volume. ") + public String getStorageClass() { return storageClass; } + public void setStorageClass(String storageClass) { this.storageClass = storageClass; } @@ -132,10 +164,6 @@ public void setStorageClass(String storageClass) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFStorage instance itself */ public TGUDFStorage putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +175,6 @@ public TGUDFStorage putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -178,6 +201,7 @@ public boolean equals(Object o) { } TGUDFStorage tgUDFStorage = (TGUDFStorage) o; return Objects.equals(this.path, tgUDFStorage.path) && + Objects.equals(this.tiledbUri, tgUDFStorage.tiledbUri) && Objects.equals(this.size, tgUDFStorage.size) && Objects.equals(this.storageClass, tgUDFStorage.storageClass)&& Objects.equals(this.additionalProperties, tgUDFStorage.additionalProperties); @@ -185,7 +209,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(path, size, storageClass, additionalProperties); + return Objects.hash(path, tiledbUri, size, storageClass, additionalProperties); } @Override @@ -193,6 +217,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TGUDFStorage {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" tiledbUri: ").append(toIndentedString(tiledbUri)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" storageClass: ").append(toIndentedString(storageClass)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -219,6 +244,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("path"); + openapiFields.add("tiledb_uri"); openapiFields.add("size"); openapiFields.add("storage_class"); @@ -226,23 +252,30 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TGUDFStorage - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TGUDFStorage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFStorage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFStorage.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFStorage is not found in the empty JSON string", TGUDFStorage.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + if (jsonObj.get("path") != null && !jsonObj.get("path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } - if ((jsonObj.get("storage_class") != null && !jsonObj.get("storage_class").isJsonNull()) && !jsonObj.get("storage_class").isJsonPrimitive()) { + if (jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); + } + if (jsonObj.get("size") != null && !jsonObj.get("size").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `size` to be a primitive type in the JSON string but got `%s`", jsonObj.get("size").toString())); + } + if (jsonObj.get("storage_class") != null && !jsonObj.get("storage_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `storage_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storage_class").toString())); } } @@ -263,7 +296,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFStorage value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -275,12 +308,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -289,9 +317,8 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFStorage read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TGUDFStorage instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -305,10 +332,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -319,22 +344,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFStorage given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFStorage - * @throws IOException if the JSON string is invalid with respect to TGUDFStorage - */ + /** + * Create an instance of TGUDFStorage given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFStorage + * @throws IOException if the JSON string is invalid with respect to TGUDFStorage + */ public static TGUDFStorage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFStorage.class); } - /** - * Convert an instance of TGUDFStorage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFStorage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java index fba920d..12abc3b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java @@ -14,41 +14,32 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.RetryStrategy; -import io.tiledb.cloud.rest_api.model.TaskGraphNode; -import io.tiledb.cloud.rest_api.model.TaskGraphType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -56,7 +47,8 @@ /** * Information about a task graph. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Information about a task graph.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -80,7 +72,7 @@ public class TaskGraph { public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = new ArrayList<>(); + private List nodes = null; public static final String SERIALIZED_NAME_PARALLELISM = "parallelism"; @SerializedName(SERIALIZED_NAME_PARALLELISM) @@ -98,9 +90,10 @@ public class TaskGraph { @SerializedName(SERIALIZED_NAME_TASK_GRAPH_TYPE) private TaskGraphType taskGraphType; - public TaskGraph() { + public TaskGraph() { } + public TaskGraph( String uuid, String createdBy, @@ -112,78 +105,96 @@ public TaskGraph( this.createdAt = createdAt; } - /** + /** * The server-generated UUID of the task graph. * @return uuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The server-generated UUID of the task graph.") + public String getUuid() { return uuid; } + public TaskGraph namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * The namespace that owns this task graph. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace that owns this task graph. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. ") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } - /** + /** * The name of the user who created this task graph log. * @return createdBy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the user who created this task graph log.") + public String getCreatedBy() { return createdBy; } + public TaskGraph name(String name) { + this.name = name; return this; } - /** + /** * A name for this task graph, displayed in the UI. Does not need to be unique. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A name for this task graph, displayed in the UI. Does not need to be unique. ") + public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + /** * The date/time when this task graph was originally created. * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The date/time when this task graph was originally created. ") + public OffsetDateTime getCreatedAt() { return createdAt; } + public TaskGraph nodes(List nodes) { + this.nodes = nodes; return this; } @@ -196,91 +207,110 @@ public TaskGraph addNodesItem(TaskGraphNode nodesItem) { return this; } - /** + /** * The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. * @return nodes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. ") + public List getNodes() { return nodes; } + public void setNodes(List nodes) { this.nodes = nodes; } public TaskGraph parallelism(Long parallelism) { + this.parallelism = parallelism; return this; } - /** + /** * Parallelism limits the max total parallel pods that can execute at the same time in a workflow. * @return parallelism - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Parallelism limits the max total parallel pods that can execute at the same time in a workflow. ") + public Long getParallelism() { return parallelism; } + public void setParallelism(Long parallelism) { this.parallelism = parallelism; } public TaskGraph retryStrategy(RetryStrategy retryStrategy) { + this.retryStrategy = retryStrategy; return this; } - /** + /** * Get retryStrategy * @return retryStrategy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public RetryStrategy getRetryStrategy() { return retryStrategy; } + public void setRetryStrategy(RetryStrategy retryStrategy) { this.retryStrategy = retryStrategy; } public TaskGraph deadline(Long deadline) { + this.deadline = deadline; return this; } - /** + /** * Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. Defaults to 24h when unset * @return deadline - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. Defaults to 24h when unset ") + public Long getDeadline() { return deadline; } + public void setDeadline(Long deadline) { this.deadline = deadline; } public TaskGraph taskGraphType(TaskGraphType taskGraphType) { + this.taskGraphType = taskGraphType; return this; } - /** + /** * Get taskGraphType * @return taskGraphType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TaskGraphType getTaskGraphType() { return taskGraphType; } + public void setTaskGraphType(TaskGraphType taskGraphType) { this.taskGraphType = taskGraphType; } @@ -295,10 +325,6 @@ public void setTaskGraphType(TaskGraphType taskGraphType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraph instance itself */ public TaskGraph putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -310,8 +336,6 @@ public TaskGraph putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -319,9 +343,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -421,52 +442,47 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraph - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraph.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraph + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraph.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraph is not found in the empty JSON string", TaskGraph.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { + if (jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNode.validateJsonElement(jsonArraynodes.get(i)); - }; + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); + }; } // validate the optional field `retry_strategy` - if (jsonObj.get("retry_strategy") != null && !jsonObj.get("retry_strategy").isJsonNull()) { - RetryStrategy.validateJsonElement(jsonObj.get("retry_strategy")); - } - // validate the optional field `task_graph_type` - if (jsonObj.get("task_graph_type") != null && !jsonObj.get("task_graph_type").isJsonNull()) { - TaskGraphType.validateJsonElement(jsonObj.get("task_graph_type")); + if (jsonObj.getAsJsonObject("retry_strategy") != null) { + RetryStrategy.validateJsonObject(jsonObj.getAsJsonObject("retry_strategy")); } } @@ -486,7 +502,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -498,12 +514,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -512,9 +523,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraph read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraph instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -528,10 +538,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -542,22 +550,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraph given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraph - * @throws IOException if the JSON string is invalid with respect to TaskGraph - */ + /** + * Create an instance of TaskGraph given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraph + * @throws IOException if the JSON string is invalid with respect to TaskGraph + */ public static TaskGraph fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraph.class); } - /** - * Convert an instance of TaskGraph to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraph to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java index 9ab8160..85777dc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public TaskGraphActions read(final JsonReader jsonReader) throws IOException { return TaskGraphActions.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - TaskGraphActions.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java index 5356fb4..3b151fd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java @@ -14,43 +14,34 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * A report of the execution status of a node that ran on the client side. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A report of the execution status of a node that ran on the client side. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphClientNodeStatus { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -60,42 +51,50 @@ public class TaskGraphClientNodeStatus { @SerializedName(SERIALIZED_NAME_STATUS) private ArrayTaskStatus status; - public TaskGraphClientNodeStatus() { + public TaskGraphClientNodeStatus() { } public TaskGraphClientNodeStatus clientNodeUuid(String clientNodeUuid) { + this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * Get clientNodeUuid * @return clientNodeUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getClientNodeUuid() { return clientNodeUuid; } + public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } public TaskGraphClientNodeStatus status(ArrayTaskStatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayTaskStatus getStatus() { return status; } + public void setStatus(ArrayTaskStatus status) { this.status = status; } @@ -110,10 +109,6 @@ public void setStatus(ArrayTaskStatus status) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphClientNodeStatus instance itself */ public TaskGraphClientNodeStatus putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -125,8 +120,6 @@ public TaskGraphClientNodeStatus putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -134,9 +127,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,26 +191,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphClientNodeStatus - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphClientNodeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphClientNodeStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphClientNodeStatus.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphClientNodeStatus is not found in the empty JSON string", TaskGraphClientNodeStatus.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -239,7 +226,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphClientNodeStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -251,12 +238,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -265,9 +247,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphClientNodeStatus read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphClientNodeStatus instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -281,10 +262,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -295,22 +274,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphClientNodeStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphClientNodeStatus - * @throws IOException if the JSON string is invalid with respect to TaskGraphClientNodeStatus - */ + /** + * Create an instance of TaskGraphClientNodeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphClientNodeStatus + * @throws IOException if the JSON string is invalid with respect to TaskGraphClientNodeStatus + */ public static TaskGraphClientNodeStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphClientNodeStatus.class); } - /** - * Convert an instance of TaskGraphClientNodeStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphClientNodeStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java index 7801e40..43612b2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java @@ -14,44 +14,33 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraphLogStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphNodeMetadata; -import io.tiledb.cloud.rest_api.model.TaskGraphType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; -import java.util.Map; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; -import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -59,7 +48,8 @@ /** * Logging information about the execution of a task graph. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Logging information about the execution of a task graph.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphLog { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -111,11 +101,11 @@ public class TaskGraphLog { public static final String SERIALIZED_NAME_STATUS_COUNT = "status_count"; @SerializedName(SERIALIZED_NAME_STATUS_COUNT) - private Map statusCount = new HashMap<>(); + private Map statusCount = null; public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = new ArrayList<>(); + private List nodes = null; public static final String SERIALIZED_NAME_TASK_GRAPH_TYPE = "task_graph_type"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_TYPE) @@ -133,9 +123,18 @@ public class TaskGraphLog { @SerializedName(SERIALIZED_NAME_CLOUD_REGION) private String cloudRegion; - public TaskGraphLog() { + public static final String SERIALIZED_NAME_ROOT_TASK_GRAPH_UUID = "root_task_graph_uuid"; + @SerializedName(SERIALIZED_NAME_ROOT_TASK_GRAPH_UUID) + private String rootTaskGraphUuid; + + public static final String SERIALIZED_NAME_CHILDREN_TASK_GRAPH_UUIDS = "children_task_graph_uuids"; + @SerializedName(SERIALIZED_NAME_CHILDREN_TASK_GRAPH_UUIDS) + private List childrenTaskGraphUuids = null; + + public TaskGraphLog() { } + public TaskGraphLog( String uuid, String createdBy, @@ -151,195 +150,239 @@ public TaskGraphLog( this.endTime = endTime; } - /** + /** * The server-generated UUID of the task graph. * @return uuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The server-generated UUID of the task graph.") + public String getUuid() { return uuid; } + public TaskGraphLog namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * The namespace that owns this task graph log. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace that owns this task graph log. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. ") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } - /** + /** * The name of the user who created this task graph log. * @return createdBy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the user who created this task graph log.") + public String getCreatedBy() { return createdBy; } + public TaskGraphLog name(String name) { + this.name = name; return this; } - /** + /** * A name for this task graph log, displayed in the UI. Does not need to be unique. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A name for this task graph log, displayed in the UI. Does not need to be unique. ") + public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + /** * The date/time when this task graph log was originally created. This is distinct from the execution start_time. * @return createdAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The date/time when this task graph log was originally created. This is distinct from the execution start_time. ") + public OffsetDateTime getCreatedAt() { return createdAt; } - /** + + /** * The start time of the task graph, recorded when the server starts executing the first node. * @return startTime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The start time of the task graph, recorded when the server starts executing the first node. ") + public OffsetDateTime getStartTime() { return startTime; } - /** + + /** * The end time of the task graph, recorded when the client reports completion. * @return endTime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The end time of the task graph, recorded when the client reports completion. ") + public OffsetDateTime getEndTime() { return endTime; } + public TaskGraphLog status(TaskGraphLogStatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TaskGraphLogStatus getStatus() { return status; } + public void setStatus(TaskGraphLogStatus status) { this.status = status; } public TaskGraphLog totalCost(BigDecimal totalCost) { + this.totalCost = totalCost; return this; } - /** + /** * If present, the total cost of executing all nodes in this task graph. * @return totalCost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If present, the total cost of executing all nodes in this task graph. ") + public BigDecimal getTotalCost() { return totalCost; } + public void setTotalCost(BigDecimal totalCost) { this.totalCost = totalCost; } public TaskGraphLog accessCost(BigDecimal accessCost) { + this.accessCost = accessCost; return this; } - /** + /** * If present, the total cost of access from execution of the nodes in this task graph. * @return accessCost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If present, the total cost of access from execution of the nodes in this task graph. ") + public BigDecimal getAccessCost() { return accessCost; } + public void setAccessCost(BigDecimal accessCost) { this.accessCost = accessCost; } public TaskGraphLog egressCost(BigDecimal egressCost) { + this.egressCost = egressCost; return this; } - /** + /** * If present, the total cost of access from execution of the nodes in this task graph. * @return egressCost - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "If present, the total cost of access from execution of the nodes in this task graph. ") + public BigDecimal getEgressCost() { return egressCost; } + public void setEgressCost(BigDecimal egressCost) { this.egressCost = egressCost; } public TaskGraphLog executionTime(String executionTime) { + this.executionTime = executionTime; return this; } - /** + /** * The total execution time of all the nodes in this graph, in ISO 8601 format with hours, minutes, and seconds. * @return executionTime - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "P15H22M0.45S", value = "The total execution time of all the nodes in this graph, in ISO 8601 format with hours, minutes, and seconds. ") + public String getExecutionTime() { return executionTime; } + public void setExecutionTime(String executionTime) { this.executionTime = executionTime; } public TaskGraphLog statusCount(Map statusCount) { + this.statusCount = statusCount; return this; } @@ -352,21 +395,25 @@ public TaskGraphLog putStatusCountItem(String key, BigDecimal statusCountItem) { return this; } - /** + /** * A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status. * @return statusCount - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status. ") + public Map getStatusCount() { return statusCount; } + public void setStatusCount(Map statusCount) { this.statusCount = statusCount; } public TaskGraphLog nodes(List nodes) { + this.nodes = nodes; return this; } @@ -379,95 +426,168 @@ public TaskGraphLog addNodesItem(TaskGraphNodeMetadata nodesItem) { return this; } - /** + /** * The structure of the graph. This is provided by the client when first setting up the task graph. Thereafter, it is read-only. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. * @return nodes - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The structure of the graph. This is provided by the client when first setting up the task graph. Thereafter, it is read-only. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. ") + public List getNodes() { return nodes; } + public void setNodes(List nodes) { this.nodes = nodes; } public TaskGraphLog taskGraphType(TaskGraphType taskGraphType) { + this.taskGraphType = taskGraphType; return this; } - /** + /** * Get taskGraphType * @return taskGraphType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TaskGraphType getTaskGraphType() { return taskGraphType; } + public void setTaskGraphType(TaskGraphType taskGraphType) { this.taskGraphType = taskGraphType; } public TaskGraphLog taskGraphId(String taskGraphId) { + this.taskGraphId = taskGraphId; return this; } - /** + /** * The UUID of the task graph. * @return taskGraphId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The UUID of the task graph.") + public String getTaskGraphId() { return taskGraphId; } + public void setTaskGraphId(String taskGraphId) { this.taskGraphId = taskGraphId; } public TaskGraphLog cloudProvider(String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } - /** + /** * The name of the cloud provider where this task graph executed. * @return cloudProvider - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the cloud provider where this task graph executed.") + public String getCloudProvider() { return cloudProvider; } + public void setCloudProvider(String cloudProvider) { this.cloudProvider = cloudProvider; } public TaskGraphLog cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; return this; } - /** + /** * The region of the cloud provider where this task graph executed. * @return cloudRegion - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The region of the cloud provider where this task graph executed.") + public String getCloudRegion() { return cloudRegion; } + public void setCloudRegion(String cloudRegion) { this.cloudRegion = cloudRegion; } + + public TaskGraphLog rootTaskGraphUuid(String rootTaskGraphUuid) { + + this.rootTaskGraphUuid = rootTaskGraphUuid; + return this; + } + + /** + * The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. + * @return rootTaskGraphUuid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. ") + + public String getRootTaskGraphUuid() { + return rootTaskGraphUuid; + } + + + public void setRootTaskGraphUuid(String rootTaskGraphUuid) { + this.rootTaskGraphUuid = rootTaskGraphUuid; + } + + + public TaskGraphLog childrenTaskGraphUuids(List childrenTaskGraphUuids) { + + this.childrenTaskGraphUuids = childrenTaskGraphUuids; + return this; + } + + public TaskGraphLog addChildrenTaskGraphUuidsItem(String childrenTaskGraphUuidsItem) { + if (this.childrenTaskGraphUuids == null) { + this.childrenTaskGraphUuids = new ArrayList<>(); + } + this.childrenTaskGraphUuids.add(childrenTaskGraphUuidsItem); + return this; + } + + /** + * If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. + * @return childrenTaskGraphUuids + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. ") + + public List getChildrenTaskGraphUuids() { + return childrenTaskGraphUuids; + } + + + public void setChildrenTaskGraphUuids(List childrenTaskGraphUuids) { + this.childrenTaskGraphUuids = childrenTaskGraphUuids; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -478,10 +598,6 @@ public void setCloudRegion(String cloudRegion) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphLog instance itself */ public TaskGraphLog putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -493,8 +609,6 @@ public TaskGraphLog putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -502,9 +616,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -540,7 +651,9 @@ public boolean equals(Object o) { Objects.equals(this.taskGraphType, taskGraphLog.taskGraphType) && Objects.equals(this.taskGraphId, taskGraphLog.taskGraphId) && Objects.equals(this.cloudProvider, taskGraphLog.cloudProvider) && - Objects.equals(this.cloudRegion, taskGraphLog.cloudRegion)&& + Objects.equals(this.cloudRegion, taskGraphLog.cloudRegion) && + Objects.equals(this.rootTaskGraphUuid, taskGraphLog.rootTaskGraphUuid) && + Objects.equals(this.childrenTaskGraphUuids, taskGraphLog.childrenTaskGraphUuids)&& Objects.equals(this.additionalProperties, taskGraphLog.additionalProperties); } @@ -550,7 +663,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, cloudProvider, cloudRegion, additionalProperties); + return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, cloudProvider, cloudRegion, rootTaskGraphUuid, childrenTaskGraphUuids, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -582,6 +695,8 @@ public String toString() { sb.append(" taskGraphId: ").append(toIndentedString(taskGraphId)).append("\n"); sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" rootTaskGraphUuid: ").append(toIndentedString(rootTaskGraphUuid)).append("\n"); + sb.append(" childrenTaskGraphUuids: ").append(toIndentedString(childrenTaskGraphUuids)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -623,70 +738,70 @@ private String toIndentedString(Object o) { openapiFields.add("task_graph_id"); openapiFields.add("cloud_provider"); openapiFields.add("cloud_region"); + openapiFields.add("root_task_graph_uuid"); + openapiFields.add("children_task_graph_uuids"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphLog - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphLog + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLog is not found in the empty JSON string", TaskGraphLog.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { + if (jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskGraphLogStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("execution_time") != null && !jsonObj.get("execution_time").isJsonNull()) && !jsonObj.get("execution_time").isJsonPrimitive()) { + if (jsonObj.get("execution_time") != null && !jsonObj.get("execution_time").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `execution_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("execution_time").toString())); } - if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNodeMetadata.validateJsonElement(jsonArraynodes.get(i)); - }; + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNodeMetadata.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); + }; } - // validate the optional field `task_graph_type` - if (jsonObj.get("task_graph_type") != null && !jsonObj.get("task_graph_type").isJsonNull()) { - TaskGraphType.validateJsonElement(jsonObj.get("task_graph_type")); - } - if ((jsonObj.get("task_graph_id") != null && !jsonObj.get("task_graph_id").isJsonNull()) && !jsonObj.get("task_graph_id").isJsonPrimitive()) { + if (jsonObj.get("task_graph_id") != null && !jsonObj.get("task_graph_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_id").toString())); } - if ((jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonNull()) && !jsonObj.get("cloud_provider").isJsonPrimitive()) { + if (jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); } - if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { + if (jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); } + if (jsonObj.get("root_task_graph_uuid") != null && !jsonObj.get("root_task_graph_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `root_task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("root_task_graph_uuid").toString())); + } + // ensure the json data is an array + if (jsonObj.get("children_task_graph_uuids") != null && !jsonObj.get("children_task_graph_uuids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `children_task_graph_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("children_task_graph_uuids").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -705,7 +820,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -717,12 +832,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -731,9 +841,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphLog read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphLog instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -747,10 +856,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -761,22 +868,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphLog - * @throws IOException if the JSON string is invalid with respect to TaskGraphLog - */ + /** + * Create an instance of TaskGraphLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphLog + * @throws IOException if the JSON string is invalid with respect to TaskGraphLog + */ public static TaskGraphLog fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphLog.class); } - /** - * Convert an instance of TaskGraphLog to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphLog to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java index af62457..dc2a1c3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public TaskGraphLogRunLocation read(final JsonReader jsonReader) throws IOExcept return TaskGraphLogRunLocation.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - TaskGraphLogRunLocation.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java index 243f554..4f47078 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -79,10 +78,5 @@ public TaskGraphLogStatus read(final JsonReader jsonReader) throws IOException { return TaskGraphLogStatus.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - TaskGraphLogStatus.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java index bcd5a2d..4abec9f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,20 +44,22 @@ /** * Response data for a task graph list, including pagination metadata. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Response data for a task graph list, including pagination metadata.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphLogsData { public static final String SERIALIZED_NAME_TASK_GRAPH_LOGS = "task_graph_logs"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_LOGS) - private List taskGraphLogs = new ArrayList<>(); + private List taskGraphLogs = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public TaskGraphLogsData() { + public TaskGraphLogsData() { } public TaskGraphLogsData taskGraphLogs(List taskGraphLogs) { + this.taskGraphLogs = taskGraphLogs; return this; } @@ -79,34 +72,41 @@ public TaskGraphLogsData addTaskGraphLogsItem(TaskGraphLog taskGraphLogsItem) { return this; } - /** + /** * The requested task graph logs. * @return taskGraphLogs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The requested task graph logs.") + public List getTaskGraphLogs() { return taskGraphLogs; } + public void setTaskGraphLogs(List taskGraphLogs) { this.taskGraphLogs = taskGraphLogs; } public TaskGraphLogsData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +121,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphLogsData instance itself */ public TaskGraphLogsData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public TaskGraphLogsData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphLogsData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphLogsData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphLogsData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphLogsData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLogsData is not found in the empty JSON string", TaskGraphLogsData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("task_graph_logs") != null && !jsonObj.get("task_graph_logs").isJsonNull()) { - JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); - if (jsonArraytaskGraphLogs != null) { - // ensure the json data is an array - if (!jsonObj.get("task_graph_logs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); - } - - // validate the optional field `task_graph_logs` (array) - for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { - TaskGraphLog.validateJsonElement(jsonArraytaskGraphLogs.get(i)); - }; + JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); + if (jsonArraytaskGraphLogs != null) { + // ensure the json data is an array + if (!jsonObj.get("task_graph_logs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); } + + // validate the optional field `task_graph_logs` (array) + for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { + TaskGraphLog.validateJsonObject(jsonArraytaskGraphLogs.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphLogsData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +272,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphLogsData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphLogsData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +287,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphLogsData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphLogsData - * @throws IOException if the JSON string is invalid with respect to TaskGraphLogsData - */ + /** + * Create an instance of TaskGraphLogsData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphLogsData + * @throws IOException if the JSON string is invalid with respect to TaskGraphLogsData + */ public static TaskGraphLogsData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphLogsData.class); } - /** - * Convert an instance of TaskGraphLogsData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphLogsData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java index d4f8575..db85045 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java @@ -14,50 +14,38 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.RetryStrategy; -import io.tiledb.cloud.rest_api.model.TGInputNodeData; -import io.tiledb.cloud.rest_api.model.TGSQLNodeData; -import io.tiledb.cloud.rest_api.model.TGUDFNodeData; -import io.tiledb.cloud.rest_api.model.UDFArrayDetails; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Information about a single node within a registered task graph. A single node represents one piece of data or a computational step; either as an input value, a data source, or a computation that acts upon earlier nodes. The structure parallels the existing `TaskGraphNodeMetadata`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Information about a single node within a registered task graph. A single node represents one piece of data or a computational step; either as an input value, a data source, or a computation that acts upon earlier nodes. The structure parallels the existing `TaskGraphNodeMetadata`. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphNode { public static final String SERIALIZED_NAME_CLIENT_NODE_ID = "client_node_id"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_ID) @@ -69,7 +57,7 @@ public class TaskGraphNode { public static final String SERIALIZED_NAME_DEPENDS_ON = "depends_on"; @SerializedName(SERIALIZED_NAME_DEPENDS_ON) - private List dependsOn = new ArrayList<>(); + private List dependsOn = null; public static final String SERIALIZED_NAME_ARRAY_NODE = "array_node"; @SerializedName(SERIALIZED_NAME_ARRAY_NODE) @@ -99,48 +87,57 @@ public class TaskGraphNode { @SerializedName(SERIALIZED_NAME_DEADLINE) private Long deadline; - public TaskGraphNode() { + public TaskGraphNode() { } public TaskGraphNode clientNodeId(String clientNodeId) { + this.clientNodeId = clientNodeId; return this; } - /** + /** * The client-generated UUID of the given graph node. * @return clientNodeId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The client-generated UUID of the given graph node.") + public String getClientNodeId() { return clientNodeId; } + public void setClientNodeId(String clientNodeId) { this.clientNodeId = clientNodeId; } public TaskGraphNode name(String name) { + this.name = name; return this; } - /** + /** * A client-specified name for the node. If provided, this must be unique. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A client-specified name for the node. If provided, this must be unique. ") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public TaskGraphNode dependsOn(List dependsOn) { + this.dependsOn = dependsOn; return this; } @@ -153,148 +150,179 @@ public TaskGraphNode addDependsOnItem(String dependsOnItem) { return this; } - /** + /** * The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. * @return dependsOn - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. ") + public List getDependsOn() { return dependsOn; } + public void setDependsOn(List dependsOn) { this.dependsOn = dependsOn; } public TaskGraphNode arrayNode(UDFArrayDetails arrayNode) { + this.arrayNode = arrayNode; return this; } - /** + /** * Get arrayNode * @return arrayNode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFArrayDetails getArrayNode() { return arrayNode; } + public void setArrayNode(UDFArrayDetails arrayNode) { this.arrayNode = arrayNode; } public TaskGraphNode inputNode(TGInputNodeData inputNode) { + this.inputNode = inputNode; return this; } - /** + /** * Get inputNode * @return inputNode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TGInputNodeData getInputNode() { return inputNode; } + public void setInputNode(TGInputNodeData inputNode) { this.inputNode = inputNode; } public TaskGraphNode sqlNode(TGSQLNodeData sqlNode) { + this.sqlNode = sqlNode; return this; } - /** + /** * Get sqlNode * @return sqlNode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TGSQLNodeData getSqlNode() { return sqlNode; } + public void setSqlNode(TGSQLNodeData sqlNode) { this.sqlNode = sqlNode; } public TaskGraphNode udfNode(TGUDFNodeData udfNode) { + this.udfNode = udfNode; return this; } - /** + /** * Get udfNode * @return udfNode - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TGUDFNodeData getUdfNode() { return udfNode; } + public void setUdfNode(TGUDFNodeData udfNode) { this.udfNode = udfNode; } public TaskGraphNode retryStrategy(RetryStrategy retryStrategy) { + this.retryStrategy = retryStrategy; return this; } - /** + /** * Get retryStrategy * @return retryStrategy - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public RetryStrategy getRetryStrategy() { return retryStrategy; } + public void setRetryStrategy(RetryStrategy retryStrategy) { this.retryStrategy = retryStrategy; } public TaskGraphNode expandNodeOutput(String expandNodeOutput) { + this.expandNodeOutput = expandNodeOutput; return this; } - /** + /** * Used to create dynamic tasks based on the output of another node. The other node's output must be a JSON list of values. The expansion process creates one task per item in the output list. The item is also passed as an argument to each task. The value is the client_node_uuid of the node that we want to expand. * @return expandNodeOutput - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Used to create dynamic tasks based on the output of another node. The other node's output must be a JSON list of values. The expansion process creates one task per item in the output list. The item is also passed as an argument to each task. The value is the client_node_uuid of the node that we want to expand. ") + public String getExpandNodeOutput() { return expandNodeOutput; } + public void setExpandNodeOutput(String expandNodeOutput) { this.expandNodeOutput = expandNodeOutput; } public TaskGraphNode deadline(Long deadline) { + this.deadline = deadline; return this; } - /** + /** * Duration in seconds relative to the node start time which the node is allowed to run before it gets terminated. * @return deadline - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Duration in seconds relative to the node start time which the node is allowed to run before it gets terminated. ") + public Long getDeadline() { return deadline; } + public void setDeadline(Long deadline) { this.deadline = deadline; } @@ -309,10 +337,6 @@ public void setDeadline(Long deadline) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphNode instance itself */ public TaskGraphNode putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -324,8 +348,6 @@ public TaskGraphNode putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -333,9 +355,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -435,52 +454,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphNode - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphNode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphNode + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphNode.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNode is not found in the empty JSON string", TaskGraphNode.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("client_node_id") != null && !jsonObj.get("client_node_id").isJsonNull()) && !jsonObj.get("client_node_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `client_node_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_id").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull() && !jsonObj.get("depends_on").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `depends_on` to be an array in the JSON string but got `%s`", jsonObj.get("depends_on").toString())); - } - // validate the optional field `array_node` - if (jsonObj.get("array_node") != null && !jsonObj.get("array_node").isJsonNull()) { - UDFArrayDetails.validateJsonElement(jsonObj.get("array_node")); - } - // validate the optional field `input_node` - if (jsonObj.get("input_node") != null && !jsonObj.get("input_node").isJsonNull()) { - TGInputNodeData.validateJsonElement(jsonObj.get("input_node")); - } - // validate the optional field `sql_node` - if (jsonObj.get("sql_node") != null && !jsonObj.get("sql_node").isJsonNull()) { - TGSQLNodeData.validateJsonElement(jsonObj.get("sql_node")); - } - // validate the optional field `udf_node` - if (jsonObj.get("udf_node") != null && !jsonObj.get("udf_node").isJsonNull()) { - TGUDFNodeData.validateJsonElement(jsonObj.get("udf_node")); - } - // validate the optional field `retry_strategy` - if (jsonObj.get("retry_strategy") != null && !jsonObj.get("retry_strategy").isJsonNull()) { - RetryStrategy.validateJsonElement(jsonObj.get("retry_strategy")); - } - if ((jsonObj.get("expand_node_output") != null && !jsonObj.get("expand_node_output").isJsonNull()) && !jsonObj.get("expand_node_output").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `expand_node_output` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expand_node_output").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -499,7 +486,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphNode value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -511,12 +498,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -525,9 +507,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphNode read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphNode instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -541,10 +522,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -555,22 +534,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphNode given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphNode - * @throws IOException if the JSON string is invalid with respect to TaskGraphNode - */ + /** + * Create an instance of TaskGraphNode given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphNode + * @throws IOException if the JSON string is invalid with respect to TaskGraphNode + */ public static TaskGraphNode fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphNode.class); } - /** - * Convert an instance of TaskGraphNode to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphNode to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java index 8428869..a20f953 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java @@ -14,40 +14,31 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphLogRunLocation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,7 +46,8 @@ /** * Metadata about an individual node in a task graph. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Metadata about an individual node in a task graph.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -67,7 +59,7 @@ public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_DEPENDS_ON = "depends_on"; @SerializedName(SERIALIZED_NAME_DEPENDS_ON) - private List dependsOn = new ArrayList<>(); + private List dependsOn = null; public static final String SERIALIZED_NAME_RUN_LOCATION = "run_location"; @SerializedName(SERIALIZED_NAME_RUN_LOCATION) @@ -83,11 +75,12 @@ public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_EXECUTIONS = "executions"; @SerializedName(SERIALIZED_NAME_EXECUTIONS) - private List executions = new ArrayList<>(); + private List executions = null; - public TaskGraphNodeMetadata() { + public TaskGraphNodeMetadata() { } + public TaskGraphNodeMetadata( List executions ) { @@ -96,44 +89,53 @@ public TaskGraphNodeMetadata( } public TaskGraphNodeMetadata clientNodeUuid(String clientNodeUuid) { + this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * The client-generated UUID of the given graph node. * @return clientNodeUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The client-generated UUID of the given graph node.") + public String getClientNodeUuid() { return clientNodeUuid; } + public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } public TaskGraphNodeMetadata name(String name) { + this.name = name; return this; } - /** + /** * The client-generated name of the node. This is not guaranteed to be unique. * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The client-generated name of the node. This is not guaranteed to be unique. ") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public TaskGraphNodeMetadata dependsOn(List dependsOn) { + this.dependsOn = dependsOn; return this; } @@ -146,87 +148,105 @@ public TaskGraphNodeMetadata addDependsOnItem(String dependsOnItem) { return this; } - /** + /** * The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. * @return dependsOn - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. ") + public List getDependsOn() { return dependsOn; } + public void setDependsOn(List dependsOn) { this.dependsOn = dependsOn; } public TaskGraphNodeMetadata runLocation(TaskGraphLogRunLocation runLocation) { + this.runLocation = runLocation; return this; } - /** + /** * Get runLocation * @return runLocation - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public TaskGraphLogRunLocation getRunLocation() { return runLocation; } + public void setRunLocation(TaskGraphLogRunLocation runLocation) { this.runLocation = runLocation; } public TaskGraphNodeMetadata status(ArrayTaskStatus status) { + this.status = status; return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ArrayTaskStatus getStatus() { return status; } + public void setStatus(ArrayTaskStatus status) { this.status = status; } public TaskGraphNodeMetadata statusMessage(String statusMessage) { + this.statusMessage = statusMessage; return this; } - /** + /** * The reason the array task status is in the state * @return statusMessage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The reason the array task status is in the state") + public String getStatusMessage() { return statusMessage; } + public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } - /** + /** * ArrayTasks representing each execution attempt for this node. For nodes that have never been submitted, this will be empty. For nodes that have been retried, this may have multiple entries. The last one in the list represents the most recent execution. This is read-only and generated by the server based on the tasks it has actually executed. * @return executions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "ArrayTasks representing each execution attempt for this node. For nodes that have never been submitted, this will be empty. For nodes that have been retried, this may have multiple entries. The last one in the list represents the most recent execution. This is read-only and generated by the server based on the tasks it has actually executed. ") + public List getExecutions() { return executions; } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -237,10 +257,6 @@ public List getExecutions() { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphNodeMetadata instance itself */ public TaskGraphNodeMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -252,8 +268,6 @@ public TaskGraphNodeMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -261,9 +275,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -354,54 +365,20 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphNodeMetadata - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphNodeMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphNodeMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphNodeMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNodeMetadata is not found in the empty JSON string", TaskGraphNodeMetadata.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull() && !jsonObj.get("depends_on").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `depends_on` to be an array in the JSON string but got `%s`", jsonObj.get("depends_on").toString())); - } - // validate the optional field `run_location` - if (jsonObj.get("run_location") != null && !jsonObj.get("run_location").isJsonNull()) { - TaskGraphLogRunLocation.validateJsonElement(jsonObj.get("run_location")); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonNull()) && !jsonObj.get("status_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); - } - if (jsonObj.get("executions") != null && !jsonObj.get("executions").isJsonNull()) { - JsonArray jsonArrayexecutions = jsonObj.getAsJsonArray("executions"); - if (jsonArrayexecutions != null) { - // ensure the json data is an array - if (!jsonObj.get("executions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `executions` to be an array in the JSON string but got `%s`", jsonObj.get("executions").toString())); - } - - // validate the optional field `executions` (array) - for (int i = 0; i < jsonArrayexecutions.size(); i++) { - ArrayTask.validateJsonElement(jsonArrayexecutions.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -420,7 +397,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphNodeMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -432,12 +409,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -446,9 +418,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphNodeMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphNodeMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -462,10 +433,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -476,22 +445,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphNodeMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphNodeMetadata - * @throws IOException if the JSON string is invalid with respect to TaskGraphNodeMetadata - */ + /** + * Create an instance of TaskGraphNodeMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphNodeMetadata + * @throws IOException if the JSON string is invalid with respect to TaskGraphNodeMetadata + */ public static TaskGraphNodeMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphNodeMetadata.class); } - /** - * Convert an instance of TaskGraphNodeMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphNodeMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java index feedb5f..4e661eb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraphActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,11 +43,12 @@ /** * details for sharing a given registered task graph */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "details for sharing a given registered task graph") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList<>(); + private List actions = null; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -66,10 +58,11 @@ public class TaskGraphSharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public TaskGraphSharing() { + public TaskGraphSharing() { } public TaskGraphSharing actions(List actions) { + this.actions = actions; return this; } @@ -82,53 +75,64 @@ public TaskGraphSharing addActionsItem(TaskGraphActions actionsItem) { return this; } - /** + /** * List of permitted actions * @return actions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[fetch_task_graph, share_task_graph]", value = "List of permitted actions") + public List getActions() { return actions; } + public void setActions(List actions) { this.actions = actions; } public TaskGraphSharing namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace being granted array access can be a user or organization * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "MyOrganization", value = "namespace being granted array access can be a user or organization") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public TaskGraphSharing namespaceType(String namespaceType) { + this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") + public String getNamespaceType() { return namespaceType; } + public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -143,10 +147,6 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphSharing instance itself */ public TaskGraphSharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -158,8 +158,6 @@ public TaskGraphSharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -167,9 +165,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -237,27 +232,28 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphSharing - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphSharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphSharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphSharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphSharing is not found in the empty JSON string", TaskGraphSharing.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if (jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -278,7 +274,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -290,12 +286,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -304,9 +295,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphSharing read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphSharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -320,10 +310,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -334,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphSharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphSharing - * @throws IOException if the JSON string is invalid with respect to TaskGraphSharing - */ + /** + * Create an instance of TaskGraphSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphSharing + * @throws IOException if the JSON string is invalid with respect to TaskGraphSharing + */ public static TaskGraphSharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphSharing.class); } - /** - * Convert an instance of TaskGraphSharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphSharing to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java index c1ad82d..2f1ee48 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -30,9 +29,9 @@ public enum TaskGraphType { BATCH("batch"), - + REALTIME("realtime"), - + NEXTFLOW("nextflow"); private String value; @@ -71,10 +70,5 @@ public TaskGraphType read(final JsonReader jsonReader) throws IOException { return TaskGraphType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - TaskGraphType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java index bb434ab..1f2d407 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraph; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,16 +44,18 @@ /** * Information about a series of task graphs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Information about a series of task graphs.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TaskGraphs { public static final String SERIALIZED_NAME_GRAPHS = "graphs"; @SerializedName(SERIALIZED_NAME_GRAPHS) - private List graphs = new ArrayList<>(); + private List graphs = null; - public TaskGraphs() { + public TaskGraphs() { } public TaskGraphs graphs(List graphs) { + this.graphs = graphs; return this; } @@ -74,15 +68,18 @@ public TaskGraphs addGraphsItem(TaskGraph graphsItem) { return this; } - /** + /** * The series of graphs. * @return graphs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The series of graphs. ") + public List getGraphs() { return graphs; } + public void setGraphs(List graphs) { this.graphs = graphs; } @@ -97,10 +94,6 @@ public void setGraphs(List graphs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphs instance itself */ public TaskGraphs putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +105,6 @@ public TaskGraphs putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +112,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +173,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TaskGraphs - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TaskGraphs.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphs + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphs.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphs is not found in the empty JSON string", TaskGraphs.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("graphs") != null && !jsonObj.get("graphs").isJsonNull()) { - JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); - if (jsonArraygraphs != null) { - // ensure the json data is an array - if (!jsonObj.get("graphs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `graphs` to be an array in the JSON string but got `%s`", jsonObj.get("graphs").toString())); - } - - // validate the optional field `graphs` (array) - for (int i = 0; i < jsonArraygraphs.size(); i++) { - TaskGraph.validateJsonElement(jsonArraygraphs.get(i)); - }; + JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); + if (jsonArraygraphs != null) { + // ensure the json data is an array + if (!jsonObj.get("graphs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `graphs` to be an array in the JSON string but got `%s`", jsonObj.get("graphs").toString())); } + + // validate the optional field `graphs` (array) + for (int i = 0; i < jsonArraygraphs.size(); i++) { + TaskGraph.validateJsonObject(jsonArraygraphs.get(i).getAsJsonObject()); + }; } } @@ -230,7 +217,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphs value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +238,8 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphs read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TaskGraphs instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +253,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +265,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphs given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphs - * @throws IOException if the JSON string is invalid with respect to TaskGraphs - */ + /** + * Create an instance of TaskGraphs given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphs + * @throws IOException if the JSON string is invalid with respect to TaskGraphs + */ public static TaskGraphs fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphs.class); } - /** - * Convert an instance of TaskGraphs to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphs to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java index f3cc0f5..1f543d9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java @@ -14,37 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfigEntriesInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,16 +44,18 @@ /** * TileDB config used for interaction with the embedded library */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "TileDB config used for interaction with the embedded library") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TileDBConfig { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = new ArrayList<>(); + private List entries = null; - public TileDBConfig() { + public TileDBConfig() { } public TileDBConfig entries(List entries) { + this.entries = entries; return this; } @@ -74,15 +68,18 @@ public TileDBConfig addEntriesItem(TileDBConfigEntriesInner entriesItem) { return this; } - /** + /** * Get entries * @return entries - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getEntries() { return entries; } + public void setEntries(List entries) { this.entries = entries; } @@ -97,10 +94,6 @@ public void setEntries(List entries) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TileDBConfig instance itself */ public TileDBConfig putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -112,8 +105,6 @@ public TileDBConfig putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -121,9 +112,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -185,32 +173,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TileDBConfig - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TileDBConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TileDBConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TileDBConfig.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfig is not found in the empty JSON string", TileDBConfig.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - TileDBConfigEntriesInner.validateJsonElement(jsonArrayentries.get(i)); - }; + JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); + if (jsonArrayentries != null) { + // ensure the json data is an array + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + TileDBConfigEntriesInner.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; } } @@ -230,7 +217,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TileDBConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -242,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -256,9 +238,8 @@ else if (entry.getValue() instanceof Character) @Override public TileDBConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TileDBConfig instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -272,10 +253,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -286,22 +265,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TileDBConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of TileDBConfig - * @throws IOException if the JSON string is invalid with respect to TileDBConfig - */ + /** + * Create an instance of TileDBConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of TileDBConfig + * @throws IOException if the JSON string is invalid with respect to TileDBConfig + */ public static TileDBConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TileDBConfig.class); } - /** - * Convert an instance of TileDBConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TileDBConfig to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java index f9cf874..ec29ae4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java @@ -14,42 +14,32 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * TileDBConfigEntriesInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TileDBConfigEntriesInner { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -59,42 +49,50 @@ public class TileDBConfigEntriesInner { @SerializedName(SERIALIZED_NAME_VALUE) private String value; - public TileDBConfigEntriesInner() { + public TileDBConfigEntriesInner() { } public TileDBConfigEntriesInner key(String key) { + this.key = key; return this; } - /** + /** * Get key * @return key - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getKey() { return key; } + public void setKey(String key) { this.key = key; } public TileDBConfigEntriesInner value(String value) { + this.value = value; return this; } - /** + /** * Get value * @return value - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public String getValue() { return value; } + public void setValue(String value) { this.value = value; } @@ -109,10 +107,6 @@ public void setValue(String value) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TileDBConfigEntriesInner instance itself */ public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -124,8 +118,6 @@ public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -133,9 +125,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,23 +189,24 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TileDBConfigEntriesInner - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TileDBConfigEntriesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TileDBConfigEntriesInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TileDBConfigEntriesInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfigEntriesInner is not found in the empty JSON string", TileDBConfigEntriesInner.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -237,7 +227,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TileDBConfigEntriesInner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,12 +239,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -263,9 +248,8 @@ else if (entry.getValue() instanceof Character) @Override public TileDBConfigEntriesInner read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TileDBConfigEntriesInner instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -279,10 +263,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -293,22 +275,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TileDBConfigEntriesInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TileDBConfigEntriesInner - * @throws IOException if the JSON string is invalid with respect to TileDBConfigEntriesInner - */ + /** + * Create an instance of TileDBConfigEntriesInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TileDBConfigEntriesInner + * @throws IOException if the JSON string is invalid with respect to TileDBConfigEntriesInner + */ public static TileDBConfigEntriesInner fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TileDBConfigEntriesInner.class); } - /** - * Convert an instance of TileDBConfigEntriesInner to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TileDBConfigEntriesInner to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Token.java b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java index 422b0c8..27c1682 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Token.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TokenScope; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +44,8 @@ /** * A api token and its metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A api token and its metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Token { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -73,88 +65,105 @@ public class Token { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) - private List scope = new ArrayList<>(); + private List scope = null; - public Token() { + public Token() { } public Token token(String token) { + this.token = token; return this; } - /** + /** * A api token * @return token - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A api token") + public String getToken() { return token; } + public void setToken(String token) { this.token = token; } public Token name(String name) { + this.name = name; return this; } - /** + /** * Name of token to revoke * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Name of token to revoke") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public Token issuedAt(OffsetDateTime issuedAt) { + this.issuedAt = issuedAt; return this; } - /** + /** * datetime the token was created * @return issuedAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "datetime the token was created") + public OffsetDateTime getIssuedAt() { return issuedAt; } + public void setIssuedAt(OffsetDateTime issuedAt) { this.issuedAt = issuedAt; } public Token expiresAt(OffsetDateTime expiresAt) { + this.expiresAt = expiresAt; return this; } - /** + /** * datetime the token when token will expire * @return expiresAt - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "datetime the token when token will expire") + public OffsetDateTime getExpiresAt() { return expiresAt; } + public void setExpiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } public Token scope(List scope) { + this.scope = scope; return this; } @@ -167,15 +176,18 @@ public Token addScopeItem(TokenScope scopeItem) { return this; } - /** + /** * Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * * @return scope - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") + public List getScope() { return scope; } + public void setScope(List scope) { this.scope = scope; } @@ -190,10 +202,6 @@ public void setScope(List scope) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Token instance itself */ public Token putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -205,8 +213,6 @@ public Token putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -214,9 +220,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -290,27 +293,28 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Token - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Token.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Token + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Token.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Token is not found in the empty JSON string", Token.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("token") != null && !jsonObj.get("token").isJsonNull()) && !jsonObj.get("token").isJsonPrimitive()) { + if (jsonObj.get("token") != null && !jsonObj.get("token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull() && !jsonObj.get("scope").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `scope` to be an array in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -331,7 +335,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Token value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -343,12 +347,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -357,9 +356,8 @@ else if (entry.getValue() instanceof Character) @Override public Token read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Token instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -373,10 +371,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -387,22 +383,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Token given an JSON string - * - * @param jsonString JSON string - * @return An instance of Token - * @throws IOException if the JSON string is invalid with respect to Token - */ + /** + * Create an instance of Token given an JSON string + * + * @param jsonString JSON string + * @return An instance of Token + * @throws IOException if the JSON string is invalid with respect to Token + */ public static Token fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Token.class); } - /** - * Convert an instance of Token to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Token to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java index 8987400..cbca569 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TokenScope; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +44,8 @@ /** * A request from a user for an api token */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A request from a user for an api token") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class TokenRequest { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @SerializedName(SERIALIZED_NAME_EXPIRES) @@ -65,50 +57,59 @@ public class TokenRequest { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) - private List scope = new ArrayList<>(); + private List scope = null; - public TokenRequest() { + public TokenRequest() { } public TokenRequest expires(OffsetDateTime expires) { + this.expires = expires; return this; } - /** + /** * Expiration date for token, if empty token defaults to 30 minutes * @return expires - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "2018-12-31T12:13:14Z", value = "Expiration date for token, if empty token defaults to 30 minutes") + public OffsetDateTime getExpires() { return expires; } + public void setExpires(OffsetDateTime expires) { this.expires = expires; } public TokenRequest name(String name) { + this.name = name; return this; } - /** + /** * Optional name for token, if the name already exists for the user it will be auto incremented (i.e. myToken-1) * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "myToken", value = "Optional name for token, if the name already exists for the user it will be auto incremented (i.e. myToken-1)") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public TokenRequest scope(List scope) { + this.scope = scope; return this; } @@ -121,15 +122,18 @@ public TokenRequest addScopeItem(TokenScope scopeItem) { return this; } - /** + /** * Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * * @return scope - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") + public List getScope() { return scope; } + public void setScope(List scope) { this.scope = scope; } @@ -144,10 +148,6 @@ public void setScope(List scope) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TokenRequest instance itself */ public TokenRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -159,8 +159,6 @@ public TokenRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -168,9 +166,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -238,24 +233,25 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TokenRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TokenRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TokenRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in TokenRequest is not found in the empty JSON string", TokenRequest.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull() && !jsonObj.get("scope").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `scope` to be an array in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -276,7 +272,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TokenRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -288,12 +284,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -302,9 +293,8 @@ else if (entry.getValue() instanceof Character) @Override public TokenRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance TokenRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -318,10 +308,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -332,22 +320,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TokenRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of TokenRequest - * @throws IOException if the JSON string is invalid with respect to TokenRequest - */ + /** + * Create an instance of TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of TokenRequest + * @throws IOException if the JSON string is invalid with respect to TokenRequest + */ public static TokenRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TokenRequest.class); } - /** - * Convert an instance of TokenRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java index 52b8e24..7671c88 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -95,10 +94,5 @@ public TokenScope read(final JsonReader jsonReader) throws IOException { return TokenScope.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - TokenScope.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java index f027d9e..6b9b858 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public UDFActions read(final JsonReader jsonReader) throws IOException { return UDFActions.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - UDFActions.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java index 6b910ac..1bb3cb7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java @@ -14,46 +14,38 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.QueryRanges; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Contains array details for multi-array query including uri, ranges buffers */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Contains array details for multi-array query including uri, ranges buffers") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFArrayDetails { public static final String SERIALIZED_NAME_PARAMETER_ID = "parameter_id"; @SerializedName(SERIALIZED_NAME_PARAMETER_ID) @@ -69,69 +61,82 @@ public class UDFArrayDetails { public static final String SERIALIZED_NAME_BUFFERS = "buffers"; @SerializedName(SERIALIZED_NAME_BUFFERS) - private List buffers = new ArrayList<>(); + private List buffers = null; - public UDFArrayDetails() { + public UDFArrayDetails() { } public UDFArrayDetails parameterId(String parameterId) { + this.parameterId = parameterId; return this; } - /** + /** * An optional client-generated identifier to distinguish between multiple range/buffer requests from the same array in the same call. This may be set for MultiArrayUDFs that use the `argument_json` style of passing arrays. * @return parameterId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "An optional client-generated identifier to distinguish between multiple range/buffer requests from the same array in the same call. This may be set for MultiArrayUDFs that use the `argument_json` style of passing arrays. ") + public String getParameterId() { return parameterId; } + public void setParameterId(String parameterId) { this.parameterId = parameterId; } public UDFArrayDetails uri(String uri) { + this.uri = uri; return this; } - /** + /** * array to set ranges and buffers on, must be in tiledb:// format * @return uri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "array to set ranges and buffers on, must be in tiledb:// format") + public String getUri() { return uri; } + public void setUri(String uri) { this.uri = uri; } public UDFArrayDetails ranges(QueryRanges ranges) { + this.ranges = ranges; return this; } - /** + /** * Get ranges * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public QueryRanges getRanges() { return ranges; } + public void setRanges(QueryRanges ranges) { this.ranges = ranges; } public UDFArrayDetails buffers(List buffers) { + this.buffers = buffers; return this; } @@ -144,15 +149,18 @@ public UDFArrayDetails addBuffersItem(String buffersItem) { return this; } - /** + /** * List of buffers to fetch (attributes + dimensions) * @return buffers - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of buffers to fetch (attributes + dimensions)") + public List getBuffers() { return buffers; } + public void setBuffers(List buffers) { this.buffers = buffers; } @@ -167,10 +175,6 @@ public void setBuffers(List buffers) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFArrayDetails instance itself */ public UDFArrayDetails putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -182,8 +186,6 @@ public UDFArrayDetails putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -191,9 +193,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -275,31 +274,32 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFArrayDetails - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFArrayDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFArrayDetails + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFArrayDetails.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFArrayDetails is not found in the empty JSON string", UDFArrayDetails.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("parameter_id") != null && !jsonObj.get("parameter_id").isJsonNull()) && !jsonObj.get("parameter_id").isJsonPrimitive()) { + if (jsonObj.get("parameter_id") != null && !jsonObj.get("parameter_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parameter_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parameter_id").toString())); } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } // validate the optional field `ranges` - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - QueryRanges.validateJsonElement(jsonObj.get("ranges")); + if (jsonObj.getAsJsonObject("ranges") != null) { + QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); } - // ensure the optional json data is an array if present - if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull() && !jsonObj.get("buffers").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); } } @@ -320,7 +320,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFArrayDetails value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -332,12 +332,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -346,9 +341,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFArrayDetails read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFArrayDetails instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -362,10 +356,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -376,22 +368,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFArrayDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFArrayDetails - * @throws IOException if the JSON string is invalid with respect to UDFArrayDetails - */ + /** + * Create an instance of UDFArrayDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFArrayDetails + * @throws IOException if the JSON string is invalid with respect to UDFArrayDetails + */ public static UDFArrayDetails fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFArrayDetails.class); } - /** - * Convert an instance of UDFArrayDetails to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFArrayDetails to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java index 7dd7b54..bbf7fac 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * Copied udf uri and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Copied udf uri and information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -67,80 +60,96 @@ public class UDFCopied { @SerializedName(SERIALIZED_NAME_ID) private String id; - public UDFCopied() { + public UDFCopied() { } public UDFCopied outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB udf * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB udf") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public UDFCopied namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace of the copied udf * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "namespace of the copied udf") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public UDFCopied name(String name) { + this.name = name; return this; } - /** + /** * name of the copied udf * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of the copied udf") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public UDFCopied id(String id) { + this.id = id; return this; } - /** + /** * unique ID of the copied udf * @return id - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the copied udf") + public String getId() { return id; } + public void setId(String id) { this.id = id; } @@ -155,10 +164,6 @@ public void setId(String id) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFCopied instance itself */ public UDFCopied putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -170,8 +175,6 @@ public UDFCopied putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -179,9 +182,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,36 +253,37 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("id"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFCopied - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFCopied.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFCopied + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFCopied.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopied is not found in the empty JSON string", UDFCopied.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : UDFCopied.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if (!jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } } @@ -303,7 +304,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -315,12 +316,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -329,9 +325,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFCopied read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFCopied instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -345,10 +340,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -359,22 +352,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFCopied given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFCopied - * @throws IOException if the JSON string is invalid with respect to UDFCopied - */ + /** + * Create an instance of UDFCopied given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFCopied + * @throws IOException if the JSON string is invalid with respect to UDFCopied + */ public static UDFCopied fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFCopied.class); } - /** - * Convert an instance of UDFCopied to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFCopied to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java index b886a8e..923ce3d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java @@ -14,34 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -49,7 +41,8 @@ /** * information required to copy a udf */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "information required to copy a udf") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -63,61 +56,73 @@ public class UDFCopy { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public UDFCopy() { + public UDFCopy() { } public UDFCopy outputUri(String outputUri) { + this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "output location of the TileDB File") + public String getOutputUri() { return outputUri; } + public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public UDFCopy namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace to register the copy. If empty use the namespace of the request user * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "namespace to register the copy. If empty use the namespace of the request user") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public UDFCopy name(String name) { + this.name = name; return this; } - /** + /** * name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace") + public String getName() { return name; } + public void setName(String name) { this.name = name; } @@ -132,10 +137,6 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFCopy instance itself */ public UDFCopy putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +148,6 @@ public UDFCopy putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFCopy - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFCopy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFCopy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFCopy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopy is not found in the empty JSON string", UDFCopy.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { + if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -266,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +275,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +284,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFCopy read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFCopy instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +299,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +311,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFCopy given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFCopy - * @throws IOException if the JSON string is invalid with respect to UDFCopy - */ + /** + * Create an instance of UDFCopy given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFCopy + * @throws IOException if the JSON string is invalid with respect to UDFCopy + */ public static UDFCopy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFCopy.class); } - /** - * Convert an instance of UDFCopy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFCopy to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java index d2a7118..5385673 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java @@ -14,42 +14,34 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * A user-favorite UDF item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A user-favorite UDF item") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFFavorite { public static final String SERIALIZED_NAME_UDF_UUID = "udf_uuid"; @SerializedName(SERIALIZED_NAME_UDF_UUID) @@ -63,61 +55,73 @@ public class UDFFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public UDFFavorite() { + public UDFFavorite() { } public UDFFavorite udfUuid(String udfUuid) { + this.udfUuid = udfUuid; return this; } - /** + /** * unique UUID of the UDF * @return udfUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "unique UUID of the UDF") + public String getUdfUuid() { return udfUuid; } + public void setUdfUuid(String udfUuid) { this.udfUuid = udfUuid; } public UDFFavorite namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * the namespace of the UDF * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the namespace of the UDF") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public UDFFavorite name(String name) { + this.name = name; return this; } - /** + /** * the name of the UDF * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the name of the UDF") + public String getName() { return name; } + public void setName(String name) { this.name = name; } @@ -132,10 +136,6 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFFavorite instance itself */ public UDFFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -147,8 +147,6 @@ public UDFFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -156,9 +154,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -226,26 +221,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFFavorite - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavorite is not found in the empty JSON string", UDFFavorite.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("udf_uuid") != null && !jsonObj.get("udf_uuid").isJsonNull()) && !jsonObj.get("udf_uuid").isJsonPrimitive()) { + if (jsonObj.get("udf_uuid") != null && !jsonObj.get("udf_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_uuid").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -266,7 +262,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +274,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +283,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFFavorite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +298,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +310,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFFavorite - * @throws IOException if the JSON string is invalid with respect to UDFFavorite - */ + /** + * Create an instance of UDFFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFFavorite + * @throws IOException if the JSON string is invalid with respect to UDFFavorite + */ public static UDFFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFFavorite.class); } - /** - * Convert an instance of UDFFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFFavorite to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java index 1173cf0..bd20fd9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java @@ -14,59 +14,51 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.tiledb.cloud.rest_api.JSON; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; -import io.tiledb.cloud.rest_api.JSON; - /** * Object including UDF favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Object including UDF favorites and pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFFavoritesData { public static final String SERIALIZED_NAME_UDFS = "udfs"; @SerializedName(SERIALIZED_NAME_UDFS) - private List udfs = new ArrayList<>(); + private List udfs = null; public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public UDFFavoritesData() { + public UDFFavoritesData() { } public UDFFavoritesData udfs(List udfs) { + this.udfs = udfs; return this; } @@ -79,34 +71,41 @@ public UDFFavoritesData addUdfsItem(ArrayInfo udfsItem) { return this; } - /** + /** * List of UDF infos * @return udfs - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of UDF infos") + public List getUdfs() { return udfs; } + public void setUdfs(List udfs) { this.udfs = udfs; } public UDFFavoritesData paginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; return this; } - /** + /** * Get paginationMetadata * @return paginationMetadata - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PaginationMetadata getPaginationMetadata() { return paginationMetadata; } + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } @@ -121,10 +120,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFFavoritesData instance itself */ public UDFFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +131,6 @@ public UDFFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +138,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +202,35 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFFavoritesData - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavoritesData is not found in the empty JSON string", UDFFavoritesData.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { - JsonArray jsonArrayudfs = jsonObj.getAsJsonArray("udfs"); - if (jsonArrayudfs != null) { - // ensure the json data is an array - if (!jsonObj.get("udfs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `udfs` to be an array in the JSON string but got `%s`", jsonObj.get("udfs").toString())); - } - - // validate the optional field `udfs` (array) - for (int i = 0; i < jsonArrayudfs.size(); i++) { - ArrayInfo.validateJsonElement(jsonArrayudfs.get(i)); - }; + JsonArray jsonArrayudfs = jsonObj.getAsJsonArray("udfs"); + if (jsonArrayudfs != null) { + // ensure the json data is an array + if (!jsonObj.get("udfs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `udfs` to be an array in the JSON string but got `%s`", jsonObj.get("udfs").toString())); } + + // validate the optional field `udfs` (array) + for (int i = 0; i < jsonArrayudfs.size(); i++) { + ArrayInfo.validateJsonObject(jsonArrayudfs.get(i).getAsJsonObject()); + }; } // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -261,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +262,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +271,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFFavoritesData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +286,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +298,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFFavoritesData - * @throws IOException if the JSON string is invalid with respect to UDFFavoritesData - */ + /** + * Create an instance of UDFFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFFavoritesData + * @throws IOException if the JSON string is invalid with respect to UDFFavoritesData + */ public static UDFFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFFavoritesData.class); } - /** - * Convert an instance of UDFFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFFavoritesData to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java index 48f3d39..b1f815b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * Defines a set of images related to a specific name */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Defines a set of images related to a specific name") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFImage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -64,61 +56,73 @@ public class UDFImage { @SerializedName(SERIALIZED_NAME_LANGUAGE) private UDFLanguage language; - public UDFImage() { + public UDFImage() { } public UDFImage id(String id) { + this.id = id; return this; } - /** + /** * Unique ID of set of images * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of set of images") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public UDFImage name(String name) { + this.name = name; return this; } - /** + /** * name of UDF * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of UDF") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public UDFImage language(UDFLanguage language) { + this.language = language; return this; } - /** + /** * Get language * @return language - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFLanguage getLanguage() { return language; } + public void setLanguage(UDFLanguage language) { this.language = language; } @@ -133,10 +137,6 @@ public void setLanguage(UDFLanguage language) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFImage instance itself */ public UDFImage putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -148,8 +148,6 @@ public UDFImage putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -157,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -227,29 +222,26 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFImage - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFImage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFImage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFImage.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImage is not found in the empty JSON string", UDFImage.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -268,7 +260,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFImage value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -280,12 +272,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -294,9 +281,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFImage read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFImage instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -310,10 +296,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -324,22 +308,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFImage given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFImage - * @throws IOException if the JSON string is invalid with respect to UDFImage - */ + /** + * Create an instance of UDFImage given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFImage + * @throws IOException if the JSON string is invalid with respect to UDFImage + */ public static UDFImage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFImage.class); } - /** - * Convert an instance of UDFImage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFImage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java index ca9f878..a2f8439 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java @@ -14,35 +14,27 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +42,8 @@ /** * Defines an image that belongs to a set of images having a version */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Defines an image that belongs to a set of images having a version") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFImageVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -80,137 +73,165 @@ public class UDFImageVersion { @SerializedName(SERIALIZED_NAME_LATEST) private Boolean latest; - public UDFImageVersion() { + public UDFImageVersion() { } public UDFImageVersion id(String id) { + this.id = id; return this; } - /** + /** * Unique ID of a versioned image * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of a versioned image") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public UDFImageVersion name(String name) { + this.name = name; return this; } - /** + /** * name of UDFImageVersion * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of UDFImageVersion") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public UDFImageVersion udfImageUuid(String udfImageUuid) { + this.udfImageUuid = udfImageUuid; return this; } - /** + /** * Unique ID of the UDF image set * @return udfImageUuid - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the UDF image set") + public String getUdfImageUuid() { return udfImageUuid; } + public void setUdfImageUuid(String udfImageUuid) { this.udfImageUuid = udfImageUuid; } public UDFImageVersion dockerImage(String dockerImage) { + this.dockerImage = dockerImage; return this; } - /** + /** * Uri of docker image related to current entry * @return dockerImage - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Uri of docker image related to current entry") + public String getDockerImage() { return dockerImage; } + public void setDockerImage(String dockerImage) { this.dockerImage = dockerImage; } public UDFImageVersion version(BigDecimal version) { + this.version = version; return this; } - /** + /** * Image-specific version * @return version - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "2.0", value = "Image-specific version") + public BigDecimal getVersion() { return version; } + public void setVersion(BigDecimal version) { this.version = version; } public UDFImageVersion _default(Boolean _default) { + this._default = _default; return this; } - /** + /** * If current image is default version * @return _default - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "If current image is default version") + public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } public UDFImageVersion latest(Boolean latest) { + this.latest = latest; return this; } - /** + /** * If current image is latest version * @return latest - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "If current image is latest version") + public Boolean getLatest() { return latest; } + public void setLatest(Boolean latest) { this.latest = latest; } @@ -225,10 +246,6 @@ public void setLatest(Boolean latest) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFImageVersion instance itself */ public UDFImageVersion putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -240,8 +257,6 @@ public UDFImageVersion putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -249,9 +264,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -331,29 +343,30 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFImageVersion - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFImageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFImageVersion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFImageVersion.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImageVersion is not found in the empty JSON string", UDFImageVersion.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("udf_image_uuid") != null && !jsonObj.get("udf_image_uuid").isJsonNull()) && !jsonObj.get("udf_image_uuid").isJsonPrimitive()) { + if (jsonObj.get("udf_image_uuid") != null && !jsonObj.get("udf_image_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_image_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_image_uuid").toString())); } - if ((jsonObj.get("docker_image") != null && !jsonObj.get("docker_image").isJsonNull()) && !jsonObj.get("docker_image").isJsonPrimitive()) { + if (jsonObj.get("docker_image") != null && !jsonObj.get("docker_image").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `docker_image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("docker_image").toString())); } } @@ -374,7 +387,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFImageVersion value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -386,12 +399,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -400,9 +408,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFImageVersion read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFImageVersion instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -416,10 +423,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -430,22 +435,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFImageVersion given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFImageVersion - * @throws IOException if the JSON string is invalid with respect to UDFImageVersion - */ + /** + * Create an instance of UDFImageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFImageVersion + * @throws IOException if the JSON string is invalid with respect to UDFImageVersion + */ public static UDFImageVersion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFImageVersion.class); } - /** - * Convert an instance of UDFImageVersion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFImageVersion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java index 8879166..acf9790 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import io.tiledb.cloud.rest_api.model.UDFType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +43,8 @@ /** * User-defined function that can persist in db, used and shared multiple times */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "User-defined function that can persist in db, used and shared multiple times") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -85,145 +76,174 @@ public class UDFInfo { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; - public UDFInfo() { + public UDFInfo() { } public UDFInfo id(String id) { + this.id = id; return this; } - /** + /** * Unique ID of UDF * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of UDF") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public UDFInfo name(String name) { + this.name = name; return this; } - /** + /** * name of UDF * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of UDF") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public UDFInfo language(UDFLanguage language) { + this.language = language; return this; } - /** + /** * Get language * @return language - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFLanguage getLanguage() { return language; } + public void setLanguage(UDFLanguage language) { this.language = language; } public UDFInfo type(UDFType type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFType getType() { return type; } + public void setType(UDFType type) { this.type = type; } public UDFInfo readme(String readme) { + this.readme = readme; return this; } - /** + /** * Markdown readme of UDFs * @return readme - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Markdown readme of UDFs") + public String getReadme() { return readme; } + public void setReadme(String readme) { this.readme = readme; } public UDFInfo licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public UDFInfo licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public UDFInfo tags(List tags) { + this.tags = tags; return this; } @@ -236,15 +256,18 @@ public UDFInfo addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for UDF * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for UDF") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } @@ -259,10 +282,6 @@ public void setTags(List tags) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFInfo instance itself */ public UDFInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -274,8 +293,6 @@ public UDFInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -283,9 +300,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -368,44 +382,37 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfo is not found in the empty JSON string", UDFInfo.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - UDFType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonNull()) && !jsonObj.get("readme").isJsonPrimitive()) { + if (jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `readme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("readme").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } } @@ -426,7 +433,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -438,12 +445,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -452,9 +454,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -468,10 +469,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -482,22 +481,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFInfo - * @throws IOException if the JSON string is invalid with respect to UDFInfo - */ + /** + * Create an instance of UDFInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFInfo + * @throws IOException if the JSON string is invalid with respect to UDFInfo + */ public static UDFInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFInfo.class); } - /** - * Convert an instance of UDFInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java index 65c7b13..ad37760 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java @@ -14,38 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import io.tiledb.cloud.rest_api.model.UDFType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +43,8 @@ /** * User-defined function that can persist in db, used and shared multiple times */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "User-defined function that can persist in db, used and shared multiple times") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFInfoUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -97,202 +88,243 @@ public class UDFInfoUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = new ArrayList<>(); + private List tags = null; - public UDFInfoUpdate() { + public UDFInfoUpdate() { } public UDFInfoUpdate name(String name) { + this.name = name; return this; } - /** + /** * name of UDF * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "name of UDF") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public UDFInfoUpdate language(UDFLanguage language) { + this.language = language; return this; } - /** + /** * Get language * @return language - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFLanguage getLanguage() { return language; } + public void setLanguage(UDFLanguage language) { this.language = language; } public UDFInfoUpdate version(String version) { + this.version = version; return this; } - /** + /** * Type-specific version * @return version - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Type-specific version") + public String getVersion() { return version; } + public void setVersion(String version) { this.version = version; } public UDFInfoUpdate imageName(String imageName) { + this.imageName = imageName; return this; } - /** + /** * Docker image name to use for UDF * @return imageName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Docker image name to use for UDF") + public String getImageName() { return imageName; } + public void setImageName(String imageName) { this.imageName = imageName; } public UDFInfoUpdate type(UDFType type) { + this.type = type; return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public UDFType getType() { return type; } + public void setType(UDFType type) { this.type = type; } public UDFInfoUpdate exec(String exec) { + this.exec = exec; return this; } - /** + /** * Type-specific executable text * @return exec - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Type-specific executable text") + public String getExec() { return exec; } + public void setExec(String exec) { this.exec = exec; } public UDFInfoUpdate execRaw(String execRaw) { + this.execRaw = execRaw; return this; } - /** + /** * optional raw text to store of serialized function, used for showing in UI * @return execRaw - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional raw text to store of serialized function, used for showing in UI") + public String getExecRaw() { return execRaw; } + public void setExecRaw(String execRaw) { this.execRaw = execRaw; } public UDFInfoUpdate readme(String readme) { + this.readme = readme; return this; } - /** + /** * Markdown readme of UDFs * @return readme - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Markdown readme of UDFs") + public String getReadme() { return readme; } + public void setReadme(String readme) { this.readme = readme; } public UDFInfoUpdate licenseId(String licenseId) { + this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License identifier from SPDX License List or Custom") + public String getLicenseId() { return licenseId; } + public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public UDFInfoUpdate licenseText(String licenseText) { + this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "License text") + public String getLicenseText() { return licenseText; } + public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public UDFInfoUpdate tags(List tags) { + this.tags = tags; return this; } @@ -305,15 +337,18 @@ public UDFInfoUpdate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for UDF * @return tags - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "optional tags for UDF") + public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } @@ -328,10 +363,6 @@ public void setTags(List tags) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFInfoUpdate instance itself */ public UDFInfoUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -343,8 +374,6 @@ public UDFInfoUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -352,9 +381,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -446,53 +472,46 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFInfoUpdate - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFInfoUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFInfoUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFInfoUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfoUpdate is not found in the empty JSON string", UDFInfoUpdate.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } - if ((jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonNull()) && !jsonObj.get("image_name").isJsonPrimitive()) { + if (jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `image_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image_name").toString())); } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - UDFType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) && !jsonObj.get("exec").isJsonPrimitive()) { + if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec").toString())); } - if ((jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonNull()) && !jsonObj.get("exec_raw").isJsonPrimitive()) { + if (jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec_raw` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec_raw").toString())); } - if ((jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonNull()) && !jsonObj.get("readme").isJsonPrimitive()) { + if (jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `readme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("readme").toString())); } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { + if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { + if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } } @@ -513,7 +532,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -525,12 +544,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -539,9 +553,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFInfoUpdate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -555,10 +568,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -569,22 +580,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFInfoUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFInfoUpdate - * @throws IOException if the JSON string is invalid with respect to UDFInfoUpdate - */ + /** + * Create an instance of UDFInfoUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFInfoUpdate + * @throws IOException if the JSON string is invalid with respect to UDFInfoUpdate + */ public static UDFInfoUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFInfoUpdate.class); } - /** - * Convert an instance of UDFInfoUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFInfoUpdate to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java index 0d790fa..a97d4be 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public UDFLanguage read(final JsonReader jsonReader) throws IOException { return UDFLanguage.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - UDFLanguage.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java index f0f19d3..ee45d7b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java @@ -14,37 +14,28 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFActions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -52,11 +43,12 @@ /** * details for sharing a given UDF */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "details for sharing a given UDF") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList<>(); + private List actions = null; public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -66,10 +58,11 @@ public class UDFSharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public UDFSharing() { + public UDFSharing() { } public UDFSharing actions(List actions) { + this.actions = actions; return this; } @@ -82,53 +75,64 @@ public UDFSharing addActionsItem(UDFActions actionsItem) { return this; } - /** + /** * List of permitted actions * @return actions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "[fetch, share]", value = "List of permitted actions") + public List getActions() { return actions; } + public void setActions(List actions) { this.actions = actions; } public UDFSharing namespace(String namespace) { + this.namespace = namespace; return this; } - /** + /** * namespace being granted array access can be a user or organization * @return namespace - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "MyOrganization", value = "namespace being granted array access can be a user or organization") + public String getNamespace() { return namespace; } + public void setNamespace(String namespace) { this.namespace = namespace; } public UDFSharing namespaceType(String namespaceType) { + this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") + public String getNamespaceType() { return namespaceType; } + public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -143,10 +147,6 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFSharing instance itself */ public UDFSharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -158,8 +158,6 @@ public UDFSharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -167,9 +165,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -237,27 +232,28 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFSharing - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFSharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFSharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFSharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSharing is not found in the empty JSON string", UDFSharing.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } - if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if (jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -278,7 +274,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -290,12 +286,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -304,9 +295,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFSharing read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFSharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -320,10 +310,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -334,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFSharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFSharing - * @throws IOException if the JSON string is invalid with respect to UDFSharing - */ + /** + * Create an instance of UDFSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSharing + * @throws IOException if the JSON string is invalid with respect to UDFSharing + */ public static UDFSharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFSharing.class); } - /** - * Convert an instance of UDFSharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFSharing to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java index 84a91b6..68c30b5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java @@ -14,38 +14,29 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.UDFSubarrayRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -53,7 +44,8 @@ /** * Subarray bounds to query for a UDF to operate on */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "Subarray bounds to query for a UDF to operate on") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFSubarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -61,31 +53,36 @@ public class UDFSubarray { public static final String SERIALIZED_NAME_RANGES = "ranges"; @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = new ArrayList<>(); + private List ranges = null; - public UDFSubarray() { + public UDFSubarray() { } public UDFSubarray layout(Layout layout) { + this.layout = layout; return this; } - /** + /** * Get layout * @return layout - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Layout getLayout() { return layout; } + public void setLayout(Layout layout) { this.layout = layout; } public UDFSubarray ranges(List ranges) { + this.ranges = ranges; return this; } @@ -98,15 +95,18 @@ public UDFSubarray addRangesItem(UDFSubarrayRange rangesItem) { return this; } - /** + /** * List of ranges, * @return ranges - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of ranges,") + public List getRanges() { return ranges; } + public void setRanges(List ranges) { this.ranges = ranges; } @@ -121,10 +121,6 @@ public void setRanges(List ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFSubarray instance itself */ public UDFSubarray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -136,8 +132,6 @@ public UDFSubarray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,9 +139,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -212,36 +203,31 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFSubarray - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFSubarray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFSubarray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFSubarray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarray is not found in the empty JSON string", UDFSubarray.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); - if (jsonArrayranges != null) { - // ensure the json data is an array - if (!jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); - } - - // validate the optional field `ranges` (array) - for (int i = 0; i < jsonArrayranges.size(); i++) { - UDFSubarrayRange.validateJsonElement(jsonArrayranges.get(i)); - }; + JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); + if (jsonArrayranges != null) { + // ensure the json data is an array + if (!jsonObj.get("ranges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); } + + // validate the optional field `ranges` (array) + for (int i = 0; i < jsonArrayranges.size(); i++) { + UDFSubarrayRange.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); + }; } } @@ -261,7 +247,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFSubarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,12 +259,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -287,9 +268,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFSubarray read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFSubarray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -303,10 +283,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -317,22 +295,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFSubarray given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFSubarray - * @throws IOException if the JSON string is invalid with respect to UDFSubarray - */ + /** + * Create an instance of UDFSubarray given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSubarray + * @throws IOException if the JSON string is invalid with respect to UDFSubarray + */ public static UDFSubarray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFSubarray.class); } - /** - * Convert an instance of UDFSubarray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFSubarray to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java index 18f73ac..021faaf 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java @@ -14,35 +14,26 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DimensionCoordinate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +41,8 @@ /** * A dimension range to query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "A dimension range to query") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class UDFSubarrayRange { public static final String SERIALIZED_NAME_DIMENSION_ID = "dimension_id"; @SerializedName(SERIALIZED_NAME_DIMENSION_ID) @@ -64,61 +56,73 @@ public class UDFSubarrayRange { @SerializedName(SERIALIZED_NAME_RANGE_END) private DimensionCoordinate rangeEnd; - public UDFSubarrayRange() { + public UDFSubarrayRange() { } public UDFSubarrayRange dimensionId(Integer dimensionId) { + this.dimensionId = dimensionId; return this; } - /** + /** * The dimension index * @return dimensionId - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The dimension index") + public Integer getDimensionId() { return dimensionId; } + public void setDimensionId(Integer dimensionId) { this.dimensionId = dimensionId; } public UDFSubarrayRange rangeStart(DimensionCoordinate rangeStart) { + this.rangeStart = rangeStart; return this; } - /** + /** * Get rangeStart * @return rangeStart - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DimensionCoordinate getRangeStart() { return rangeStart; } + public void setRangeStart(DimensionCoordinate rangeStart) { this.rangeStart = rangeStart; } public UDFSubarrayRange rangeEnd(DimensionCoordinate rangeEnd) { + this.rangeEnd = rangeEnd; return this; } - /** + /** * Get rangeEnd * @return rangeEnd - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DimensionCoordinate getRangeEnd() { return rangeEnd; } + public void setRangeEnd(DimensionCoordinate rangeEnd) { this.rangeEnd = rangeEnd; } @@ -133,10 +137,6 @@ public void setRangeEnd(DimensionCoordinate rangeEnd) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFSubarrayRange instance itself */ public UDFSubarrayRange putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -148,8 +148,6 @@ public UDFSubarrayRange putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -157,9 +155,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -227,26 +222,27 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UDFSubarrayRange - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UDFSubarrayRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFSubarrayRange + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFSubarrayRange.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarrayRange is not found in the empty JSON string", UDFSubarrayRange.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `range_start` - if (jsonObj.get("range_start") != null && !jsonObj.get("range_start").isJsonNull()) { - DimensionCoordinate.validateJsonElement(jsonObj.get("range_start")); + if (jsonObj.getAsJsonObject("range_start") != null) { + DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_start")); } // validate the optional field `range_end` - if (jsonObj.get("range_end") != null && !jsonObj.get("range_end").isJsonNull()) { - DimensionCoordinate.validateJsonElement(jsonObj.get("range_end")); + if (jsonObj.getAsJsonObject("range_end") != null) { + DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_end")); } } @@ -266,7 +262,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFSubarrayRange value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,12 +274,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -292,9 +283,8 @@ else if (entry.getValue() instanceof Character) @Override public UDFSubarrayRange read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance UDFSubarrayRange instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,10 +298,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -322,22 +310,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFSubarrayRange given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFSubarrayRange - * @throws IOException if the JSON string is invalid with respect to UDFSubarrayRange - */ + /** + * Create an instance of UDFSubarrayRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSubarrayRange + * @throws IOException if the JSON string is invalid with respect to UDFSubarrayRange + */ public static UDFSubarrayRange fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFSubarrayRange.class); } - /** - * Convert an instance of UDFSubarrayRange to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFSubarrayRange to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java index 3d30f63..5873b4f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java @@ -14,11 +14,10 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -33,9 +32,7 @@ public enum UDFType { SINGLE_ARRAY("single_array"), - GENERIC("generic"), - - BASH("bash"); + GENERIC("generic"); private String value; @@ -73,10 +70,5 @@ public UDFType read(final JsonReader jsonReader) throws IOException { return UDFType.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - UDFType.fromValue(value); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/User.java b/src/main/java/io/tiledb/cloud/rest_api/model/User.java index ab46e80..d754678 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/User.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/User.java @@ -14,40 +14,31 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetLocations; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -55,7 +46,8 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@ApiModel(description = "User") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -99,15 +91,15 @@ public class User { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) - private List organizations = new ArrayList<>(); + private List organizations = null; public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = new ArrayList<>(); + private List allowedActions = null; public static final String SERIALIZED_NAME_ENABLED_FEATURES = "enabled_features"; @SerializedName(SERIALIZED_NAME_ENABLED_FEATURES) - private List enabledFeatures = new ArrayList<>(); + private List enabledFeatures = null; public static final String SERIALIZED_NAME_UNPAID_SUBSCRIPTION = "unpaid_subscription"; @SerializedName(SERIALIZED_NAME_UNPAID_SUBSCRIPTION) @@ -133,9 +125,10 @@ public class User { @SerializedName(SERIALIZED_NAME_DEFAULT_REGION) private String defaultRegion; - public User() { + public User() { } + public User( Boolean isValidEmail, Boolean stripeConnect, @@ -152,191 +145,233 @@ public User( } public User id(String id) { + this.id = id; return this; } - /** + /** * unique ID of user * @return id - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of user") + public String getId() { return id; } + public void setId(String id) { this.id = id; } public User username(String username) { + this.username = username; return this; } - /** + /** * username must be unique * @return username - */ + **/ @javax.annotation.Nonnull + @ApiModelProperty(example = "username", required = true, value = "username must be unique") + public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public User password(String password) { + this.password = password; return this; } - /** + /** * password * @return password - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "password", value = "password") + public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public User name(String name) { + this.name = name; return this; } - /** + /** * the user's full, real name * @return name - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "Jane Doe", value = "the user's full, real name") + public String getName() { return name; } + public void setName(String name) { this.name = name; } public User email(String email) { + this.email = email; return this; } - /** + /** * the user's email * @return email - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "jane.doe@example.com", value = "the user's email") + public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + /** * user's email is validated to be correct * @return isValidEmail - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "user's email is validated to be correct") + public Boolean getIsValidEmail() { return isValidEmail; } - /** + + /** * Denotes that the user is able to apply pricing to arrays by means of Stripe Connect * @return stripeConnect - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Denotes that the user is able to apply pricing to arrays by means of Stripe Connect") + public Boolean getStripeConnect() { return stripeConnect; } + public User company(String company) { + this.company = company; return this; } - /** + /** * the user's company * @return company - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "TileDB", value = "the user's company") + public String getCompany() { return company; } + public void setCompany(String company) { this.company = company; } public User logo(String logo) { + this.logo = logo; return this; } - /** + /** * the user's logo * @return logo - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "the user's logo") + public String getLogo() { return logo; } + public void setLogo(String logo) { this.logo = logo; } public User timezone(String timezone) { + this.timezone = timezone; return this; } - /** + /** * Get timezone * @return timezone - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(example = "Europe/Athens", value = "") + public String getTimezone() { return timezone; } + public void setTimezone(String timezone) { this.timezone = timezone; } - /** + /** * Array of organizations a user is part of and their roles * @return organizations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Array of organizations a user is part of and their roles") + public List getOrganizations() { return organizations; } + public User allowedActions(List allowedActions) { + this.allowedActions = allowedActions; return this; } @@ -349,132 +384,161 @@ public User addAllowedActionsItem(NamespaceActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this organization * @return allowedActions - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "list of actions user is allowed to do on this organization") + public List getAllowedActions() { return allowedActions; } + public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } - /** + /** * List of extra/optional/beta features to enable for namespace * @return enabledFeatures - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "List of extra/optional/beta features to enable for namespace") + public List getEnabledFeatures() { return enabledFeatures; } - /** + + /** * A notice that the user has an unpaid subscription * @return unpaidSubscription - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "A notice that the user has an unpaid subscription") + public Boolean getUnpaidSubscription() { return unpaidSubscription; } + public User defaultS3Path(String defaultS3Path) { + this.defaultS3Path = defaultS3Path; return this; } - /** + /** * The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. * @return defaultS3Path - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. ") + public String getDefaultS3Path() { return defaultS3Path; } + public void setDefaultS3Path(String defaultS3Path) { this.defaultS3Path = defaultS3Path; } public User defaultS3PathCredentialsName(Object defaultS3PathCredentialsName) { + this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; return this; } - /** + /** * The name of the credentials used to create and access files in the `default_s3_path`, if needed. * @return defaultS3PathCredentialsName - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the credentials used to create and access files in the `default_s3_path`, if needed. ") + public Object getDefaultS3PathCredentialsName() { return defaultS3PathCredentialsName; } + public void setDefaultS3PathCredentialsName(Object defaultS3PathCredentialsName) { this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; } public User assetLocations(AssetLocations assetLocations) { + this.assetLocations = assetLocations; return this; } - /** + /** * Get assetLocations * @return assetLocations - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AssetLocations getAssetLocations() { return assetLocations; } + public void setAssetLocations(AssetLocations assetLocations) { this.assetLocations = assetLocations; } public User defaultNamespaceCharged(String defaultNamespaceCharged) { + this.defaultNamespaceCharged = defaultNamespaceCharged; return this; } - /** + /** * Override the default namespace charged for actions when no namespace is specified * @return defaultNamespaceCharged - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "Override the default namespace charged for actions when no namespace is specified") + public String getDefaultNamespaceCharged() { return defaultNamespaceCharged; } + public void setDefaultNamespaceCharged(String defaultNamespaceCharged) { this.defaultNamespaceCharged = defaultNamespaceCharged; } public User defaultRegion(String defaultRegion) { + this.defaultRegion = defaultRegion; return this; } - /** + /** * The default region to use for notebooks and other operations. It must be a region supported by TileDB, see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration * @return defaultRegion - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "The default region to use for notebooks and other operations. It must be a region supported by TileDB, see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration ") + public String getDefaultRegion() { return defaultRegion; } + public void setDefaultRegion(String defaultRegion) { this.defaultRegion = defaultRegion; } @@ -489,10 +553,6 @@ public void setDefaultRegion(String defaultRegion) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the User instance itself */ public User putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -504,8 +564,6 @@ public User putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -513,9 +571,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -643,83 +698,82 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("username"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to User - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to User + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (User.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : User.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if (!jsonObj.get("username").isJsonPrimitive()) { + if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } - if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { + if (jsonObj.get("password") != null && !jsonObj.get("password").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + if (jsonObj.get("email") != null && !jsonObj.get("email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } - if ((jsonObj.get("company") != null && !jsonObj.get("company").isJsonNull()) && !jsonObj.get("company").isJsonPrimitive()) { + if (jsonObj.get("company") != null && !jsonObj.get("company").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `company` to be a primitive type in the JSON string but got `%s`", jsonObj.get("company").toString())); } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); } - if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { + if (jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); } - if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull()) { - JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); - if (jsonArrayorganizations != null) { - // ensure the json data is an array - if (!jsonObj.get("organizations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); - } - - // validate the optional field `organizations` (array) - for (int i = 0; i < jsonArrayorganizations.size(); i++) { - OrganizationUser.validateJsonElement(jsonArrayorganizations.get(i)); - }; + JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); + if (jsonArrayorganizations != null) { + // ensure the json data is an array + if (!jsonObj.get("organizations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); } + + // validate the optional field `organizations` (array) + for (int i = 0; i < jsonArrayorganizations.size(); i++) { + OrganizationUser.validateJsonObject(jsonArrayorganizations.get(i).getAsJsonObject()); + }; } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull() && !jsonObj.get("enabled_features").isJsonArray()) { + // ensure the json data is an array + if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); } - if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { + if (jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); } // validate the optional field `asset_locations` - if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonElement(jsonObj.get("asset_locations")); + if (jsonObj.getAsJsonObject("asset_locations") != null) { + AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); } - if ((jsonObj.get("default_namespace_charged") != null && !jsonObj.get("default_namespace_charged").isJsonNull()) && !jsonObj.get("default_namespace_charged").isJsonPrimitive()) { + if (jsonObj.get("default_namespace_charged") != null && !jsonObj.get("default_namespace_charged").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_namespace_charged` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_namespace_charged").toString())); } - if ((jsonObj.get("default_region") != null && !jsonObj.get("default_region").isJsonNull()) && !jsonObj.get("default_region").isJsonPrimitive()) { + if (jsonObj.get("default_region") != null && !jsonObj.get("default_region").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_region").toString())); } } @@ -740,7 +794,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, User value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -752,12 +806,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -766,9 +815,8 @@ else if (entry.getValue() instanceof Character) @Override public User read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance User instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -782,10 +830,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -796,22 +842,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of User given an JSON string - * - * @param jsonString JSON string - * @return An instance of User - * @throws IOException if the JSON string is invalid with respect to User - */ + /** + * Create an instance of User given an JSON string + * + * @param jsonString JSON string + * @return An instance of User + * @throws IOException if the JSON string is invalid with respect to User + */ public static User fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, User.class); } - /** - * Convert an instance of User to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of User to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java index 3c758a4..68533b4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java @@ -14,35 +14,25 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainArray; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import io.tiledb.cloud.rest_api.JSON; @@ -50,7 +40,7 @@ /** * Writer */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-08T21:39:23.775746+03:00[Europe/Athens]") public class Writer { public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) @@ -68,80 +58,96 @@ public class Writer { @SerializedName(SERIALIZED_NAME_SUBARRAY) private DomainArray subarray; - public Writer() { + public Writer() { } public Writer checkCoordDups(Boolean checkCoordDups) { + this.checkCoordDups = checkCoordDups; return this; } - /** + /** * Get checkCoordDups * @return checkCoordDups - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getCheckCoordDups() { return checkCoordDups; } + public void setCheckCoordDups(Boolean checkCoordDups) { this.checkCoordDups = checkCoordDups; } public Writer checkCoordOOB(Boolean checkCoordOOB) { + this.checkCoordOOB = checkCoordOOB; return this; } - /** + /** * Get checkCoordOOB * @return checkCoordOOB - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getCheckCoordOOB() { return checkCoordOOB; } + public void setCheckCoordOOB(Boolean checkCoordOOB) { this.checkCoordOOB = checkCoordOOB; } public Writer dedupCoords(Boolean dedupCoords) { + this.dedupCoords = dedupCoords; return this; } - /** + /** * Get dedupCoords * @return dedupCoords - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Boolean getDedupCoords() { return dedupCoords; } + public void setDedupCoords(Boolean dedupCoords) { this.dedupCoords = dedupCoords; } public Writer subarray(DomainArray subarray) { + this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - */ + **/ @javax.annotation.Nullable + @ApiModelProperty(value = "") + public DomainArray getSubarray() { return subarray; } + public void setSubarray(DomainArray subarray) { this.subarray = subarray; } @@ -156,10 +162,6 @@ public void setSubarray(DomainArray subarray) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Writer instance itself */ public Writer putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,8 +173,6 @@ public Writer putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. - * - * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,9 +180,6 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -253,22 +250,23 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Writer - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Writer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Writer + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Writer.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields throw new IllegalArgumentException(String.format("The required field(s) %s in Writer is not found in the empty JSON string", Writer.openapiRequiredFields.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - DomainArray.validateJsonElement(jsonObj.get("subarray")); + if (jsonObj.getAsJsonObject("subarray") != null) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } } @@ -288,7 +286,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Writer value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additional properties + // serialize additonal properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -300,12 +298,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } @@ -314,9 +307,8 @@ else if (entry.getValue() instanceof Character) @Override public Writer read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); // store additional fields in the deserialized instance Writer instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -330,10 +322,8 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); else throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -344,22 +334,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Writer given an JSON string - * - * @param jsonString JSON string - * @return An instance of Writer - * @throws IOException if the JSON string is invalid with respect to Writer - */ + /** + * Create an instance of Writer given an JSON string + * + * @param jsonString JSON string + * @return An instance of Writer + * @throws IOException if the JSON string is invalid with respect to Writer + */ public static Writer fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Writer.class); } - /** - * Convert an instance of Writer to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Writer to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiCallback.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ApiCallback.java deleted file mode 100644 index e09c86a..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiCallback.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import java.util.Map; -import java.util.List; - -/** - * Callback for asynchronous API call. - * - * @param The return type - */ -public interface ApiCallback { - /** - * This is called when the API call fails. - * - * @param e The exception causing the failure - * @param statusCode Status code of the response if available, otherwise it would be 0 - * @param responseHeaders Headers of the response if available, otherwise it would be null - */ - void onFailure(ApiException e, int statusCode, Map> responseHeaders); - - /** - * This is called when the API call succeeded. - * - * @param result The result deserialized from response - * @param statusCode Status code of the response - * @param responseHeaders Headers of the response - */ - void onSuccess(T result, int statusCode, Map> responseHeaders); - - /** - * This is called when the API upload processing. - * - * @param bytesWritten bytes Written - * @param contentLength content length of request body - * @param done write end - */ - void onUploadProgress(long bytesWritten, long contentLength, boolean done); - - /** - * This is called when the API download processing. - * - * @param bytesRead bytes Read - * @param contentLength content length of the response - * @param done Read end - */ - void onDownloadProgress(long bytesRead, long contentLength, boolean done); -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiClient.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ApiClient.java deleted file mode 100644 index e22f311..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiClient.java +++ /dev/null @@ -1,1555 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import okhttp3.*; -import okhttp3.internal.http.HttpMethod; -import okhttp3.internal.tls.OkHostnameVerifier; -import okhttp3.logging.HttpLoggingInterceptor; -import okhttp3.logging.HttpLoggingInterceptor.Level; -import okio.Buffer; -import okio.BufferedSink; -import okio.Okio; -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; - -import javax.net.ssl.*; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.UnsupportedEncodingException; -import java.lang.reflect.Type; -import java.net.URI; -import java.net.URLConnection; -import java.net.URLEncoder; -import java.nio.file.Files; -import java.nio.file.Paths; -import java.security.GeneralSecurityException; -import java.security.KeyStore; -import java.security.SecureRandom; -import java.security.cert.Certificate; -import java.security.cert.CertificateException; -import java.security.cert.CertificateFactory; -import java.text.DateFormat; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.*; -import java.util.Map.Entry; -import java.util.concurrent.TimeUnit; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import io.tiledb.cloud.rest_api.v2.auth.Authentication; -import io.tiledb.cloud.rest_api.v2.auth.HttpBasicAuth; -import io.tiledb.cloud.rest_api.v2.auth.ApiKeyAuth; -import io.tiledb.cloud.rest_api.v2.auth.OAuth; -import io.tiledb.cloud.rest_api.v2.auth.RetryingOAuth; -import io.tiledb.cloud.rest_api.v2.auth.OAuthFlow; - -/** - *

ApiClient class.

- */ -public class ApiClient { - - private String basePath = "/v2"; - private boolean debugging = false; - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String tempFolderPath = null; - - private Map authentications; - - private DateFormat dateFormat; - private DateFormat datetimeFormat; - private boolean lenientDatetimeFormat; - private int dateLength; - - private InputStream sslCaCert; - private boolean verifyingSsl; - private KeyManager[] keyManagers; - - private OkHttpClient httpClient; - private JSON json; - - private HttpLoggingInterceptor loggingInterceptor; - - /** - * Basic constructor for ApiClient - */ - public ApiClient() { - init(); - 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("OAuth2", new OAuth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Basic constructor with custom OkHttpClient - * - * @param client a {@link okhttp3.OkHttpClient} object - */ - public ApiClient(OkHttpClient client) { - init(); - - 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("OAuth2", new OAuth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Constructor for ApiClient to support access token retry on 401/403 configured with client ID - * - * @param clientId client ID - */ - public ApiClient(String clientId) { - this(clientId, null, null); - } - - /** - * Constructor for ApiClient to support access token retry on 401/403 configured with client ID and additional parameters - * - * @param clientId client ID - * @param parameters a {@link java.util.Map} of parameters - */ - public ApiClient(String clientId, Map parameters) { - this(clientId, null, parameters); - } - - /** - * Constructor for ApiClient to support access token retry on 401/403 configured with client ID, secret, and additional parameters - * - * @param clientId client ID - * @param clientSecret client secret - * @param parameters a {@link java.util.Map} of parameters - */ - public ApiClient(String clientId, String clientSecret, Map parameters) { - this(null, clientId, clientSecret, parameters); - } - - /** - * Constructor for ApiClient to support access token retry on 401/403 configured with base path, client ID, secret, and additional parameters - * - * @param basePath base path - * @param clientId client ID - * @param clientSecret client secret - * @param parameters a {@link java.util.Map} of parameters - */ - public ApiClient(String basePath, String clientId, String clientSecret, Map parameters) { - init(); - if (basePath != null) { - this.basePath = basePath; - } - - String tokenUrl = "https://oauth2.tiledb.com/oauth2/token"; - if (!"".equals(tokenUrl) && !URI.create(tokenUrl).isAbsolute()) { - URI uri = URI.create(getBasePath()); - tokenUrl = uri.getScheme() + ":" + - (uri.getAuthority() != null ? "//" + uri.getAuthority() : "") + - tokenUrl; - if (!URI.create(tokenUrl).isAbsolute()) { - throw new IllegalArgumentException("OAuth2 token URL must be an absolute URL"); - } - } - RetryingOAuth retryingOAuth = new RetryingOAuth(tokenUrl, clientId, OAuthFlow.ACCESS_CODE, clientSecret, parameters); - authentications.put( - "OAuth2", - retryingOAuth - ); - initHttpClient(Collections.singletonList(retryingOAuth)); - // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); - authentications.put("BasicAuth", new HttpBasicAuth()); - - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - private void initHttpClient() { - initHttpClient(Collections.emptyList()); - } - - private void initHttpClient(List interceptors) { - OkHttpClient.Builder builder = new OkHttpClient.Builder(); - builder.addNetworkInterceptor(getProgressInterceptor()); - for (Interceptor interceptor: interceptors) { - builder.addInterceptor(interceptor); - } - - httpClient = builder.build(); - } - - private void init() { - verifyingSsl = true; - - json = new JSON(); - - // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.4.0/java"); - - authentications = new HashMap(); - } - - /** - * Get base path - * - * @return Base path - */ - public String getBasePath() { - return basePath; - } - - /** - * Set base path - * - * @param basePath Base path of the URL (e.g /v2 - * @return An instance of OkHttpClient - */ - public ApiClient setBasePath(String basePath) { - this.basePath = basePath; - return this; - } - - /** - * Get HTTP client - * - * @return An instance of OkHttpClient - */ - public OkHttpClient getHttpClient() { - return httpClient; - } - - /** - * Set HTTP client, which must never be null. - * - * @param newHttpClient An instance of OkHttpClient - * @return Api Client - * @throws java.lang.NullPointerException when newHttpClient is null - */ - public ApiClient setHttpClient(OkHttpClient newHttpClient) { - this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); - return this; - } - - /** - * Get JSON - * - * @return JSON object - */ - public JSON getJSON() { - return json; - } - - /** - * Set JSON - * - * @param json JSON object - * @return Api client - */ - public ApiClient setJSON(JSON json) { - this.json = json; - return this; - } - - /** - * True if isVerifyingSsl flag is on - * - * @return True if isVerifySsl flag is on - */ - public boolean isVerifyingSsl() { - return verifyingSsl; - } - - /** - * Configure whether to verify certificate and hostname when making https requests. - * Default to true. - * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. - * - * @param verifyingSsl True to verify TLS/SSL connection - * @return ApiClient - */ - public ApiClient setVerifyingSsl(boolean verifyingSsl) { - this.verifyingSsl = verifyingSsl; - applySslSettings(); - return this; - } - - /** - * Get SSL CA cert. - * - * @return Input stream to the SSL CA cert - */ - public InputStream getSslCaCert() { - return sslCaCert; - } - - /** - * Configure the CA certificate to be trusted when making https requests. - * Use null to reset to default. - * - * @param sslCaCert input stream for SSL CA cert - * @return ApiClient - */ - public ApiClient setSslCaCert(InputStream sslCaCert) { - this.sslCaCert = sslCaCert; - applySslSettings(); - return this; - } - - /** - *

Getter for the field keyManagers.

- * - * @return an array of {@link javax.net.ssl.KeyManager} objects - */ - public KeyManager[] getKeyManagers() { - return keyManagers; - } - - /** - * Configure client keys to use for authorization in an SSL session. - * Use null to reset to default. - * - * @param managers The KeyManagers to use - * @return ApiClient - */ - public ApiClient setKeyManagers(KeyManager[] managers) { - this.keyManagers = managers; - applySslSettings(); - return this; - } - - /** - *

Getter for the field dateFormat.

- * - * @return a {@link java.text.DateFormat} object - */ - public DateFormat getDateFormat() { - return dateFormat; - } - - /** - *

Setter for the field dateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link ApiClient} object - */ - public ApiClient setDateFormat(DateFormat dateFormat) { - this.json.setDateFormat(dateFormat); - return this; - } - - /** - *

Set SqlDateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link ApiClient} object - */ - public ApiClient setSqlDateFormat(DateFormat dateFormat) { - this.json.setSqlDateFormat(dateFormat); - return this; - } - - /** - *

Set OffsetDateTimeFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link ApiClient} object - */ - public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - this.json.setOffsetDateTimeFormat(dateFormat); - return this; - } - - /** - *

Set LocalDateFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link ApiClient} object - */ - public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { - this.json.setLocalDateFormat(dateFormat); - return this; - } - - /** - *

Set LenientOnJson.

- * - * @param lenientOnJson a boolean - * @return a {@link ApiClient} object - */ - public ApiClient setLenientOnJson(boolean lenientOnJson) { - this.json.setLenientOnJson(lenientOnJson); - return this; - } - - /** - * Get authentications (key: authentication name, value: authentication). - * - * @return Map of authentication objects - */ - public Map getAuthentications() { - return authentications; - } - - /** - * Get authentication for the given name. - * - * @param authName The authentication name - * @return The authentication, null if not found - */ - public Authentication getAuthentication(String authName) { - return authentications.get(authName); - } - - - /** - * Helper method to set username for the first HTTP basic authentication. - * - * @param username Username - */ - public void setUsername(String username) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setUsername(username); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set password for the first HTTP basic authentication. - * - * @param password Password - */ - public void setPassword(String password) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setPassword(password); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set API key value for the first API key authentication. - * - * @param apiKey API key - */ - public void setApiKey(String apiKey) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKey(apiKey); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set API key prefix for the first API key authentication. - * - * @param apiKeyPrefix API key prefix - */ - public void setApiKeyPrefix(String apiKeyPrefix) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set access token for the first OAuth2 authentication. - * - * @param accessToken Access token - */ - public void setAccessToken(String accessToken) { - for (Authentication auth : authentications.values()) { - if (auth instanceof OAuth) { - ((OAuth) auth).setAccessToken(accessToken); - return; - } - } - throw new RuntimeException("No OAuth2 authentication configured!"); - } - - /** - * Set the User-Agent header's value (by adding to the default header map). - * - * @param userAgent HTTP request's user agent - * @return ApiClient - */ - public ApiClient setUserAgent(String userAgent) { - addDefaultHeader("User-Agent", userAgent); - return this; - } - - /** - * Add a default header. - * - * @param key The header's key - * @param value The header's value - * @return ApiClient - */ - public ApiClient addDefaultHeader(String key, String value) { - defaultHeaderMap.put(key, value); - return this; - } - - /** - * Add a default cookie. - * - * @param key The cookie's key - * @param value The cookie's value - * @return ApiClient - */ - public ApiClient addDefaultCookie(String key, String value) { - defaultCookieMap.put(key, value); - return this; - } - - /** - * Check that whether debugging is enabled for this API client. - * - * @return True if debugging is enabled, false otherwise. - */ - public boolean isDebugging() { - return debugging; - } - - /** - * Enable/disable debugging for this API client. - * - * @param debugging To enable (true) or disable (false) debugging - * @return ApiClient - */ - public ApiClient setDebugging(boolean debugging) { - if (debugging != this.debugging) { - if (debugging) { - loggingInterceptor = new HttpLoggingInterceptor(); - loggingInterceptor.setLevel(Level.BODY); - httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); - } else { - final OkHttpClient.Builder builder = httpClient.newBuilder(); - builder.interceptors().remove(loggingInterceptor); - httpClient = builder.build(); - loggingInterceptor = null; - } - } - this.debugging = debugging; - return this; - } - - /** - * The path of temporary folder used to store downloaded files from endpoints - * with file response. The default value is null, i.e. using - * the system's default temporary folder. - * - * @see createTempFile - * @return Temporary folder path - */ - public String getTempFolderPath() { - return tempFolderPath; - } - - /** - * Set the temporary folder path (for downloading files) - * - * @param tempFolderPath Temporary folder path - * @return ApiClient - */ - public ApiClient setTempFolderPath(String tempFolderPath) { - this.tempFolderPath = tempFolderPath; - return this; - } - - /** - * Get connection timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getConnectTimeout() { - return httpClient.connectTimeoutMillis(); - } - - /** - * Sets the connect timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param connectionTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get read timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getReadTimeout() { - return httpClient.readTimeoutMillis(); - } - - /** - * Sets the read timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param readTimeout read timeout in milliseconds - * @return Api client - */ - public ApiClient setReadTimeout(int readTimeout) { - httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get write timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getWriteTimeout() { - return httpClient.writeTimeoutMillis(); - } - - /** - * Sets the write timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param writeTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setWriteTimeout(int writeTimeout) { - httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one) - * - * @return Token request builder - */ - public TokenRequestBuilder getTokenEndPoint() { - for (Authentication apiAuth : authentications.values()) { - if (apiAuth instanceof RetryingOAuth) { - RetryingOAuth retryingOAuth = (RetryingOAuth) apiAuth; - return retryingOAuth.getTokenRequestBuilder(); - } - } - return null; - } - - /** - * Format the given parameter object into string. - * - * @param param Parameter - * @return String representation of the parameter - */ - public String parameterToString(Object param) { - if (param == null) { - return ""; - } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { - //Serialize to json string and remove the " enclosing characters - String jsonStr = json.serialize(param); - return jsonStr.substring(1, jsonStr.length() - 1); - } else if (param instanceof Collection) { - StringBuilder b = new StringBuilder(); - for (Object o : (Collection) param) { - if (b.length() > 0) { - b.append(","); - } - b.append(String.valueOf(o)); - } - return b.toString(); - } else { - return String.valueOf(param); - } - } - - /** - * Formats the specified query parameter to a list containing a single {@code Pair} object. - * - * Note that {@code value} must not be a collection. - * - * @param name The name of the parameter. - * @param value The value of the parameter. - * @return A list containing a single {@code Pair} object. - */ - public List parameterToPair(String name, Object value) { - List params = new ArrayList(); - - // preconditions - if (name == null || name.isEmpty() || value == null || value instanceof Collection) { - return params; - } - - params.add(new Pair(name, parameterToString(value))); - return params; - } - - /** - * Formats the specified collection query parameters to a list of {@code Pair} objects. - * - * Note that the values of each of the returned Pair objects are percent-encoded. - * - * @param collectionFormat The collection format of the parameter. - * @param name The name of the parameter. - * @param value The value of the parameter. - * @return A list of {@code Pair} objects. - */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { - List params = new ArrayList(); - - // preconditions - if (name == null || name.isEmpty() || value == null || value.isEmpty()) { - return params; - } - - // create the params based on the collection format - if ("multi".equals(collectionFormat)) { - for (Object item : value) { - params.add(new Pair(name, escapeString(parameterToString(item)))); - } - return params; - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - // escape all delimiters except commas, which are URI reserved - // characters - if ("ssv".equals(collectionFormat)) { - delimiter = escapeString(" "); - } else if ("tsv".equals(collectionFormat)) { - delimiter = escapeString("\t"); - } else if ("pipes".equals(collectionFormat)) { - delimiter = escapeString("|"); - } - - StringBuilder sb = new StringBuilder(); - for (Object item : value) { - sb.append(delimiter); - sb.append(escapeString(parameterToString(item))); - } - - params.add(new Pair(name, sb.substring(delimiter.length()))); - - return params; - } - - /** - * Formats the specified collection path parameter to a string value. - * - * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. - * @return String representation of the parameter - */ - public String collectionPathParameterToString(String collectionFormat, Collection value) { - // create the value based on the collection format - if ("multi".equals(collectionFormat)) { - // not valid for path params - return parameterToString(value); - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - if ("ssv".equals(collectionFormat)) { - delimiter = " "; - } else if ("tsv".equals(collectionFormat)) { - delimiter = "\t"; - } else if ("pipes".equals(collectionFormat)) { - delimiter = "|"; - } - - StringBuilder sb = new StringBuilder() ; - for (Object item : value) { - sb.append(delimiter); - sb.append(parameterToString(item)); - } - - return sb.substring(delimiter.length()); - } - - /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif - * - * @param filename The filename to be sanitized - * @return The sanitized filename - */ - public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * "* / *" is also default to JSON - * @param mime MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public boolean isJsonMime(String mime) { - String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); - } - - /** - * Select the Accept header's value from the given accepts array: - * if JSON exists in the given array, use it; - * otherwise use all of them (joining into a string) - * - * @param accepts The accepts array to select from - * @return The Accept header to use. If the given array is empty, - * null will be returned (not to set the Accept header explicitly). - */ - public String selectHeaderAccept(String[] accepts) { - if (accepts.length == 0) { - return null; - } - for (String accept : accepts) { - if (isJsonMime(accept)) { - return accept; - } - } - return StringUtil.join(accepts, ","); - } - - /** - * Select the Content-Type header's value from the given array: - * if JSON exists in the given array, use it; - * otherwise use the first one of the array. - * - * @param contentTypes The Content-Type array to select from - * @return The Content-Type header to use. If the given array is empty, - * returns null. If it matches "any", JSON will be used. - */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return null; - } - - if (contentTypes[0].equals("*/*")) { - return "application/json"; - } - - for (String contentType : contentTypes) { - if (isJsonMime(contentType)) { - return contentType; - } - } - - return contentTypes[0]; - } - - /** - * Escape the given string to be used as URL query value. - * - * @param str String to be escaped - * @return Escaped string - */ - public String escapeString(String str) { - try { - return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); - } catch (UnsupportedEncodingException e) { - return str; - } - } - - /** - * Deserialize response body to Java object, according to the return type and - * the Content-Type response header. - * - * @param Type - * @param response HTTP response - * @param returnType The type of the Java object - * @return The deserialized Java object - * @throws ApiException If fail to deserialize response body, i.e. cannot read response body - * or the Content-Type of the response is not supported. - */ - @SuppressWarnings("unchecked") - public T deserialize(Response response, Type returnType) throws ApiException { - if (response == null || returnType == null) { - return null; - } - - if ("byte[]".equals(returnType.toString())) { - // Handle binary response (byte array). - try { - return (T) response.body().bytes(); - } catch (IOException e) { - throw new ApiException(e); - } - } else if (returnType.equals(File.class)) { - // Handle file downloading. - return (T) downloadFileFromResponse(response); - } - - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { - return null; - } - - String contentType = response.headers().get("Content-Type"); - if (contentType == null) { - // ensuring a default content type - contentType = "application/json"; - } - if (isJsonMime(contentType)) { - return json.deserialize(respBody, returnType); - } else if (returnType.equals(String.class)) { - // Expecting string, return the raw response body. - return (T) respBody; - } else { - throw new ApiException( - "Content type \"" + contentType + "\" is not supported for type: " + returnType, - response.code(), - response.headers().toMultimap(), - respBody); - } - } - - /** - * Serialize the given Java object into request body according to the object's - * class and the request Content-Type. - * - * @param obj The Java object - * @param contentType The request Content-Type - * @return The serialized request body - * @throws ApiException If fail to serialize the given object - */ - public RequestBody serialize(Object obj, String contentType) throws ApiException { - if (obj instanceof byte[]) { - // Binary (byte array) body parameter support. - return RequestBody.create((byte[]) obj, MediaType.parse(contentType)); - } else if (obj instanceof File) { - // File body parameter support. - return RequestBody.create((File) obj, MediaType.parse(contentType)); - } else if ("text/plain".equals(contentType) && obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else if (isJsonMime(contentType)) { - String content; - if (obj != null) { - content = json.serialize(obj); - } else { - content = null; - } - return RequestBody.create(content, MediaType.parse(contentType)); - } else { - throw new ApiException("Content type \"" + contentType + "\" is not supported"); - } - } - - /** - * Download file from the given response. - * - * @param response An instance of the Response object - * @throws ApiException If fail to read file content from response and write to disk - * @return Downloaded file - */ - public File downloadFileFromResponse(Response response) throws ApiException { - try { - File file = prepareDownloadFile(response); - BufferedSink sink = Okio.buffer(Okio.sink(file)); - sink.writeAll(response.body().source()); - sink.close(); - return file; - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * Prepare file for download - * - * @param response An instance of the Response object - * @return Prepared file for the download - * @throws java.io.IOException If fail to prepare file for download - */ - public File prepareDownloadFile(Response response) throws IOException { - String filename = null; - String contentDisposition = response.header("Content-Disposition"); - if (contentDisposition != null && !"".equals(contentDisposition)) { - // Get filename from the Content-Disposition header. - Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); - Matcher matcher = pattern.matcher(contentDisposition); - if (matcher.find()) { - filename = sanitizeFilename(matcher.group(1)); - } - } - - String prefix = null; - String suffix = null; - if (filename == null) { - prefix = "download-"; - suffix = ""; - } else { - int pos = filename.lastIndexOf("."); - if (pos == -1) { - prefix = filename + "-"; - } else { - prefix = filename.substring(0, pos) + "-"; - suffix = filename.substring(pos); - } - // Files.createTempFile requires the prefix to be at least three characters long - if (prefix.length() < 3) - prefix = "download-"; - } - - if (tempFolderPath == null) - return Files.createTempFile(prefix, suffix).toFile(); - else - return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); - } - - /** - * {@link #execute(Call, Type)} - * - * @param Type - * @param call An instance of the Call object - * @return ApiResponse<T> - * @throws ApiException If fail to execute the call - */ - public ApiResponse execute(Call call) throws ApiException { - return execute(call, null); - } - - /** - * Execute HTTP call and deserialize the HTTP response body into the given return type. - * - * @param returnType The return type used to deserialize HTTP response body - * @param The return type corresponding to (same with) returnType - * @param call Call - * @return ApiResponse object containing response status, headers and - * data, which is a Java object deserialized from response body and would be null - * when returnType is null. - * @throws ApiException If fail to execute the call - */ - public ApiResponse execute(Call call, Type returnType) throws ApiException { - try { - Response response = call.execute(); - T data = handleResponse(response, returnType); - return new ApiResponse(response.code(), response.headers().toMultimap(), data); - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * {@link #executeAsync(Call, Type, ApiCallback)} - * - * @param Type - * @param call An instance of the Call object - * @param callback ApiCallback<T> - */ - public void executeAsync(Call call, ApiCallback callback) { - executeAsync(call, null, callback); - } - - /** - * Execute HTTP call asynchronously. - * - * @param Type - * @param call The callback to be executed when the API call finishes - * @param returnType Return type - * @param callback ApiCallback - * @see #execute(Call, Type) - */ - @SuppressWarnings("unchecked") - public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { - call.enqueue(new Callback() { - @Override - public void onFailure(Call call, IOException e) { - callback.onFailure(new ApiException(e), 0, null); - } - - @Override - public void onResponse(Call call, Response response) throws IOException { - T result; - try { - result = (T) handleResponse(response, returnType); - } catch (ApiException e) { - callback.onFailure(e, response.code(), response.headers().toMultimap()); - return; - } catch (Exception e) { - callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); - return; - } - callback.onSuccess(result, response.code(), response.headers().toMultimap()); - } - }); - } - - /** - * Handle the given response, return the deserialized object when the response is successful. - * - * @param Type - * @param response Response - * @param returnType Return type - * @return Type - * @throws ApiException If the response has an unsuccessful status code or - * fail to deserialize the response body - */ - public T handleResponse(Response response, Type returnType) throws ApiException { - if (response.isSuccessful()) { - if (returnType == null || response.code() == 204) { - // returning null if the returnType is not defined, - // or the status code is 204 (No Content) - if (response.body() != null) { - try { - response.body().close(); - } catch (Exception e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - return null; - } else { - return deserialize(response, returnType); - } - } else { - String respBody = null; - if (response.body() != null) { - try { - respBody = response.body().string(); - } catch (IOException e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); - } - } - - /** - * Build HTTP call with the given options. - * - * @param baseUrl The base URL - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP call - * @throws ApiException If fail to serialize the request body object - */ - public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); - - return httpClient.newCall(request); - } - - /** - * Build an HTTP request with the given options. - * - * @param baseUrl The base URL - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP request - * @throws ApiException If fail to serialize the request body object - */ - public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); - - // prepare HTTP request body - RequestBody reqBody; - String contentType = headerParams.get("Content-Type"); - - if (!HttpMethod.permitsRequestBody(method)) { - reqBody = null; - } else if ("application/x-www-form-urlencoded".equals(contentType)) { - reqBody = buildRequestBodyFormEncoding(formParams); - } else if ("multipart/form-data".equals(contentType)) { - reqBody = buildRequestBodyMultipart(formParams); - } else if (body == null) { - if ("DELETE".equals(method)) { - // allow calling DELETE without sending a request body - reqBody = null; - } else { - // use an empty request body (for POST, PUT and PATCH) - reqBody = RequestBody.create("", contentType == null ? null : MediaType.parse(contentType)); - } - } else { - reqBody = serialize(body, contentType); - } - - // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - - final Request.Builder reqBuilder = new Request.Builder().url(url); - processHeaderParams(headerParams, reqBuilder); - processCookieParams(cookieParams, reqBuilder); - - // Associate callback with request (if not null) so interceptor can - // access it when creating ProgressResponseBody - reqBuilder.tag(callback); - - Request request = null; - - if (callback != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); - request = reqBuilder.method(method, progressRequestBody).build(); - } else { - request = reqBuilder.method(method, reqBody).build(); - } - - return request; - } - - /** - * Build full URL by concatenating base path, the given sub path and query parameters. - * - * @param baseUrl The base URL - * @param path The sub path - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @return The full URL - */ - public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { - final StringBuilder url = new StringBuilder(); - if (baseUrl != null) { - url.append(baseUrl).append(path); - } else { - url.append(basePath).append(path); - } - - if (queryParams != null && !queryParams.isEmpty()) { - // support (constant) query string in `path`, e.g. "/posts?draft=1" - String prefix = path.contains("?") ? "&" : "?"; - for (Pair param : queryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - url.append(escapeString(param.getName())).append("=").append(escapeString(value)); - } - } - } - - if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { - String prefix = url.toString().contains("?") ? "&" : "?"; - for (Pair param : collectionQueryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - // collection query parameter value already escaped as part of parameterToPairs - url.append(escapeString(param.getName())).append("=").append(value); - } - } - } - - return url.toString(); - } - - /** - * Set header parameters to the request builder, including default headers. - * - * @param headerParams Header parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { - for (Entry param : headerParams.entrySet()) { - reqBuilder.header(param.getKey(), parameterToString(param.getValue())); - } - for (Entry header : defaultHeaderMap.entrySet()) { - if (!headerParams.containsKey(header.getKey())) { - reqBuilder.header(header.getKey(), parameterToString(header.getValue())); - } - } - } - - /** - * Set cookie parameters to the request builder, including default cookies. - * - * @param cookieParams Cookie parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { - for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); - } - for (Entry param : defaultCookieMap.entrySet()) { - if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); - } - } - } - - /** - * Update query and header parameters based on authentication settings. - * - * @param authNames The authentications to apply - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws ApiException If fails to update the parameters - */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) throws ApiException { - for (String authName : authNames) { - Authentication auth = authentications.get(authName); - if (auth == null) { - throw new RuntimeException("Authentication undefined: " + authName); - } - auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); - } - } - - /** - * Build a form-encoding request body with the given form parameters. - * - * @param formParams Form parameters in the form of Map - * @return RequestBody - */ - public RequestBody buildRequestBodyFormEncoding(Map formParams) { - okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); - for (Entry param : formParams.entrySet()) { - formBuilder.add(param.getKey(), parameterToString(param.getValue())); - } - return formBuilder.build(); - } - - /** - * Build a multipart (file uploading) request body with the given form parameters, - * which could contain text fields and file fields. - * - * @param formParams Form parameters in the form of Map - * @return RequestBody - */ - public RequestBody buildRequestBodyMultipart(Map formParams) { - MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - for (Entry param : formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); - } else if (param.getValue() instanceof List) { - List list = (List) param.getValue(); - for (Object item: list) { - if (item instanceof File) { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); - } - } - } else { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); - mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null)); - } - } - return mpBuilder.build(); - } - - /** - * Guess Content-Type header from the given file (defaults to "application/octet-stream"). - * - * @param file The given file - * @return The guessed Content-Type - */ - public String guessContentTypeFromFile(File file) { - String contentType = URLConnection.guessContentTypeFromName(file.getName()); - if (contentType == null) { - return "application/octet-stream"; - } else { - return contentType; - } - } - - /** - * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param file The file to add to the Header - */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); - } - - /** - * Get network interceptor to add it to the httpClient to track download progress for - * async requests. - */ - private Interceptor getProgressInterceptor() { - return new Interceptor() { - @Override - public Response intercept(Interceptor.Chain chain) throws IOException { - final Request request = chain.request(); - final Response originalResponse = chain.proceed(request); - if (request.tag() instanceof ApiCallback) { - final ApiCallback callback = (ApiCallback) request.tag(); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)) - .build(); - } - return originalResponse; - } - }; - } - - /** - * Apply SSL related settings to httpClient according to the current values of - * verifyingSsl and sslCaCert. - */ - private void applySslSettings() { - try { - TrustManager[] trustManagers; - HostnameVerifier hostnameVerifier; - if (!verifyingSsl) { - trustManagers = new TrustManager[]{ - new X509TrustManager() { - @Override - public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public java.security.cert.X509Certificate[] getAcceptedIssuers() { - return new java.security.cert.X509Certificate[]{}; - } - } - }; - hostnameVerifier = new HostnameVerifier() { - @Override - public boolean verify(String hostname, SSLSession session) { - return true; - } - }; - } else { - TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - - if (sslCaCert == null) { - trustManagerFactory.init((KeyStore) null); - } else { - char[] password = null; // Any password will work. - CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); - Collection certificates = certificateFactory.generateCertificates(sslCaCert); - if (certificates.isEmpty()) { - throw new IllegalArgumentException("expected non-empty set of trusted certificates"); - } - KeyStore caKeyStore = newEmptyKeyStore(password); - int index = 0; - for (Certificate certificate : certificates) { - String certificateAlias = "ca" + Integer.toString(index++); - caKeyStore.setCertificateEntry(certificateAlias, certificate); - } - trustManagerFactory.init(caKeyStore); - } - trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; - } - - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier) - .build(); - } catch (GeneralSecurityException e) { - throw new RuntimeException(e); - } - } - - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { - try { - KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); - keyStore.load(null, password); - return keyStore; - } catch (IOException e) { - throw new AssertionError(e); - } - } - - /** - * Convert the HTTP request body to a string. - * - * @param request The HTTP request object - * @return The string representation of the HTTP request body - * @throws ApiException If fail to serialize the request body object into a string - */ - private String requestBodyToString(RequestBody requestBody) throws ApiException { - if (requestBody != null) { - try { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return buffer.readUtf8(); - } catch (final IOException e) { - throw new ApiException(e); - } - } - - // empty http request body - return ""; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java deleted file mode 100644 index 0e12b5b..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import java.util.Map; -import java.util.List; - -import javax.ws.rs.core.GenericType; - -/** - *

ApiException class.

- */ -@SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ApiException extends Exception { - private int code = 0; - private Map> responseHeaders = null; - private String responseBody = null; - - /** - *

Constructor for ApiException.

- */ - public ApiException() {} - - /** - *

Constructor for ApiException.

- * - * @param throwable a {@link java.lang.Throwable} object - */ - public ApiException(Throwable throwable) { - super(throwable); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - */ - public ApiException(String message) { - super(message); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { - super(message, throwable); - this.code = code; - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, int code, Map> responseHeaders, String responseBody) { - this(message, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { - this(message, throwable, code, responseHeaders, null); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, Map> responseHeaders, String responseBody) { - this((String) null, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message a {@link java.lang.String} object - */ - public ApiException(int code, String message) { - super(message); - this.code = code; - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message the error message - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, String message, Map> responseHeaders, String responseBody) { - this(code, message); - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - * Get the HTTP status code. - * - * @return HTTP status code - */ - public int getCode() { - return code; - } - - /** - * Get the HTTP response headers. - * - * @return A map of list of string - */ - public Map> getResponseHeaders() { - return responseHeaders; - } - - /** - * Get the HTTP response body. - * - * @return Response body in the form of string - */ - public String getResponseBody() { - return responseBody; - } - - /** - * Get the exception message including HTTP response data. - * - * @return The exception message - */ - public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", - super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiResponse.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ApiResponse.java deleted file mode 100644 index 4c840f4..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiResponse.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import java.util.List; -import java.util.Map; - -/** - * API response returned by API call. - */ -public class ApiResponse { - final private int statusCode; - final private Map> headers; - final private T data; - - /** - *

Constructor for ApiResponse.

- * - * @param statusCode The status code of HTTP response - * @param headers The headers of HTTP response - */ - public ApiResponse(int statusCode, Map> headers) { - this(statusCode, headers, null); - } - - /** - *

Constructor for ApiResponse.

- * - * @param statusCode The status code of HTTP response - * @param headers The headers of HTTP response - * @param data The object deserialized from response bod - */ - public ApiResponse(int statusCode, Map> headers, T data) { - this.statusCode = statusCode; - this.headers = headers; - this.data = data; - } - - /** - *

Get the status code.

- * - * @return the status code - */ - public int getStatusCode() { - return statusCode; - } - - /** - *

Get the headers.

- * - * @return a {@link java.util.Map} of headers - */ - public Map> getHeaders() { - return headers; - } - - /** - *

Get the data.

- * - * @return the data - */ - public T getData() { - return data; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/Configuration.java b/src/main/java/io/tiledb/cloud/rest_api/v2/Configuration.java deleted file mode 100644 index 94174cf..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/Configuration.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Configuration { - private static ApiClient defaultApiClient = new ApiClient(); - - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; - } - - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/GzipRequestInterceptor.java b/src/main/java/io/tiledb/cloud/rest_api/v2/GzipRequestInterceptor.java deleted file mode 100644 index 16165d1..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/GzipRequestInterceptor.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import okhttp3.*; -import okio.Buffer; -import okio.BufferedSink; -import okio.GzipSink; -import okio.Okio; - -import java.io.IOException; - -/** - * Encodes request bodies using gzip. - * - * Taken from https://github.com/square/okhttp/issues/350 - */ -class GzipRequestInterceptor implements Interceptor { - @Override - public Response intercept(Chain chain) throws IOException { - Request originalRequest = chain.request(); - if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { - return chain.proceed(originalRequest); - } - - Request compressedRequest = originalRequest.newBuilder() - .header("Content-Encoding", "gzip") - .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) - .build(); - return chain.proceed(compressedRequest); - } - - private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return new RequestBody() { - @Override - public MediaType contentType() { - return requestBody.contentType(); - } - - @Override - public long contentLength() { - return buffer.size(); - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - sink.write(buffer.snapshot()); - } - }; - } - - private RequestBody gzip(final RequestBody body) { - return new RequestBody() { - @Override - public MediaType contentType() { - return body.contentType(); - } - - @Override - public long contentLength() { - return -1; // We don't know the compressed length in advance! - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); - body.writeTo(gzipSink); - gzipSink.close(); - } - }; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/JSON.java b/src/main/java/io/tiledb/cloud/rest_api/v2/JSON.java deleted file mode 100644 index dff2d96..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/JSON.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.internal.bind.util.ISO8601Utils; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonElement; -import io.gsonfire.GsonFireBuilder; - -import io.tiledb.cloud.rest_api.v2.model.AWSCredential; -import io.tiledb.cloud.rest_api.v2.model.AWSRole; -import io.tiledb.cloud.rest_api.v2.model.AccessCredential; -import io.tiledb.cloud.rest_api.v2.model.AccessCredentialCredential; -import io.tiledb.cloud.rest_api.v2.model.AccessCredentialRole; -import io.tiledb.cloud.rest_api.v2.model.AccessCredentialToken; -import io.tiledb.cloud.rest_api.v2.model.AccessCredentialsData; -import io.tiledb.cloud.rest_api.v2.model.Array; -import io.tiledb.cloud.rest_api.v2.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.v2.model.ArrayActivityLogData; -import io.tiledb.cloud.rest_api.v2.model.ArrayDirectory; -import io.tiledb.cloud.rest_api.v2.model.ArrayFetch; -import io.tiledb.cloud.rest_api.v2.model.ArrayMetadata; -import io.tiledb.cloud.rest_api.v2.model.ArrayMetadataEntry; -import io.tiledb.cloud.rest_api.v2.model.ArraySchema; -import io.tiledb.cloud.rest_api.v2.model.ArraySchemaEntry; -import io.tiledb.cloud.rest_api.v2.model.ArraySchemaMap; -import io.tiledb.cloud.rest_api.v2.model.Attribute; -import io.tiledb.cloud.rest_api.v2.model.AttributeBufferHeader; -import io.tiledb.cloud.rest_api.v2.model.AttributeBufferSize; -import io.tiledb.cloud.rest_api.v2.model.AzureCredential; -import io.tiledb.cloud.rest_api.v2.model.AzureToken; -import io.tiledb.cloud.rest_api.v2.model.DeleteAndUpdateTileLocation; -import io.tiledb.cloud.rest_api.v2.model.Dimension; -import io.tiledb.cloud.rest_api.v2.model.DimensionTileExtent; -import io.tiledb.cloud.rest_api.v2.model.Domain; -import io.tiledb.cloud.rest_api.v2.model.DomainArray; -import io.tiledb.cloud.rest_api.v2.model.Error; -import io.tiledb.cloud.rest_api.v2.model.FileUploaded; -import io.tiledb.cloud.rest_api.v2.model.Filter; -import io.tiledb.cloud.rest_api.v2.model.FilterData; -import io.tiledb.cloud.rest_api.v2.model.FilterPipeline; -import io.tiledb.cloud.rest_api.v2.model.FloatScaleConfig; -import io.tiledb.cloud.rest_api.v2.model.FragmentMetadata; -import io.tiledb.cloud.rest_api.v2.model.GCPInteroperabilityCredential; -import io.tiledb.cloud.rest_api.v2.model.GCPServiceAccountKey; -import io.tiledb.cloud.rest_api.v2.model.GenericTileOffsets; -import io.tiledb.cloud.rest_api.v2.model.GroupContentActivity; -import io.tiledb.cloud.rest_api.v2.model.GroupContentActivityAsset; -import io.tiledb.cloud.rest_api.v2.model.GroupContentActivityResponse; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsChangesRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsChangesRequestGroupChanges; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsRetrievalRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsRetrievalResponse; -import io.tiledb.cloud.rest_api.v2.model.GroupCreationRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupCreationRequestGroupDetails; -import io.tiledb.cloud.rest_api.v2.model.GroupCreationResponse; -import io.tiledb.cloud.rest_api.v2.model.GroupMember; -import io.tiledb.cloud.rest_api.v2.model.GroupMetadataRetrievalRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupMetadataUpdateRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupRegistrationRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupRegistrationRequestGroupDetails; -import io.tiledb.cloud.rest_api.v2.model.Metadata; -import io.tiledb.cloud.rest_api.v2.model.MetadataEntry; -import io.tiledb.cloud.rest_api.v2.model.NonEmptyDomain; -import io.tiledb.cloud.rest_api.v2.model.NonEmptyDomainList; -import io.tiledb.cloud.rest_api.v2.model.NotebookUploaded; -import io.tiledb.cloud.rest_api.v2.model.PaginationMetadata; -import io.tiledb.cloud.rest_api.v2.model.Query; -import io.tiledb.cloud.rest_api.v2.model.QueryReader; -import io.tiledb.cloud.rest_api.v2.model.ReadState; -import io.tiledb.cloud.rest_api.v2.model.Subarray; -import io.tiledb.cloud.rest_api.v2.model.SubarrayPartitioner; -import io.tiledb.cloud.rest_api.v2.model.SubarrayPartitionerCurrent; -import io.tiledb.cloud.rest_api.v2.model.SubarrayPartitionerState; -import io.tiledb.cloud.rest_api.v2.model.SubarrayRanges; -import io.tiledb.cloud.rest_api.v2.model.TileDBConfig; -import io.tiledb.cloud.rest_api.v2.model.TileDBConfigEntriesInner; -import io.tiledb.cloud.rest_api.v2.model.TimestampedURI; -import io.tiledb.cloud.rest_api.v2.model.Writer; -import okio.ByteString; - -import java.io.IOException; -import java.io.StringReader; -import java.lang.reflect.Type; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.ParsePosition; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Date; -import java.util.Map; - -/* - * A JSON utility class - * - * NOTE: in the future, this class may be converted to static, which may break - * backward-compatibility - */ -public class JSON { - private static Gson gson; - private static boolean isLenientOnJson = false; - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); - private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - - @SuppressWarnings("unchecked") - public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder() - ; - GsonBuilder builder = fireBuilder.createGsonBuilder(); - return builder; - } - - private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { - JsonElement element = readElement.getAsJsonObject().get(discriminatorField); - if (null == element) { - throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); - } - return element.getAsString(); - } - - /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. - * - * @param classByDiscriminatorValue The map of discriminator values to Java classes. - * @param discriminatorValue The value of the OpenAPI discriminator in the input data. - * @return The Java class that implements the OpenAPI schema - */ - private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { - Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); - if (null == clazz) { - throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); - } - return clazz; - } - - { - GsonBuilder gsonBuilder = createGson(); - gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); - gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); - gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); - gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); - gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new AWSCredential.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AWSRole.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AccessCredential.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AccessCredentialCredential.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AccessCredentialRole.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AccessCredentialToken.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AccessCredentialsData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Array.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayActivityLog.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayActivityLogData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayDirectory.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayFetch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayMetadataEntry.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArraySchema.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArraySchemaEntry.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArraySchemaMap.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Attribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AttributeBufferHeader.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AttributeBufferSize.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AzureCredential.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AzureToken.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DeleteAndUpdateTileLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Dimension.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DimensionTileExtent.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Domain.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DomainArray.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Error.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FileUploaded.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Filter.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FilterData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FilterPipeline.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FloatScaleConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FragmentMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GCPInteroperabilityCredential.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GCPServiceAccountKey.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GenericTileOffsets.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentActivity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentActivityAsset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentActivityResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentsChangesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentsChangesRequestGroupChanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentsRetrievalRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentsRetrievalResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupCreationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupCreationRequestGroupDetails.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupCreationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupMember.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupMetadataRetrievalRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupMetadataUpdateRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupRegistrationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupRegistrationRequestGroupDetails.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Metadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new MetadataEntry.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NonEmptyDomain.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NonEmptyDomainList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NotebookUploaded.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new PaginationMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Query.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new QueryReader.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ReadState.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Subarray.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayPartitioner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayPartitionerCurrent.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayPartitionerState.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayRanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TileDBConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TileDBConfigEntriesInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TimestampedURI.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Writer.CustomTypeAdapterFactory()); - gson = gsonBuilder.create(); - } - - /** - * Get Gson. - * - * @return Gson - */ - public static Gson getGson() { - return gson; - } - - /** - * Set Gson. - * - * @param gson Gson - */ - public static void setGson(Gson gson) { - JSON.gson = gson; - } - - public static void setLenientOnJson(boolean lenientOnJson) { - isLenientOnJson = lenientOnJson; - } - - /** - * Serialize the given Java object into JSON string. - * - * @param obj Object - * @return String representation of the JSON - */ - public static String serialize(Object obj) { - return gson.toJson(obj); - } - - /** - * Deserialize the given JSON string to Java object. - * - * @param Type - * @param body The JSON string - * @param returnType The type to deserialize into - * @return The deserialized Java object - */ - @SuppressWarnings("unchecked") - public static T deserialize(String body, Type returnType) { - try { - if (isLenientOnJson) { - JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) - jsonReader.setLenient(true); - return gson.fromJson(jsonReader, returnType); - } else { - return gson.fromJson(body, returnType); - } - } catch (JsonParseException e) { - // Fallback processing when failed to parse JSON form response body: - // return the response body string directly for the String return type; - if (returnType.equals(String.class)) { - return (T) body; - } else { - throw (e); - } - } - } - - /** - * Gson TypeAdapter for Byte Array type - */ - public static class ByteArrayAdapter extends TypeAdapter { - - @Override - public void write(JsonWriter out, byte[] value) throws IOException { - if (value == null) { - out.nullValue(); - } else { - out.value(ByteString.of(value).base64()); - } - } - - @Override - public byte[] read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); - } - } - } - - /** - * Gson TypeAdapter for JSR310 OffsetDateTime type - */ - public static class OffsetDateTimeTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; - - public OffsetDateTimeTypeAdapter() { - this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } - - public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } - - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } - - @Override - public void write(JsonWriter out, OffsetDateTime date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } - - @Override - public OffsetDateTime read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - if (date.endsWith("+0000")) { - date = date.substring(0, date.length()-5) + "Z"; - } - return OffsetDateTime.parse(date, formatter); - } - } - } - - /** - * Gson TypeAdapter for JSR310 LocalDate type - */ - public static class LocalDateTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; - - public LocalDateTypeAdapter() { - this(DateTimeFormatter.ISO_LOCAL_DATE); - } - - public LocalDateTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } - - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } - - @Override - public void write(JsonWriter out, LocalDate date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } - - @Override - public LocalDate read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - return LocalDate.parse(date, formatter); - } - } - } - - public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - offsetDateTimeTypeAdapter.setFormat(dateFormat); - } - - public static void setLocalDateFormat(DateTimeFormatter dateFormat) { - localDateTypeAdapter.setFormat(dateFormat); - } - - /** - * Gson TypeAdapter for java.sql.Date type - * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used - * (more efficient than SimpleDateFormat). - */ - public static class SqlDateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public SqlDateTypeAdapter() {} - - public SqlDateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, java.sql.Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = date.toString(); - } - out.value(value); - } - } - - @Override - public java.sql.Date read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return new java.sql.Date(dateFormat.parse(date).getTime()); - } - return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } - } - - /** - * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, ISO8601Utils will be used. - */ - public static class DateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public DateTypeAdapter() {} - - public DateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = ISO8601Utils.format(date, true); - } - out.value(value); - } - } - - @Override - public Date read(JsonReader in) throws IOException { - try { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return dateFormat.parse(date); - } - return ISO8601Utils.parse(date, new ParsePosition(0)); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } catch (IllegalArgumentException e) { - throw new JsonParseException(e); - } - } - } - - public static void setDateFormat(DateFormat dateFormat) { - dateTypeAdapter.setFormat(dateFormat); - } - - public static void setSqlDateFormat(DateFormat dateFormat) { - sqlDateTypeAdapter.setFormat(dateFormat); - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/Pair.java b/src/main/java/io/tiledb/cloud/rest_api/v2/Pair.java deleted file mode 100644 index 6fdfcd9..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/Pair.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Pair { - private String name = ""; - private String value = ""; - - public Pair (String name, String value) { - setName(name); - setValue(value); - } - - private void setName(String name) { - if (!isValidString(name)) { - return; - } - - this.name = name; - } - - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - public String getValue() { - return this.value; - } - - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ProgressRequestBody.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ProgressRequestBody.java deleted file mode 100644 index b7e9eb4..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ProgressRequestBody.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import okhttp3.MediaType; -import okhttp3.RequestBody; - -import java.io.IOException; - -import okio.Buffer; -import okio.BufferedSink; -import okio.ForwardingSink; -import okio.Okio; -import okio.Sink; - -public class ProgressRequestBody extends RequestBody { - - private final RequestBody requestBody; - - private final ApiCallback callback; - - public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { - this.requestBody = requestBody; - this.callback = callback; - } - - @Override - public MediaType contentType() { - return requestBody.contentType(); - } - - @Override - public long contentLength() throws IOException { - return requestBody.contentLength(); - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink bufferedSink = Okio.buffer(sink(sink)); - requestBody.writeTo(bufferedSink); - bufferedSink.flush(); - } - - private Sink sink(Sink sink) { - return new ForwardingSink(sink) { - - long bytesWritten = 0L; - long contentLength = 0L; - - @Override - public void write(Buffer source, long byteCount) throws IOException { - super.write(source, byteCount); - if (contentLength == 0) { - contentLength = contentLength(); - } - - bytesWritten += byteCount; - callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); - } - }; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ProgressResponseBody.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ProgressResponseBody.java deleted file mode 100644 index 1520273..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ProgressResponseBody.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import okhttp3.MediaType; -import okhttp3.ResponseBody; - -import java.io.IOException; - -import okio.Buffer; -import okio.BufferedSource; -import okio.ForwardingSource; -import okio.Okio; -import okio.Source; - -public class ProgressResponseBody extends ResponseBody { - - private final ResponseBody responseBody; - private final ApiCallback callback; - private BufferedSource bufferedSource; - - public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { - this.responseBody = responseBody; - this.callback = callback; - } - - @Override - public MediaType contentType() { - return responseBody.contentType(); - } - - @Override - public long contentLength() { - return responseBody.contentLength(); - } - - @Override - public BufferedSource source() { - if (bufferedSource == null) { - bufferedSource = Okio.buffer(source(responseBody.source())); - } - return bufferedSource; - } - - private Source source(Source source) { - return new ForwardingSource(source) { - long totalBytesRead = 0L; - - @Override - public long read(Buffer sink, long byteCount) throws IOException { - long bytesRead = super.read(sink, byteCount); - // read() returns the number of bytes read, or -1 if this source is exhausted. - totalBytesRead += bytesRead != -1 ? bytesRead : 0; - callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); - return bytesRead; - } - }; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ServerConfiguration.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ServerConfiguration.java deleted file mode 100644 index b8cddf4..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ServerConfiguration.java +++ /dev/null @@ -1,58 +0,0 @@ -package io.tiledb.cloud.rest_api.v2; - -import java.util.Map; - -/** - * Representing a Server configuration. - */ -public class ServerConfiguration { - public String URL; - public String description; - public Map variables; - - /** - * @param URL A URL to the target host. - * @param description A description of the host designated by the URL. - * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. - */ - public ServerConfiguration(String URL, String description, Map variables) { - this.URL = URL; - this.description = description; - this.variables = variables; - } - - /** - * Format URL template using given variables. - * - * @param variables A map between a variable name and its value. - * @return Formatted URL. - */ - public String URL(Map variables) { - String url = this.URL; - - // go through variables and replace placeholders - for (Map.Entry variable: this.variables.entrySet()) { - String name = variable.getKey(); - ServerVariable serverVariable = variable.getValue(); - String value = serverVariable.defaultValue; - - if (variables != null && variables.containsKey(name)) { - value = variables.get(name); - if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); - } - } - url = url.replaceAll("\\{" + name + "\\}", value); - } - return url; - } - - /** - * Format URL template using default server variables. - * - * @return Formatted URL. - */ - public String URL() { - return URL(null); - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ServerVariable.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ServerVariable.java deleted file mode 100644 index 1e54533..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ServerVariable.java +++ /dev/null @@ -1,23 +0,0 @@ -package io.tiledb.cloud.rest_api.v2; - -import java.util.HashSet; - -/** - * Representing a Server Variable for server URL template substitution. - */ -public class ServerVariable { - public String description; - public String defaultValue; - public HashSet enumValues = null; - - /** - * @param description A description for the server variable. - * @param defaultValue The default value to use for substitution. - * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. - */ - public ServerVariable(String description, String defaultValue, HashSet enumValues) { - this.description = description; - this.defaultValue = defaultValue; - this.enumValues = enumValues; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/StringUtil.java b/src/main/java/io/tiledb/cloud/rest_api/v2/StringUtil.java deleted file mode 100644 index 310fcbb..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/StringUtil.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2; - -import java.util.Collection; -import java.util.Iterator; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class StringUtil { - /** - * Check if the given array contains the given value (with case-insensitive comparison). - * - * @param array The array - * @param value The value to search - * @return true if the array contains the value - */ - public static boolean containsIgnoreCase(String[] array, String value) { - for (String str : array) { - if (value == null && str == null) { - return true; - } - if (value != null && value.equalsIgnoreCase(str)) { - return true; - } - } - return false; - } - - /** - * Join an array of strings with the given separator. - *

- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *

- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) { - return ""; - } - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } - - /** - * Join a list of strings with the given separator. - * - * @param list The list of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(Collection list, String separator) { - Iterator iterator = list.iterator(); - StringBuilder out = new StringBuilder(); - if (iterator.hasNext()) { - out.append(iterator.next()); - } - while (iterator.hasNext()) { - out.append(separator).append(iterator.next()); - } - return out.toString(); - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/ArrayApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/ArrayApi.java deleted file mode 100644 index fbfb690..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/ArrayApi.java +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.model.Array; -import io.tiledb.cloud.rest_api.v2.model.ArrayActivityLogData; -import io.tiledb.cloud.rest_api.v2.model.ArrayFetch; -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class ArrayApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ArrayApi() { - this(Configuration.getDefaultApiClient()); - } - - public ArrayApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for arrayActivityLog - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) - * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Refer to ActivityEventType for possible values (optional) - * @param taskId Array task id To filter activity to (optional) - * @param hasTaskId Excludes activity log results that does not contain an array task uuid (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer start, Integer end, List eventTypes, String taskId, Boolean hasTaskId, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/activity" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (start != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); - } - - if (end != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); - } - - if (eventTypes != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "event_types", eventTypes)); - } - - if (taskId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("task_id", taskId)); - } - - if (hasTaskId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("has_task_id", hasTaskId)); - } - - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); - } - - if (perPage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String array, Integer start, Integer end, List eventTypes, String taskId, Boolean hasTaskId, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling arrayActivityLog(Async)"); - } - - // verify the required parameter 'array' is set - if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling arrayActivityLog(Async)"); - } - - - okhttp3.Call localVarCall = arrayActivityLogCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, page, perPage, _callback); - return localVarCall; - - } - - /** - * - * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) - * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Refer to ActivityEventType for possible values (optional) - * @param taskId Array task id To filter activity to (optional) - * @param hasTaskId Excludes activity log results that does not contain an array task uuid (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ArrayActivityLogData - * @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 log of array activity -
502 Bad Gateway -
0 error response -
- */ - public ArrayActivityLogData arrayActivityLog(String namespace, String array, Integer start, Integer end, List eventTypes, String taskId, Boolean hasTaskId, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = arrayActivityLogWithHttpInfo(namespace, array, start, end, eventTypes, taskId, hasTaskId, page, perPage); - return localVarResp.getData(); - } - - /** - * - * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) - * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Refer to ActivityEventType for possible values (optional) - * @param taskId Array task id To filter activity to (optional) - * @param hasTaskId Excludes activity log results that does not contain an array task uuid (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ApiResponse<ArrayActivityLogData> - * @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 log of array activity -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse arrayActivityLogWithHttpInfo(String namespace, String array, Integer start, Integer end, List eventTypes, String taskId, Boolean hasTaskId, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, page, perPage, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) - * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Refer to ActivityEventType for possible values (optional) - * @param taskId Array task id To filter activity to (optional) - * @param hasTaskId Excludes activity log results that does not contain an array task uuid (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Integer start, Integer end, List eventTypes, String taskId, Boolean hasTaskId, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, page, perPage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getArray - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input and return mime (required) - * @param arrayFetch Details for array being fetched (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Array opened successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getArrayCall(String namespace, String array, String contentType, ArrayFetch arrayFetch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = arrayFetch; - - // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (contentType != null) { - localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, String contentType, ArrayFetch arrayFetch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArray(Async)"); - } - - // verify the required parameter 'array' is set - if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling getArray(Async)"); - } - - // verify the required parameter 'contentType' is set - if (contentType == null) { - throw new ApiException("Missing the required parameter 'contentType' when calling getArray(Async)"); - } - - // verify the required parameter 'arrayFetch' is set - if (arrayFetch == null) { - throw new ApiException("Missing the required parameter 'arrayFetch' when calling getArray(Async)"); - } - - - okhttp3.Call localVarCall = getArrayCall(namespace, array, contentType, arrayFetch, _callback); - return localVarCall; - - } - - /** - * - * Get a array at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input and return mime (required) - * @param arrayFetch Details for array being fetched (required) - * @return Array - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Array opened successfully -
502 Bad Gateway -
0 error response -
- */ - public Array getArray(String namespace, String array, String contentType, ArrayFetch arrayFetch) throws ApiException { - ApiResponse localVarResp = getArrayWithHttpInfo(namespace, array, contentType, arrayFetch); - return localVarResp.getData(); - } - - /** - * - * Get a array at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input and return mime (required) - * @param arrayFetch Details for array being fetched (required) - * @return ApiResponse<Array> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Array opened successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse getArrayWithHttpInfo(String namespace, String array, String contentType, ArrayFetch arrayFetch) throws ApiException { - okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, arrayFetch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get a array at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input and return mime (required) - * @param arrayFetch Details for array being fetched (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Array opened successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getArrayAsync(String namespace, String array, String contentType, ArrayFetch arrayFetch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, arrayFetch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/FilesApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/FilesApi.java deleted file mode 100644 index 56cf90e..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/FilesApi.java +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.model.FileUploaded; -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import java.io.File; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class FilesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public FilesApi() { - this(Configuration.getDefaultApiClient()); - } - - public FilesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for handleUploadFile - * @param namespace The namespace of the file (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input (required) - * @param filesize size of the file to upload in bytes (required) - * @param _file file to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @param filename original file name (optional) - * @param mimetype Mime type of the uploaded file. Autogenerated clients do not always support changing the content type param. Server will always use mimetype query param to set mimetype for file, if it is not set Content-Type will be used (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call handleUploadFileCall(String namespace, String array, String contentType, Integer filesize, File _file, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, String filename, String mimetype, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = _file; - - // create path and map variables - String localVarPath = "/files/{namespace}/{array}/upload" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (name != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); - } - - if (filename != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("filename", filename)); - } - - if (filesize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("filesize", filesize)); - } - - if (mimetype != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("mimetype", mimetype)); - } - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - if (contentType != null) { - localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/octet-stream" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, String array, String contentType, Integer filesize, File _file, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, String filename, String mimetype, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadFile(Async)"); - } - - // verify the required parameter 'array' is set - if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling handleUploadFile(Async)"); - } - - // verify the required parameter 'contentType' is set - if (contentType == null) { - throw new ApiException("Missing the required parameter 'contentType' when calling handleUploadFile(Async)"); - } - - // verify the required parameter 'filesize' is set - if (filesize == null) { - throw new ApiException("Missing the required parameter 'filesize' when calling handleUploadFile(Async)"); - } - - // verify the required parameter '_file' is set - if (_file == null) { - throw new ApiException("Missing the required parameter '_file' when calling handleUploadFile(Async)"); - } - - - okhttp3.Call localVarCall = handleUploadFileCall(namespace, array, contentType, filesize, _file, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, filename, mimetype, _callback); - return localVarCall; - - } - - /** - * - * Upload a file at the specified location and wrap it in TileDB Array - * @param namespace The namespace of the file (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input (required) - * @param filesize size of the file to upload in bytes (required) - * @param _file file to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @param filename original file name (optional) - * @param mimetype Mime type of the uploaded file. Autogenerated clients do not always support changing the content type param. Server will always use mimetype query param to set mimetype for file, if it is not set Content-Type will be used (optional) - * @return FileUploaded - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
- */ - public FileUploaded handleUploadFile(String namespace, String array, String contentType, Integer filesize, File _file, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, String filename, String mimetype) throws ApiException { - ApiResponse localVarResp = handleUploadFileWithHttpInfo(namespace, array, contentType, filesize, _file, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, filename, mimetype); - return localVarResp.getData(); - } - - /** - * - * Upload a file at the specified location and wrap it in TileDB Array - * @param namespace The namespace of the file (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input (required) - * @param filesize size of the file to upload in bytes (required) - * @param _file file to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @param filename original file name (optional) - * @param mimetype Mime type of the uploaded file. Autogenerated clients do not always support changing the content type param. Server will always use mimetype query param to set mimetype for file, if it is not set Content-Type will be used (optional) - * @return ApiResponse<FileUploaded> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse handleUploadFileWithHttpInfo(String namespace, String array, String contentType, Integer filesize, File _file, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, String filename, String mimetype) throws ApiException { - okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, array, contentType, filesize, _file, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, filename, mimetype, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Upload a file at the specified location and wrap it in TileDB Array - * @param namespace The namespace of the file (required) - * @param array name/uri of array that is url-encoded (required) - * @param contentType Content Type of input (required) - * @param filesize size of the file to upload in bytes (required) - * @param _file file to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @param filename original file name (optional) - * @param mimetype Mime type of the uploaded file. Autogenerated clients do not always support changing the content type param. Server will always use mimetype query param to set mimetype for file, if it is not set Content-Type will be used (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call handleUploadFileAsync(String namespace, String array, String contentType, Integer filesize, File _file, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, String filename, String mimetype, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, array, contentType, filesize, _file, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, filename, mimetype, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/GroupsApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/GroupsApi.java deleted file mode 100644 index 3279add..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/GroupsApi.java +++ /dev/null @@ -1,1593 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.model.GroupContentActivityResponse; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsChangesRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsRetrievalRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupContentsRetrievalResponse; -import io.tiledb.cloud.rest_api.v2.model.GroupCreationRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupCreationResponse; -import io.tiledb.cloud.rest_api.v2.model.GroupMetadataRetrievalRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupMetadataUpdateRequest; -import io.tiledb.cloud.rest_api.v2.model.GroupRegistrationRequest; -import io.tiledb.cloud.rest_api.v2.model.Metadata; -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class GroupsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public GroupsApi() { - this(Configuration.getDefaultApiClient()); - } - - public GroupsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for createGroup - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupCreation (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call createGroupCall(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupCreationRequest groupCreation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = groupCreation; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createGroupValidateBeforeCall(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupCreationRequest groupCreation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling createGroup(Async)"); - } - - - okhttp3.Call localVarCall = createGroupCall(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupCreation, _callback); - return localVarCall; - - } - - /** - * - * Creates an empty group - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupCreation (optional) - * @return GroupCreationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public GroupCreationResponse createGroup(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupCreationRequest groupCreation) throws ApiException { - ApiResponse localVarResp = createGroupWithHttpInfo(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupCreation); - return localVarResp.getData(); - } - - /** - * - * Creates an empty group - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupCreation (optional) - * @return ApiResponse<GroupCreationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse createGroupWithHttpInfo(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupCreationRequest groupCreation) throws ApiException { - okhttp3.Call localVarCall = createGroupValidateBeforeCall(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupCreation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Creates an empty group - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupCreation (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call createGroupAsync(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupCreationRequest groupCreation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createGroupValidateBeforeCall(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupCreation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteGroup - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param recursive If true, it descends in the group and deletes every subgroup and subarray (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, String recursive, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/delete" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (recursive != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recursive", recursive)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String groupName, String recursive, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling deleteGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling deleteGroup(Async)"); - } - - - okhttp3.Call localVarCall = deleteGroupCall(groupNamespace, groupName, recursive, _callback); - return localVarCall; - - } - - /** - * - * Deregisters and physically deletes a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param recursive If true, it descends in the group and deletes every subgroup and subarray (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
- */ - public void deleteGroup(String groupNamespace, String groupName, String recursive) throws ApiException { - deleteGroupWithHttpInfo(groupNamespace, groupName, recursive); - } - - /** - * - * Deregisters and physically deletes a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param recursive If true, it descends in the group and deletes every subgroup and subarray (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String groupName, String recursive) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, recursive, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Deregisters and physically deletes a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param recursive If true, it descends in the group and deletes every subgroup and subarray (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call deleteGroupAsync(String groupNamespace, String groupName, String recursive, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, recursive, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deregisterGroup - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param recursive If true, it descends in the group and deregisters every subgroup and subarray (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group deregistered successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call deregisterGroupCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String recursive, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (recursive != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recursive", recursive)); - } - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deregisterGroupValidateBeforeCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String recursive, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling deregisterGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling deregisterGroup(Async)"); - } - - - okhttp3.Call localVarCall = deregisterGroupCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, recursive, _callback); - return localVarCall; - - } - - /** - * - * Deregisters a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param recursive If true, it descends in the group and deregisters every subgroup and subarray (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group deregistered successfully -
502 Bad Gateway -
0 error response -
- */ - public void deregisterGroup(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String recursive) throws ApiException { - deregisterGroupWithHttpInfo(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, recursive); - } - - /** - * - * Deregisters a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param recursive If true, it descends in the group and deregisters every subgroup and subarray (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group deregistered successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse deregisterGroupWithHttpInfo(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String recursive) throws ApiException { - okhttp3.Call localVarCall = deregisterGroupValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, recursive, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Deregisters a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param recursive If true, it descends in the group and deregisters every subgroup and subarray (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group deregistered successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call deregisterGroupAsync(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String recursive, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deregisterGroupValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, recursive, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getGroupContentActivity - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getGroupContentActivityCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/content_activity" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); - } - - if (perPage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupContentActivityValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupContentActivity(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling getGroupContentActivity(Async)"); - } - - - okhttp3.Call localVarCall = getGroupContentActivityCall(groupNamespace, groupName, page, perPage, _callback); - return localVarCall; - - } - - /** - * - * Retrieves combined activity logs for all assets contained in a group. - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return GroupContentActivityResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
- */ - public GroupContentActivityResponse getGroupContentActivity(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = getGroupContentActivityWithHttpInfo(groupNamespace, groupName, page, perPage); - return localVarResp.getData(); - } - - /** - * - * Retrieves combined activity logs for all assets contained in a group. - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ApiResponse<GroupContentActivityResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse getGroupContentActivityWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = getGroupContentActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Retrieves combined activity logs for all assets contained in a group. - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getGroupContentActivityAsync(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getGroupContentActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getGroupMetadata - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataRetrieval (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 retrieve metadata for a group -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getGroupMetadataCall(String groupNamespace, String groupName, GroupMetadataRetrievalRequest metadataRetrieval, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = metadataRetrieval; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/metadata" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupMetadataValidateBeforeCall(String groupNamespace, String groupName, GroupMetadataRetrievalRequest metadataRetrieval, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupMetadata(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling getGroupMetadata(Async)"); - } - - - okhttp3.Call localVarCall = getGroupMetadataCall(groupNamespace, groupName, metadataRetrieval, _callback); - return localVarCall; - - } - - /** - * - * get metadata on a group using the requested config - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataRetrieval (optional) - * @return Metadata - * @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 retrieve metadata for a group -
502 Bad Gateway -
0 error response -
- */ - public Metadata getGroupMetadata(String groupNamespace, String groupName, GroupMetadataRetrievalRequest metadataRetrieval) throws ApiException { - ApiResponse localVarResp = getGroupMetadataWithHttpInfo(groupNamespace, groupName, metadataRetrieval); - return localVarResp.getData(); - } - - /** - * - * get metadata on a group using the requested config - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataRetrieval (optional) - * @return ApiResponse<Metadata> - * @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 retrieve metadata for a group -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse getGroupMetadataWithHttpInfo(String groupNamespace, String groupName, GroupMetadataRetrievalRequest metadataRetrieval) throws ApiException { - okhttp3.Call localVarCall = getGroupMetadataValidateBeforeCall(groupNamespace, groupName, metadataRetrieval, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get metadata on a group using the requested config - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataRetrieval (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 retrieve metadata for a group -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getGroupMetadataAsync(String groupNamespace, String groupName, GroupMetadataRetrievalRequest metadataRetrieval, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getGroupMetadataValidateBeforeCall(groupNamespace, groupName, metadataRetrieval, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for groupsGroupNamespaceGroupNameOptions - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
404 the resource does not exist -
204 the resource exists -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call groupsGroupNamespaceGroupNameOptionsCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call groupsGroupNamespaceGroupNameOptionsValidateBeforeCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling groupsGroupNamespaceGroupNameOptions(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling groupsGroupNamespaceGroupNameOptions(Async)"); - } - - - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameOptionsCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); - return localVarCall; - - } - - /** - * - * can be used to check if the resource exists - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
404 the resource does not exist -
204 the resource exists -
502 Bad Gateway -
0 error response -
- */ - public void groupsGroupNamespaceGroupNameOptions(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - groupsGroupNamespaceGroupNameOptionsWithHttpInfo(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - } - - /** - * - * can be used to check if the resource exists - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
404 the resource does not exist -
204 the resource exists -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse groupsGroupNamespaceGroupNameOptionsWithHttpInfo(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameOptionsValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * can be used to check if the resource exists - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
404 the resource does not exist -
204 the resource exists -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call groupsGroupNamespaceGroupNameOptionsAsync(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameOptionsValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for registerGroup - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRegistration (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call registerGroupCall(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupRegistrationRequest groupRegistration, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = groupRegistration; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call registerGroupValidateBeforeCall(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupRegistrationRequest groupRegistration, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling registerGroup(Async)"); - } - - - okhttp3.Call localVarCall = registerGroupCall(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRegistration, _callback); - return localVarCall; - - } - - /** - * - * Registers an already existing group - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRegistration (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public void registerGroup(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupRegistrationRequest groupRegistration) throws ApiException { - registerGroupWithHttpInfo(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRegistration); - } - - /** - * - * Registers an already existing group - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRegistration (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse registerGroupWithHttpInfo(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupRegistrationRequest groupRegistration) throws ApiException { - okhttp3.Call localVarCall = registerGroupValidateBeforeCall(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRegistration, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Registers an already existing group - * @param groupNamespace The namespace of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRegistration (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call registerGroupAsync(String groupNamespace, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupRegistrationRequest groupRegistration, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = registerGroupValidateBeforeCall(groupNamespace, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRegistration, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for retrieveGroup - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRetrieval (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call retrieveGroupCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsRetrievalRequest groupRetrieval, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = groupRetrieval; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call retrieveGroupValidateBeforeCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsRetrievalRequest groupRetrieval, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling retrieveGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling retrieveGroup(Async)"); - } - - - okhttp3.Call localVarCall = retrieveGroupCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRetrieval, _callback); - return localVarCall; - - } - - /** - * - * Retrieves the contents of a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRetrieval (optional) - * @return GroupContentsRetrievalResponse - * @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 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public GroupContentsRetrievalResponse retrieveGroup(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsRetrievalRequest groupRetrieval) throws ApiException { - ApiResponse localVarResp = retrieveGroupWithHttpInfo(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRetrieval); - return localVarResp.getData(); - } - - /** - * - * Retrieves the contents of a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRetrieval (optional) - * @return ApiResponse<GroupContentsRetrievalResponse> - * @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 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse retrieveGroupWithHttpInfo(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsRetrievalRequest groupRetrieval) throws ApiException { - okhttp3.Call localVarCall = retrieveGroupValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRetrieval, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Retrieves the contents of a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupRetrieval (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group created successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call retrieveGroupAsync(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsRetrievalRequest groupRetrieval, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = retrieveGroupValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupRetrieval, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateGroupContents - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupUpdateContents (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call updateGroupContentsCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsChangesRequest groupUpdateContents, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = groupUpdateContents; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateGroupContentsValidateBeforeCall(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsChangesRequest groupUpdateContents, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling updateGroupContents(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling updateGroupContents(Async)"); - } - - - okhttp3.Call localVarCall = updateGroupContentsCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupUpdateContents, _callback); - return localVarCall; - - } - - /** - * - * Change the contents of the group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupUpdateContents (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
- */ - public void updateGroupContents(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsChangesRequest groupUpdateContents) throws ApiException { - updateGroupContentsWithHttpInfo(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupUpdateContents); - } - - /** - * - * Change the contents of the group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupUpdateContents (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse updateGroupContentsWithHttpInfo(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsChangesRequest groupUpdateContents) throws ApiException { - okhttp3.Call localVarCall = updateGroupContentsValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupUpdateContents, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Change the contents of the group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param groupUpdateContents (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call updateGroupContentsAsync(String groupNamespace, String groupName, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, GroupContentsChangesRequest groupUpdateContents, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateGroupContentsValidateBeforeCall(groupNamespace, groupName, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, groupUpdateContents, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateGroupMetadata - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataUpdating (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group metadata updated successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call updateGroupMetadataCall(String groupNamespace, String groupName, GroupMetadataUpdateRequest metadataUpdating, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = metadataUpdating; - - // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/metadata" - .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) - .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateGroupMetadataValidateBeforeCall(String groupNamespace, String groupName, GroupMetadataUpdateRequest metadataUpdating, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling updateGroupMetadata(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling updateGroupMetadata(Async)"); - } - - - okhttp3.Call localVarCall = updateGroupMetadataCall(groupNamespace, groupName, metadataUpdating, _callback); - return localVarCall; - - } - - /** - * - * update metadata on a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataUpdating (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group metadata updated successfully -
502 Bad Gateway -
0 error response -
- */ - public void updateGroupMetadata(String groupNamespace, String groupName, GroupMetadataUpdateRequest metadataUpdating) throws ApiException { - updateGroupMetadataWithHttpInfo(groupNamespace, groupName, metadataUpdating); - } - - /** - * - * update metadata on a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataUpdating (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group metadata updated successfully -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse updateGroupMetadataWithHttpInfo(String groupNamespace, String groupName, GroupMetadataUpdateRequest metadataUpdating) throws ApiException { - okhttp3.Call localVarCall = updateGroupMetadataValidateBeforeCall(groupNamespace, groupName, metadataUpdating, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * update metadata on a group - * @param groupNamespace The namespace of the group (required) - * @param groupName The unique name or id of the group (required) - * @param metadataUpdating (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 group metadata updated successfully -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call updateGroupMetadataAsync(String groupNamespace, String groupName, GroupMetadataUpdateRequest metadataUpdating, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateGroupMetadataValidateBeforeCall(groupNamespace, groupName, metadataUpdating, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/NotebooksApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/NotebooksApi.java deleted file mode 100644 index 597b6ab..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/NotebooksApi.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.model.NotebookUploaded; -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import java.io.File; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class NotebooksApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public NotebooksApi() { - this(Configuration.getDefaultApiClient()); - } - - public NotebooksApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for handleUploadNotebook - * @param namespace The namespace of the notebook (required) - * @param array name/uri of array that is url-encoded (required) - * @param filesize size of the notebook to upload in bytes (required) - * @param notebook notebook to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Notebook uploaded -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call handleUploadNotebookCall(String namespace, String array, Integer filesize, File notebook, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = notebook; - - // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/upload" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (name != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); - } - - if (filesize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("filesize", filesize)); - } - - if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { - localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/octet-stream" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, String array, Integer filesize, File notebook, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadNotebook(Async)"); - } - - // verify the required parameter 'array' is set - if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling handleUploadNotebook(Async)"); - } - - // verify the required parameter 'filesize' is set - if (filesize == null) { - throw new ApiException("Missing the required parameter 'filesize' when calling handleUploadNotebook(Async)"); - } - - // verify the required parameter 'notebook' is set - if (notebook == null) { - throw new ApiException("Missing the required parameter 'notebook' when calling handleUploadNotebook(Async)"); - } - - - okhttp3.Call localVarCall = handleUploadNotebookCall(namespace, array, filesize, notebook, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, _callback); - return localVarCall; - - } - - /** - * - * Upload a notebook at the specified location and wrap it in TileDB Array - * @param namespace The namespace of the notebook (required) - * @param array name/uri of array that is url-encoded (required) - * @param filesize size of the notebook to upload in bytes (required) - * @param notebook notebook to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @return NotebookUploaded - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Notebook uploaded -
502 Bad Gateway -
0 error response -
- */ - public NotebookUploaded handleUploadNotebook(String namespace, String array, Integer filesize, File notebook, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name) throws ApiException { - ApiResponse localVarResp = handleUploadNotebookWithHttpInfo(namespace, array, filesize, notebook, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name); - return localVarResp.getData(); - } - - /** - * - * Upload a notebook at the specified location and wrap it in TileDB Array - * @param namespace The namespace of the notebook (required) - * @param array name/uri of array that is url-encoded (required) - * @param filesize size of the notebook to upload in bytes (required) - * @param notebook notebook to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @return ApiResponse<NotebookUploaded> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Notebook uploaded -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse handleUploadNotebookWithHttpInfo(String namespace, String array, Integer filesize, File notebook, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name) throws ApiException { - okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, array, filesize, notebook, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Upload a notebook at the specified location and wrap it in TileDB Array - * @param namespace The namespace of the notebook (required) - * @param array name/uri of array that is url-encoded (required) - * @param filesize size of the notebook to upload in bytes (required) - * @param notebook notebook to upload (required) - * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) - * @param name name of the TileDB array to create, if missing {array} is used (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Notebook uploaded -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call handleUploadNotebookAsync(String namespace, String array, Integer filesize, File notebook, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, array, filesize, notebook, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/OrganizationApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/OrganizationApi.java deleted file mode 100644 index e47bc2e..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/OrganizationApi.java +++ /dev/null @@ -1,847 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.model.AccessCredentialsData; -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import io.tiledb.cloud.rest_api.v2.model.AccessCredential; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class OrganizationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public OrganizationApi() { - this(Configuration.getDefaultApiClient()); - } - - public OrganizationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addCredential - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call addCredentialCall(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = accessCredential; - - // create path and map variables - String localVarPath = "/credentials/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (provider != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("provider", provider)); - } - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); - } - - if (perPage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addCredentialValidateBeforeCall(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addCredential(Async)"); - } - - // verify the required parameter 'accessCredential' is set - if (accessCredential == null) { - throw new ApiException("Missing the required parameter 'accessCredential' when calling addCredential(Async)"); - } - - - okhttp3.Call localVarCall = addCredentialCall(namespace, accessCredential, provider, type, page, perPage, _callback); - return localVarCall; - - } - - /** - * - * Create a new credential for the namespace - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public void addCredential(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage) throws ApiException { - addCredentialWithHttpInfo(namespace, accessCredential, provider, type, page, perPage); - } - - /** - * - * Create a new credential for the namespace - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse addCredentialWithHttpInfo(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = addCredentialValidateBeforeCall(namespace, accessCredential, provider, type, page, perPage, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Create a new credential for the namespace - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call addCredentialAsync(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addCredentialValidateBeforeCall(namespace, accessCredential, provider, type, page, perPage, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteCredential - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call deleteCredentialCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/credentials/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCredentialValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCredential(Async)"); - } - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteCredential(Async)"); - } - - - okhttp3.Call localVarCall = deleteCredentialCall(namespace, name, _callback); - return localVarCall; - - } - - /** - * - * Delete the named access credential. Any arrays still set to use this credential will use the namespace's default and may become unreachable. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public void deleteCredential(String namespace, String name) throws ApiException { - deleteCredentialWithHttpInfo(namespace, name); - } - - /** - * - * Delete the named access credential. Any arrays still set to use this credential will use the namespace's default and may become unreachable. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public ApiResponse deleteCredentialWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteCredentialValidateBeforeCall(namespace, name, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Delete the named access credential. Any arrays still set to use this credential will use the namespace's default and may become unreachable. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call deleteCredentialAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCredentialValidateBeforeCall(namespace, name, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getCredential - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getCredentialCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/credentials/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCredentialValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getCredential(Async)"); - } - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getCredential(Async)"); - } - - - okhttp3.Call localVarCall = getCredentialCall(namespace, name, _callback); - return localVarCall; - - } - - /** - * - * Retrieve an access credential by name - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @return AccessCredential - * @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 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public AccessCredential getCredential(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getCredentialWithHttpInfo(namespace, name); - return localVarResp.getData(); - } - - /** - * - * Retrieve an access credential by name - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @return ApiResponse<AccessCredential> - * @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 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse getCredentialWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getCredentialValidateBeforeCall(namespace, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Retrieve an access credential by name - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getCredentialAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCredentialValidateBeforeCall(namespace, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listCredentials - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call listCredentialsCall(String namespace, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/credentials/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (provider != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("provider", provider)); - } - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); - } - - if (perPage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listCredentialsValidateBeforeCall(String namespace, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listCredentials(Async)"); - } - - - okhttp3.Call localVarCall = listCredentialsCall(namespace, provider, type, page, perPage, _callback); - return localVarCall; - - } - - /** - * - * List the credentials available in the namespace - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return AccessCredentialsData - * @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 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public AccessCredentialsData listCredentials(String namespace, String provider, String type, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = listCredentialsWithHttpInfo(namespace, provider, type, page, perPage); - return localVarResp.getData(); - } - - /** - * - * List the credentials available in the namespace - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ApiResponse<AccessCredentialsData> - * @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 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse listCredentialsWithHttpInfo(String namespace, String provider, String type, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = listCredentialsValidateBeforeCall(namespace, provider, type, page, perPage, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * List the credentials available in the namespace - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call listCredentialsAsync(String namespace, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listCredentialsValidateBeforeCall(namespace, provider, type, page, perPage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateCredential - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call updateCredentialCall(String namespace, String name, AccessCredential accessCredential, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = accessCredential; - - // create path and map variables - String localVarPath = "/credentials/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCredentialValidateBeforeCall(String namespace, String name, AccessCredential accessCredential, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateCredential(Async)"); - } - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling updateCredential(Async)"); - } - - // verify the required parameter 'accessCredential' is set - if (accessCredential == null) { - throw new ApiException("Missing the required parameter 'accessCredential' when calling updateCredential(Async)"); - } - - - okhttp3.Call localVarCall = updateCredentialCall(namespace, name, accessCredential, _callback); - return localVarCall; - - } - - /** - * - * Update the named access credential. This will also update the information used to access arrays set to use this credential. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public void updateCredential(String namespace, String name, AccessCredential accessCredential) throws ApiException { - updateCredentialWithHttpInfo(namespace, name, accessCredential); - } - - /** - * - * Update the named access credential. This will also update the information used to access arrays set to use this credential. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public ApiResponse updateCredentialWithHttpInfo(String namespace, String name, AccessCredential accessCredential) throws ApiException { - okhttp3.Call localVarCall = updateCredentialValidateBeforeCall(namespace, name, accessCredential, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Update the named access credential. This will also update the information used to access arrays set to use this credential. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call updateCredentialAsync(String namespace, String name, AccessCredential accessCredential, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCredentialValidateBeforeCall(namespace, name, accessCredential, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/QueryApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/QueryApi.java deleted file mode 100644 index ebfb358..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/QueryApi.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import java.io.File; -import io.tiledb.cloud.rest_api.v2.model.Query; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class QueryApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public QueryApi() { - this(Configuration.getDefaultApiClient()); - } - - public QueryApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for submitQuery - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param type type of query (required) - * @param contentType Content Type of input and return mime (required) - * @param query query to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param openAt open_at for array in unix epoch (optional) - * @param readAll If \"true\", resubmits incomplete queries until the query has completed. Defaults to \"false\". (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed query
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call submitQueryCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, String readAll, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = query; - - // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/submit" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (openAt != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("open_at", openAt)); - } - - if (readAll != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("read_all", readAll)); - } - - if (contentType != null) { - localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); - } - - if (xPayer != null) { - localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); - } - - final String[] localVarAccepts = { - "application/json", "application/capnp" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json", "application/capnp" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, String readAll, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitQuery(Async)"); - } - - // verify the required parameter 'array' is set - if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling submitQuery(Async)"); - } - - // verify the required parameter 'type' is set - if (type == null) { - throw new ApiException("Missing the required parameter 'type' when calling submitQuery(Async)"); - } - - // verify the required parameter 'contentType' is set - if (contentType == null) { - throw new ApiException("Missing the required parameter 'contentType' when calling submitQuery(Async)"); - } - - // verify the required parameter 'query' is set - if (query == null) { - throw new ApiException("Missing the required parameter 'query' when calling submitQuery(Async)"); - } - - - okhttp3.Call localVarCall = submitQueryCall(namespace, array, type, contentType, query, xPayer, openAt, readAll, _callback); - return localVarCall; - - } - - /** - * - * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param type type of query (required) - * @param contentType Content Type of input and return mime (required) - * @param query query to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param openAt open_at for array in unix epoch (optional) - * @param readAll If \"true\", resubmits incomplete queries until the query has completed. Defaults to \"false\". (optional) - * @return File - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed query
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
- */ - public File submitQuery(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, String readAll) throws ApiException { - ApiResponse localVarResp = submitQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt, readAll); - return localVarResp.getData(); - } - - /** - * - * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param type type of query (required) - * @param contentType Content Type of input and return mime (required) - * @param query query to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param openAt open_at for array in unix epoch (optional) - * @param readAll If \"true\", resubmits incomplete queries until the query has completed. Defaults to \"false\". (optional) - * @return ApiResponse<File> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed query
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse submitQueryWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, String readAll) throws ApiException { - okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, readAll, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param type type of query (required) - * @param contentType Content Type of input and return mime (required) - * @param query query to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param openAt open_at for array in unix epoch (optional) - * @param readAll If \"true\", resubmits incomplete queries until the query has completed. Defaults to \"false\". (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed query
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call submitQueryAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, String readAll, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, readAll, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/api/UserApi.java b/src/main/java/io/tiledb/cloud/rest_api/v2/api/UserApi.java deleted file mode 100644 index 7a17f23..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/api/UserApi.java +++ /dev/null @@ -1,847 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.api; - -import io.tiledb.cloud.rest_api.v2.model.AccessCredentialsData; -import io.tiledb.cloud.rest_api.v2.ApiCallback; -import io.tiledb.cloud.rest_api.v2.ApiClient; -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.ApiResponse; -import io.tiledb.cloud.rest_api.v2.Configuration; -import io.tiledb.cloud.rest_api.v2.Pair; - -import com.google.gson.reflect.TypeToken; - - -import io.tiledb.cloud.rest_api.v2.model.AccessCredential; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class UserApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public UserApi() { - this(Configuration.getDefaultApiClient()); - } - - public UserApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addCredential - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call addCredentialCall(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = accessCredential; - - // create path and map variables - String localVarPath = "/credentials/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (provider != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("provider", provider)); - } - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); - } - - if (perPage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addCredentialValidateBeforeCall(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addCredential(Async)"); - } - - // verify the required parameter 'accessCredential' is set - if (accessCredential == null) { - throw new ApiException("Missing the required parameter 'accessCredential' when calling addCredential(Async)"); - } - - - okhttp3.Call localVarCall = addCredentialCall(namespace, accessCredential, provider, type, page, perPage, _callback); - return localVarCall; - - } - - /** - * - * Create a new credential for the namespace - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public void addCredential(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage) throws ApiException { - addCredentialWithHttpInfo(namespace, accessCredential, provider, type, page, perPage); - } - - /** - * - * Create a new credential for the namespace - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse addCredentialWithHttpInfo(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = addCredentialValidateBeforeCall(namespace, accessCredential, provider, type, page, perPage, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Create a new credential for the namespace - * @param namespace namespace (required) - * @param accessCredential The new credentials to be created. (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The new credential was successfully added. -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call addCredentialAsync(String namespace, AccessCredential accessCredential, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addCredentialValidateBeforeCall(namespace, accessCredential, provider, type, page, perPage, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteCredential - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call deleteCredentialCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/credentials/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCredentialValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCredential(Async)"); - } - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteCredential(Async)"); - } - - - okhttp3.Call localVarCall = deleteCredentialCall(namespace, name, _callback); - return localVarCall; - - } - - /** - * - * Delete the named access credential. Any arrays still set to use this credential will use the namespace's default and may become unreachable. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public void deleteCredential(String namespace, String name) throws ApiException { - deleteCredentialWithHttpInfo(namespace, name); - } - - /** - * - * Delete the named access credential. Any arrays still set to use this credential will use the namespace's default and may become unreachable. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public ApiResponse deleteCredentialWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteCredentialValidateBeforeCall(namespace, name, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Delete the named access credential. Any arrays still set to use this credential will use the namespace's default and may become unreachable. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was deleted successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call deleteCredentialAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCredentialValidateBeforeCall(namespace, name, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getCredential - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getCredentialCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/credentials/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCredentialValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getCredential(Async)"); - } - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getCredential(Async)"); - } - - - okhttp3.Call localVarCall = getCredentialCall(namespace, name, _callback); - return localVarCall; - - } - - /** - * - * Retrieve an access credential by name - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @return AccessCredential - * @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 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public AccessCredential getCredential(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getCredentialWithHttpInfo(namespace, name); - return localVarResp.getData(); - } - - /** - * - * Retrieve an access credential by name - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @return ApiResponse<AccessCredential> - * @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 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse getCredentialWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getCredentialValidateBeforeCall(namespace, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Retrieve an access credential by name - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Credential exists and can be returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call getCredentialAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCredentialValidateBeforeCall(namespace, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listCredentials - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call listCredentialsCall(String namespace, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/credentials/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (provider != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("provider", provider)); - } - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); - } - - if (perPage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listCredentialsValidateBeforeCall(String namespace, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listCredentials(Async)"); - } - - - okhttp3.Call localVarCall = listCredentialsCall(namespace, provider, type, page, perPage, _callback); - return localVarCall; - - } - - /** - * - * List the credentials available in the namespace - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return AccessCredentialsData - * @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 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public AccessCredentialsData listCredentials(String namespace, String provider, String type, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = listCredentialsWithHttpInfo(namespace, provider, type, page, perPage); - return localVarResp.getData(); - } - - /** - * - * List the credentials available in the namespace - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @return ApiResponse<AccessCredentialsData> - * @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 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public ApiResponse listCredentialsWithHttpInfo(String namespace, String provider, String type, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = listCredentialsValidateBeforeCall(namespace, provider, type, page, perPage, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * List the credentials available in the namespace - * @param namespace namespace (required) - * @param provider Show only the credentials from this provider. This should be one of the CloudProvider enum values. (optional) - * @param type Show only the credentials of this type. This should be one of the AccessCredentialType enum values. (optional) - * @param page pagination offset (optional) - * @param perPage pagination limit (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Available credentials are returned -
502 Bad Gateway -
0 error response -
- */ - public okhttp3.Call listCredentialsAsync(String namespace, String provider, String type, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listCredentialsValidateBeforeCall(namespace, provider, type, page, perPage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateCredential - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call updateCredentialCall(String namespace, String name, AccessCredential accessCredential, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = accessCredential; - - // create path and map variables - String localVarPath = "/credentials/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCredentialValidateBeforeCall(String namespace, String name, AccessCredential accessCredential, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateCredential(Async)"); - } - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling updateCredential(Async)"); - } - - // verify the required parameter 'accessCredential' is set - if (accessCredential == null) { - throw new ApiException("Missing the required parameter 'accessCredential' when calling updateCredential(Async)"); - } - - - okhttp3.Call localVarCall = updateCredentialCall(namespace, name, accessCredential, _callback); - return localVarCall; - - } - - /** - * - * Update the named access credential. This will also update the information used to access arrays set to use this credential. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public void updateCredential(String namespace, String name, AccessCredential accessCredential) throws ApiException { - updateCredentialWithHttpInfo(namespace, name, accessCredential); - } - - /** - * - * Update the named access credential. This will also update the information used to access arrays set to use this credential. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public ApiResponse updateCredentialWithHttpInfo(String namespace, String name, AccessCredential accessCredential) throws ApiException { - okhttp3.Call localVarCall = updateCredentialValidateBeforeCall(namespace, name, accessCredential, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * Update the named access credential. This will also update the information used to access arrays set to use this credential. - * @param namespace namespace (required) - * @param name A URL-safe version of the credential's user-provided name (required) - * @param accessCredential Changes to make to this credential (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 The credential was updated successfully -
502 Bad Gateway -
0 Error response -
- */ - public okhttp3.Call updateCredentialAsync(String namespace, String name, AccessCredential accessCredential, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCredentialValidateBeforeCall(namespace, name, accessCredential, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/ApiKeyAuth.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/ApiKeyAuth.java deleted file mode 100644 index b6cd2a8..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/ApiKeyAuth.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.auth; - -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ApiKeyAuth implements Authentication { - private final String location; - private final String paramName; - - private String apiKey; - private String apiKeyPrefix; - - public ApiKeyAuth(String location, String paramName) { - this.location = location; - this.paramName = paramName; - } - - public String getLocation() { - return location; - } - - public String getParamName() { - return paramName; - } - - public String getApiKey() { - return apiKey; - } - - public void setApiKey(String apiKey) { - this.apiKey = apiKey; - } - - public String getApiKeyPrefix() { - return apiKeyPrefix; - } - - public void setApiKeyPrefix(String apiKeyPrefix) { - this.apiKeyPrefix = apiKeyPrefix; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (apiKey == null) { - return; - } - String value; - if (apiKeyPrefix != null) { - value = apiKeyPrefix + " " + apiKey; - } else { - value = apiKey; - } - if ("query".equals(location)) { - queryParams.add(new Pair(paramName, value)); - } else if ("header".equals(location)) { - headerParams.put(paramName, value); - } else if ("cookie".equals(location)) { - cookieParams.put(paramName, value); - } - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/Authentication.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/Authentication.java deleted file mode 100644 index ae66f68..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/Authentication.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.auth; - -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -public interface Authentication { - /** - * Apply authentication settings to header and query params. - * - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws ApiException if failed to update the parameters - */ - void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBasicAuth.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBasicAuth.java deleted file mode 100644 index d3867ec..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBasicAuth.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.auth; - -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.Pair; - -import okhttp3.Credentials; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -public class HttpBasicAuth implements Authentication { - private String username; - private String password; - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (username == null && password == null) { - return; - } - headerParams.put("Authorization", Credentials.basic( - username == null ? "" : username, - password == null ? "" : password)); - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBearerAuth.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBearerAuth.java deleted file mode 100644 index 7565c08..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/HttpBearerAuth.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.auth; - -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class HttpBearerAuth implements Authentication { - private final String scheme; - private String bearerToken; - - public HttpBearerAuth(String scheme) { - this.scheme = scheme; - } - - /** - * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. - * - * @return The bearer token - */ - public String getBearerToken() { - return bearerToken; - } - - /** - * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. - * - * @param bearerToken The bearer token to send in the Authorization header - */ - public void setBearerToken(String bearerToken) { - this.bearerToken = bearerToken; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (bearerToken == null) { - return; - } - - headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); - } - - private static String upperCaseBearer(String scheme) { - return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuth.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuth.java deleted file mode 100644 index a7126f1..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuth.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.auth; - -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class OAuth implements Authentication { - private String accessToken; - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (accessToken != null) { - headerParams.put("Authorization", "Bearer " + accessToken); - } - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthFlow.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthFlow.java deleted file mode 100644 index 24a5d51..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthFlow.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.auth; - -/** - * OAuth flows that are supported by this client - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public enum OAuthFlow { - ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 - IMPLICIT, - PASSWORD, - APPLICATION //called clientCredentials in OpenAPI 3.0 -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthOkHttpClient.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthOkHttpClient.java deleted file mode 100644 index 65974e9..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/OAuthOkHttpClient.java +++ /dev/null @@ -1,68 +0,0 @@ -package io.tiledb.cloud.rest_api.v2.auth; - -import okhttp3.OkHttpClient; -import okhttp3.MediaType; -import okhttp3.Request; -import okhttp3.RequestBody; -import okhttp3.Response; - -import org.apache.oltu.oauth2.client.HttpClient; -import org.apache.oltu.oauth2.client.request.OAuthClientRequest; -import org.apache.oltu.oauth2.client.response.OAuthClientResponse; -import org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory; -import org.apache.oltu.oauth2.common.exception.OAuthProblemException; -import org.apache.oltu.oauth2.common.exception.OAuthSystemException; - -import java.io.IOException; -import java.util.Map; -import java.util.Map.Entry; - -public class OAuthOkHttpClient implements HttpClient { - private OkHttpClient client; - - public OAuthOkHttpClient() { - this.client = new OkHttpClient(); - } - - public OAuthOkHttpClient(OkHttpClient client) { - this.client = client; - } - - @Override - public T execute(OAuthClientRequest request, Map headers, - String requestMethod, Class responseClass) - throws OAuthSystemException, OAuthProblemException { - - MediaType mediaType = MediaType.parse("application/json"); - Request.Builder requestBuilder = new Request.Builder().url(request.getLocationUri()); - - if(headers != null) { - for (Entry entry : headers.entrySet()) { - if (entry.getKey().equalsIgnoreCase("Content-Type")) { - mediaType = MediaType.parse(entry.getValue()); - } else { - requestBuilder.addHeader(entry.getKey(), entry.getValue()); - } - } - } - - RequestBody body = request.getBody() != null ? RequestBody.create(request.getBody(), mediaType) : null; - requestBuilder.method(requestMethod, body); - - try { - Response response = client.newCall(requestBuilder.build()).execute(); - return OAuthClientResponseFactory.createCustomResponse( - response.body().string(), - response.body().contentType().toString(), - response.code(), - responseClass); - } catch (IOException e) { - throw new OAuthSystemException(e); - } - } - - @Override - public void shutdown() { - // Nothing to do here - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/RetryingOAuth.java b/src/main/java/io/tiledb/cloud/rest_api/v2/auth/RetryingOAuth.java deleted file mode 100644 index 62587df..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/auth/RetryingOAuth.java +++ /dev/null @@ -1,210 +0,0 @@ -package io.tiledb.cloud.rest_api.v2.auth; - -import io.tiledb.cloud.rest_api.v2.ApiException; -import io.tiledb.cloud.rest_api.v2.Pair; - -import okhttp3.Interceptor; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; - -import org.apache.oltu.oauth2.client.OAuthClient; -import org.apache.oltu.oauth2.client.request.OAuthBearerClientRequest; -import org.apache.oltu.oauth2.client.request.OAuthClientRequest; -import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; -import org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse; -import org.apache.oltu.oauth2.common.exception.OAuthProblemException; -import org.apache.oltu.oauth2.common.exception.OAuthSystemException; -import org.apache.oltu.oauth2.common.message.types.GrantType; - -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URI; -import java.util.Map; -import java.util.List; - -public class RetryingOAuth extends OAuth implements Interceptor { - private OAuthClient oAuthClient; - - private TokenRequestBuilder tokenRequestBuilder; - - /** - * @param client An OkHttp client - * @param tokenRequestBuilder A token request builder - */ - public RetryingOAuth(OkHttpClient client, TokenRequestBuilder tokenRequestBuilder) { - this.oAuthClient = new OAuthClient(new OAuthOkHttpClient(client)); - this.tokenRequestBuilder = tokenRequestBuilder; - } - - /** - * @param tokenRequestBuilder A token request builder - */ - public RetryingOAuth(TokenRequestBuilder tokenRequestBuilder) { - this(new OkHttpClient(), tokenRequestBuilder); - } - - /** - * @param tokenUrl The token URL to be used for this OAuth2 flow. - * Applicable to the following OAuth2 flows: "password", "clientCredentials" and "authorizationCode". - * The value must be an absolute URL. - * @param clientId The OAuth2 client ID for the "clientCredentials" flow. - * @param flow OAuth flow. - * @param clientSecret The OAuth2 client secret for the "clientCredentials" flow. - * @param parameters A map of string. - */ - public RetryingOAuth( - String tokenUrl, - String clientId, - OAuthFlow flow, - String clientSecret, - Map parameters - ) { - this(OAuthClientRequest.tokenLocation(tokenUrl) - .setClientId(clientId) - .setClientSecret(clientSecret)); - setFlow(flow); - if (parameters != null) { - for (String paramName : parameters.keySet()) { - tokenRequestBuilder.setParameter(paramName, parameters.get(paramName)); - } - } - } - - /** - * Set the OAuth flow - * - * @param flow The OAuth flow. - */ - public void setFlow(OAuthFlow flow) { - switch(flow) { - case ACCESS_CODE: - tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE); - break; - case IMPLICIT: - tokenRequestBuilder.setGrantType(GrantType.IMPLICIT); - break; - case PASSWORD: - tokenRequestBuilder.setGrantType(GrantType.PASSWORD); - break; - case APPLICATION: - tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS); - break; - default: - break; - } - } - - @Override - public Response intercept(Chain chain) throws IOException { - return retryingIntercept(chain, true); - } - - private Response retryingIntercept(Chain chain, boolean updateTokenAndRetryOnAuthorizationFailure) throws IOException { - Request request = chain.request(); - - // If the request already has an authorization (e.g. Basic auth), proceed with the request as is - if (request.header("Authorization") != null) { - return chain.proceed(request); - } - - // Get the token if it has not yet been acquired - if (getAccessToken() == null) { - updateAccessToken(null); - } - - OAuthClientRequest oAuthRequest; - if (getAccessToken() != null) { - // Build the request - Request.Builder requestBuilder = request.newBuilder(); - - String requestAccessToken = getAccessToken(); - try { - oAuthRequest = - new OAuthBearerClientRequest(request.url().toString()). - setAccessToken(requestAccessToken). - buildHeaderMessage(); - } catch (OAuthSystemException e) { - throw new IOException(e); - } - - Map headers = oAuthRequest.getHeaders(); - for (String headerName : headers.keySet()) { - requestBuilder.addHeader(headerName, headers.get(headerName)); - } - requestBuilder.url(oAuthRequest.getLocationUri()); - - // Execute the request - Response response = chain.proceed(requestBuilder.build()); - - // 401/403 response codes most likely indicate an expired access token, unless it happens two times in a row - if ( - response != null && - ( response.code() == HttpURLConnection.HTTP_UNAUTHORIZED || - response.code() == HttpURLConnection.HTTP_FORBIDDEN ) && - updateTokenAndRetryOnAuthorizationFailure - ) { - try { - if (updateAccessToken(requestAccessToken)) { - response.body().close(); - return retryingIntercept(chain, false); - } - } catch (Exception e) { - response.body().close(); - throw e; - } - } - return response; - } - else { - return chain.proceed(chain.request()); - } - } - - /** - * Returns true if the access token has been updated - * - * @param requestAccessToken the request access token - * @return True if the update is successful - * @throws java.io.IOException If fail to update the access token - */ - public synchronized boolean updateAccessToken(String requestAccessToken) throws IOException { - if (getAccessToken() == null || getAccessToken().equals(requestAccessToken)) { - try { - OAuthJSONAccessTokenResponse accessTokenResponse = - oAuthClient.accessToken(tokenRequestBuilder.buildBodyMessage()); - if (accessTokenResponse != null && accessTokenResponse.getAccessToken() != null) { - setAccessToken(accessTokenResponse.getAccessToken()); - } - } catch (OAuthSystemException | OAuthProblemException e) { - throw new IOException(e); - } - } - return getAccessToken() == null || !getAccessToken().equals(requestAccessToken); - } - - /** - * Gets the token request builder - * - * @return A token request builder - */ - public TokenRequestBuilder getTokenRequestBuilder() { - return tokenRequestBuilder; - } - - /** - * Sets the token request builder - * - * @param tokenRequestBuilder Token request builder - */ - public void setTokenRequestBuilder(TokenRequestBuilder tokenRequestBuilder) { - this.tokenRequestBuilder = tokenRequestBuilder; - } - - // Applying authorization to parameters is performed in the retryingIntercept method - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - // No implementation necessary - } -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSCredential.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSCredential.java deleted file mode 100644 index f349da2..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSCredential.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Credential information to access Amazon Web Services - */ -@ApiModel(description = "Credential information to access Amazon Web Services") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AWSCredential { - public static final String SERIALIZED_NAME_ACCESS_KEY_ID = "access_key_id"; - @SerializedName(SERIALIZED_NAME_ACCESS_KEY_ID) - private String accessKeyId; - - public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; - @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) - private String secretAccessKey; - - public static final String SERIALIZED_NAME_ENDPOINT = "endpoint"; - @SerializedName(SERIALIZED_NAME_ENDPOINT) - private String endpoint; - - public AWSCredential() { - } - - public AWSCredential accessKeyId(String accessKeyId) { - - this.accessKeyId = accessKeyId; - return this; - } - - /** - * The ID of the access key - * @return accessKeyId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The ID of the access key") - - public String getAccessKeyId() { - return accessKeyId; - } - - - public void setAccessKeyId(String accessKeyId) { - this.accessKeyId = accessKeyId; - } - - - public AWSCredential secretAccessKey(String secretAccessKey) { - - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * The access key's secret. Never returned in responses. - * @return secretAccessKey - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The access key's secret. Never returned in responses.") - - public String getSecretAccessKey() { - return secretAccessKey; - } - - - public void setSecretAccessKey(String secretAccessKey) { - this.secretAccessKey = secretAccessKey; - } - - - public AWSCredential endpoint(String endpoint) { - - this.endpoint = endpoint; - return this; - } - - /** - * The endpoint used for this credential - * @return endpoint - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://example.us-west-2.amazonaws.com", value = "The endpoint used for this credential") - - public String getEndpoint() { - return endpoint; - } - - - public void setEndpoint(String endpoint) { - this.endpoint = endpoint; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AWSCredential putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AWSCredential awSCredential = (AWSCredential) o; - return Objects.equals(this.accessKeyId, awSCredential.accessKeyId) && - Objects.equals(this.secretAccessKey, awSCredential.secretAccessKey) && - Objects.equals(this.endpoint, awSCredential.endpoint)&& - Objects.equals(this.additionalProperties, awSCredential.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(accessKeyId, secretAccessKey, endpoint, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AWSCredential {\n"); - sb.append(" accessKeyId: ").append(toIndentedString(accessKeyId)).append("\n"); - sb.append(" secretAccessKey: ").append(toIndentedString(secretAccessKey)).append("\n"); - sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("access_key_id"); - openapiFields.add("secret_access_key"); - openapiFields.add("endpoint"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AWSCredential - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AWSCredential.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AWSCredential is not found in the empty JSON string", AWSCredential.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_key_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_key_id").toString())); - } - if (jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `secret_access_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret_access_key").toString())); - } - if (jsonObj.get("endpoint") != null && !jsonObj.get("endpoint").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `endpoint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endpoint").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AWSCredential.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AWSCredential' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AWSCredential.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AWSCredential value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AWSCredential read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AWSCredential instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AWSCredential given an JSON string - * - * @param jsonString JSON string - * @return An instance of AWSCredential - * @throws IOException if the JSON string is invalid with respect to AWSCredential - */ - public static AWSCredential fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AWSCredential.class); - } - - /** - * Convert an instance of AWSCredential to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSRole.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSRole.java deleted file mode 100644 index 14bce6a..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AWSRole.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Role information to access Amazon Web Services - */ -@ApiModel(description = "Role information to access Amazon Web Services") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AWSRole { - public static final String SERIALIZED_NAME_ROLE_ARN = "role_arn"; - @SerializedName(SERIALIZED_NAME_ROLE_ARN) - private String roleArn; - - public static final String SERIALIZED_NAME_EXTERNAL_ID = "external_id"; - @SerializedName(SERIALIZED_NAME_EXTERNAL_ID) - private String externalId; - - public static final String SERIALIZED_NAME_ENDPOINT = "endpoint"; - @SerializedName(SERIALIZED_NAME_ENDPOINT) - private String endpoint; - - public AWSRole() { - } - - public AWSRole roleArn(String roleArn) { - - this.roleArn = roleArn; - return this; - } - - /** - * The role arn used to access - * @return roleArn - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "arn:partition:service:region:account-id:resource-type:resource-id", value = "The role arn used to access") - - public String getRoleArn() { - return roleArn; - } - - - public void setRoleArn(String roleArn) { - this.roleArn = roleArn; - } - - - public AWSRole externalId(String externalId) { - - this.externalId = externalId; - return this; - } - - /** - * The role external id used to access - * @return externalId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "MzU0M2UwMTItMWJhYy00NWUwLThmZDItZTgwYmQ1NjE5Yjhm", value = "The role external id used to access") - - public String getExternalId() { - return externalId; - } - - - public void setExternalId(String externalId) { - this.externalId = externalId; - } - - - public AWSRole endpoint(String endpoint) { - - this.endpoint = endpoint; - return this; - } - - /** - * The endpoint used for this role - * @return endpoint - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://example.us-west-2.amazonaws.com", value = "The endpoint used for this role") - - public String getEndpoint() { - return endpoint; - } - - - public void setEndpoint(String endpoint) { - this.endpoint = endpoint; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AWSRole putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AWSRole awSRole = (AWSRole) o; - return Objects.equals(this.roleArn, awSRole.roleArn) && - Objects.equals(this.externalId, awSRole.externalId) && - Objects.equals(this.endpoint, awSRole.endpoint)&& - Objects.equals(this.additionalProperties, awSRole.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(roleArn, externalId, endpoint, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AWSRole {\n"); - sb.append(" roleArn: ").append(toIndentedString(roleArn)).append("\n"); - sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); - sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("role_arn"); - openapiFields.add("external_id"); - openapiFields.add("endpoint"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AWSRole - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AWSRole.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AWSRole is not found in the empty JSON string", AWSRole.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("role_arn") != null && !jsonObj.get("role_arn").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role_arn").toString())); - } - if (jsonObj.get("external_id") != null && !jsonObj.get("external_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `external_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("external_id").toString())); - } - if (jsonObj.get("endpoint") != null && !jsonObj.get("endpoint").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `endpoint` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endpoint").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AWSRole.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AWSRole' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AWSRole.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AWSRole value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AWSRole read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AWSRole instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AWSRole given an JSON string - * - * @param jsonString JSON string - * @return An instance of AWSRole - * @throws IOException if the JSON string is invalid with respect to AWSRole - */ - public static AWSRole fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AWSRole.class); - } - - /** - * Convert an instance of AWSRole to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AbstractOpenApiSchema.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AbstractOpenApiSchema.java deleted file mode 100644 index e03a760..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AbstractOpenApiSchema.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -//import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public abstract class AbstractOpenApiSchema { - - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - //@JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - if (Boolean.TRUE.equals(isNullable)) { - return Boolean.TRUE; - } else { - return Boolean.FALSE; - } - } - - - -} diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredential.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredential.java deleted file mode 100644 index d667050..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredential.java +++ /dev/null @@ -1,523 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.time.OffsetDateTime; - -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * A union type which may contain a credential to access any one cloud provider. - */ -@ApiModel(description = "A union type which may contain a credential to access any one cloud provider.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AccessCredential { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PROVIDER = "provider"; - @SerializedName(SERIALIZED_NAME_PROVIDER) - private CloudProvider provider; - - public static final String SERIALIZED_NAME_PROVIDER_DEFAULT = "provider_default"; - @SerializedName(SERIALIZED_NAME_PROVIDER_DEFAULT) - private Boolean providerDefault; - - public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private OffsetDateTime createdAt; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private OffsetDateTime updatedAt; - - public static final String SERIALIZED_NAME_ALLOWED_IN_TASKS = "allowed_in_tasks"; - @SerializedName(SERIALIZED_NAME_ALLOWED_IN_TASKS) - private Boolean allowedInTasks; - - public static final String SERIALIZED_NAME_CREDENTIAL = "credential"; - @SerializedName(SERIALIZED_NAME_CREDENTIAL) - private AccessCredentialCredential credential; - - public static final String SERIALIZED_NAME_ROLE = "role"; - @SerializedName(SERIALIZED_NAME_ROLE) - private AccessCredentialRole role; - - public static final String SERIALIZED_NAME_TOKEN = "token"; - @SerializedName(SERIALIZED_NAME_TOKEN) - private AccessCredentialToken token; - - public AccessCredential() { - } - - - public AccessCredential( - OffsetDateTime createdAt, - OffsetDateTime updatedAt - ) { - this(); - this.createdAt = createdAt; - this.updatedAt = updatedAt; - } - - public AccessCredential name(String name) { - - this.name = name; - return this; - } - - /** - * A user-specified name for the key - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A user-specified name for the key") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public AccessCredential provider(CloudProvider provider) { - - this.provider = provider; - return this; - } - - /** - * Get provider - * @return provider - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public CloudProvider getProvider() { - return provider; - } - - - public void setProvider(CloudProvider provider) { - this.provider = provider; - } - - - public AccessCredential providerDefault(Boolean providerDefault) { - - this.providerDefault = providerDefault; - return this; - } - - /** - * True if this is the namespace's default credential to be used when connecting to the given cloud provider. There can be at most one default for each unique provider. - * @return providerDefault - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if this is the namespace's default credential to be used when connecting to the given cloud provider. There can be at most one default for each unique provider.") - - public Boolean getProviderDefault() { - return providerDefault; - } - - - public void setProviderDefault(Boolean providerDefault) { - this.providerDefault = providerDefault; - } - - - /** - * Time when the credential was created (rfc3339) - * @return createdAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time when the credential was created (rfc3339)") - - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - - - - /** - * Time when the credential was last updated (rfc3339) - * @return updatedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time when the credential was last updated (rfc3339)") - - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - - - - public AccessCredential allowedInTasks(Boolean allowedInTasks) { - - this.allowedInTasks = allowedInTasks; - return this; - } - - /** - * Is this credential allowed to be used in tasks - * @return allowedInTasks - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Is this credential allowed to be used in tasks") - - public Boolean getAllowedInTasks() { - return allowedInTasks; - } - - - public void setAllowedInTasks(Boolean allowedInTasks) { - this.allowedInTasks = allowedInTasks; - } - - - public AccessCredential credential(AccessCredentialCredential credential) { - - this.credential = credential; - return this; - } - - /** - * Get credential - * @return credential - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AccessCredentialCredential getCredential() { - return credential; - } - - - public void setCredential(AccessCredentialCredential credential) { - this.credential = credential; - } - - - public AccessCredential role(AccessCredentialRole role) { - - this.role = role; - return this; - } - - /** - * Get role - * @return role - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AccessCredentialRole getRole() { - return role; - } - - - public void setRole(AccessCredentialRole role) { - this.role = role; - } - - - public AccessCredential token(AccessCredentialToken token) { - - this.token = token; - return this; - } - - /** - * Get token - * @return token - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AccessCredentialToken getToken() { - return token; - } - - - public void setToken(AccessCredentialToken token) { - this.token = token; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AccessCredential putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccessCredential accessCredential = (AccessCredential) o; - return Objects.equals(this.name, accessCredential.name) && - Objects.equals(this.provider, accessCredential.provider) && - Objects.equals(this.providerDefault, accessCredential.providerDefault) && - Objects.equals(this.createdAt, accessCredential.createdAt) && - Objects.equals(this.updatedAt, accessCredential.updatedAt) && - Objects.equals(this.allowedInTasks, accessCredential.allowedInTasks) && - Objects.equals(this.credential, accessCredential.credential) && - Objects.equals(this.role, accessCredential.role) && - Objects.equals(this.token, accessCredential.token)&& - Objects.equals(this.additionalProperties, accessCredential.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(name, provider, providerDefault, createdAt, updatedAt, allowedInTasks, credential, role, token, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccessCredential {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" providerDefault: ").append(toIndentedString(providerDefault)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" allowedInTasks: ").append(toIndentedString(allowedInTasks)).append("\n"); - sb.append(" credential: ").append(toIndentedString(credential)).append("\n"); - sb.append(" role: ").append(toIndentedString(role)).append("\n"); - sb.append(" token: ").append(toIndentedString(token)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("provider"); - openapiFields.add("provider_default"); - openapiFields.add("created_at"); - openapiFields.add("updated_at"); - openapiFields.add("allowed_in_tasks"); - openapiFields.add("credential"); - openapiFields.add("role"); - openapiFields.add("token"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AccessCredential - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AccessCredential.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessCredential is not found in the empty JSON string", AccessCredential.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `credential` - if (jsonObj.getAsJsonObject("credential") != null) { - AccessCredentialCredential.validateJsonObject(jsonObj.getAsJsonObject("credential")); - } - // validate the optional field `role` - if (jsonObj.getAsJsonObject("role") != null) { - AccessCredentialRole.validateJsonObject(jsonObj.getAsJsonObject("role")); - } - // validate the optional field `token` - if (jsonObj.getAsJsonObject("token") != null) { - AccessCredentialToken.validateJsonObject(jsonObj.getAsJsonObject("token")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AccessCredential.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AccessCredential' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AccessCredential.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AccessCredential value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AccessCredential read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AccessCredential instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AccessCredential given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccessCredential - * @throws IOException if the JSON string is invalid with respect to AccessCredential - */ - public static AccessCredential fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AccessCredential.class); - } - - /** - * Convert an instance of AccessCredential to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialCredential.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialCredential.java deleted file mode 100644 index fed2453..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialCredential.java +++ /dev/null @@ -1,347 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The credential information itself. Exactly one sub-field may be set. The names match those in the CloudProvider enum. - */ -@ApiModel(description = "The credential information itself. Exactly one sub-field may be set. The names match those in the CloudProvider enum.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AccessCredentialCredential { - public static final String SERIALIZED_NAME_AWS = "aws"; - @SerializedName(SERIALIZED_NAME_AWS) - private AWSCredential aws; - - public static final String SERIALIZED_NAME_AZURE = "azure"; - @SerializedName(SERIALIZED_NAME_AZURE) - private AzureCredential azure; - - public static final String SERIALIZED_NAME_GCP = "gcp"; - @SerializedName(SERIALIZED_NAME_GCP) - private GCPInteroperabilityCredential gcp; - - public AccessCredentialCredential() { - } - - public AccessCredentialCredential aws(AWSCredential aws) { - - this.aws = aws; - return this; - } - - /** - * Get aws - * @return aws - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AWSCredential getAws() { - return aws; - } - - - public void setAws(AWSCredential aws) { - this.aws = aws; - } - - - public AccessCredentialCredential azure(AzureCredential azure) { - - this.azure = azure; - return this; - } - - /** - * Get azure - * @return azure - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AzureCredential getAzure() { - return azure; - } - - - public void setAzure(AzureCredential azure) { - this.azure = azure; - } - - - public AccessCredentialCredential gcp(GCPInteroperabilityCredential gcp) { - - this.gcp = gcp; - return this; - } - - /** - * Get gcp - * @return gcp - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GCPInteroperabilityCredential getGcp() { - return gcp; - } - - - public void setGcp(GCPInteroperabilityCredential gcp) { - this.gcp = gcp; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AccessCredentialCredential putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccessCredentialCredential accessCredentialCredential = (AccessCredentialCredential) o; - return Objects.equals(this.aws, accessCredentialCredential.aws) && - Objects.equals(this.azure, accessCredentialCredential.azure) && - Objects.equals(this.gcp, accessCredentialCredential.gcp)&& - Objects.equals(this.additionalProperties, accessCredentialCredential.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(aws, azure, gcp, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccessCredentialCredential {\n"); - sb.append(" aws: ").append(toIndentedString(aws)).append("\n"); - sb.append(" azure: ").append(toIndentedString(azure)).append("\n"); - sb.append(" gcp: ").append(toIndentedString(gcp)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("aws"); - openapiFields.add("azure"); - openapiFields.add("gcp"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AccessCredentialCredential - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AccessCredentialCredential.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessCredentialCredential is not found in the empty JSON string", AccessCredentialCredential.openapiRequiredFields.toString())); - } - } - // validate the optional field `aws` - if (jsonObj.getAsJsonObject("aws") != null) { - AWSCredential.validateJsonObject(jsonObj.getAsJsonObject("aws")); - } - // validate the optional field `azure` - if (jsonObj.getAsJsonObject("azure") != null) { - AzureCredential.validateJsonObject(jsonObj.getAsJsonObject("azure")); - } - // validate the optional field `gcp` - if (jsonObj.getAsJsonObject("gcp") != null) { - GCPInteroperabilityCredential.validateJsonObject(jsonObj.getAsJsonObject("gcp")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AccessCredentialCredential.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AccessCredentialCredential' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AccessCredentialCredential.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AccessCredentialCredential value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AccessCredentialCredential read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AccessCredentialCredential instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AccessCredentialCredential given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccessCredentialCredential - * @throws IOException if the JSON string is invalid with respect to AccessCredentialCredential - */ - public static AccessCredentialCredential fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AccessCredentialCredential.class); - } - - /** - * Convert an instance of AccessCredentialCredential to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialRole.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialRole.java deleted file mode 100644 index a0c12de..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialRole.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The role information itself. Exactly one sub-field may be set. The names match those in the CloudProvider enum. - */ -@ApiModel(description = "The role information itself. Exactly one sub-field may be set. The names match those in the CloudProvider enum.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AccessCredentialRole { - public static final String SERIALIZED_NAME_AWS = "aws"; - @SerializedName(SERIALIZED_NAME_AWS) - private AWSRole aws; - - public AccessCredentialRole() { - } - - public AccessCredentialRole aws(AWSRole aws) { - - this.aws = aws; - return this; - } - - /** - * Get aws - * @return aws - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AWSRole getAws() { - return aws; - } - - - public void setAws(AWSRole aws) { - this.aws = aws; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AccessCredentialRole putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccessCredentialRole accessCredentialRole = (AccessCredentialRole) o; - return Objects.equals(this.aws, accessCredentialRole.aws)&& - Objects.equals(this.additionalProperties, accessCredentialRole.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(aws, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccessCredentialRole {\n"); - sb.append(" aws: ").append(toIndentedString(aws)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("aws"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AccessCredentialRole - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AccessCredentialRole.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessCredentialRole is not found in the empty JSON string", AccessCredentialRole.openapiRequiredFields.toString())); - } - } - // validate the optional field `aws` - if (jsonObj.getAsJsonObject("aws") != null) { - AWSRole.validateJsonObject(jsonObj.getAsJsonObject("aws")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AccessCredentialRole.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AccessCredentialRole' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AccessCredentialRole.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AccessCredentialRole value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AccessCredentialRole read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AccessCredentialRole instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AccessCredentialRole given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccessCredentialRole - * @throws IOException if the JSON string is invalid with respect to AccessCredentialRole - */ - public static AccessCredentialRole fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AccessCredentialRole.class); - } - - /** - * Convert an instance of AccessCredentialRole to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialToken.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialToken.java deleted file mode 100644 index fe38393..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialToken.java +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The token information itself. Exactly one sub-field may be set. The names match those in the CloudProvider enum. - */ -@ApiModel(description = "The token information itself. Exactly one sub-field may be set. The names match those in the CloudProvider enum.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AccessCredentialToken { - public static final String SERIALIZED_NAME_AZURE = "azure"; - @SerializedName(SERIALIZED_NAME_AZURE) - private AzureToken azure; - - public static final String SERIALIZED_NAME_GCP = "gcp"; - @SerializedName(SERIALIZED_NAME_GCP) - private GCPServiceAccountKey gcp; - - public AccessCredentialToken() { - } - - public AccessCredentialToken azure(AzureToken azure) { - - this.azure = azure; - return this; - } - - /** - * Get azure - * @return azure - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AzureToken getAzure() { - return azure; - } - - - public void setAzure(AzureToken azure) { - this.azure = azure; - } - - - public AccessCredentialToken gcp(GCPServiceAccountKey gcp) { - - this.gcp = gcp; - return this; - } - - /** - * Get gcp - * @return gcp - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GCPServiceAccountKey getGcp() { - return gcp; - } - - - public void setGcp(GCPServiceAccountKey gcp) { - this.gcp = gcp; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AccessCredentialToken putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccessCredentialToken accessCredentialToken = (AccessCredentialToken) o; - return Objects.equals(this.azure, accessCredentialToken.azure) && - Objects.equals(this.gcp, accessCredentialToken.gcp)&& - Objects.equals(this.additionalProperties, accessCredentialToken.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(azure, gcp, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccessCredentialToken {\n"); - sb.append(" azure: ").append(toIndentedString(azure)).append("\n"); - sb.append(" gcp: ").append(toIndentedString(gcp)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("azure"); - openapiFields.add("gcp"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AccessCredentialToken - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AccessCredentialToken.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessCredentialToken is not found in the empty JSON string", AccessCredentialToken.openapiRequiredFields.toString())); - } - } - // validate the optional field `azure` - if (jsonObj.getAsJsonObject("azure") != null) { - AzureToken.validateJsonObject(jsonObj.getAsJsonObject("azure")); - } - // validate the optional field `gcp` - if (jsonObj.getAsJsonObject("gcp") != null) { - GCPServiceAccountKey.validateJsonObject(jsonObj.getAsJsonObject("gcp")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AccessCredentialToken.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AccessCredentialToken' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AccessCredentialToken.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AccessCredentialToken value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AccessCredentialToken read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AccessCredentialToken instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AccessCredentialToken given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccessCredentialToken - * @throws IOException if the JSON string is invalid with respect to AccessCredentialToken - */ - public static AccessCredentialToken fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AccessCredentialToken.class); - } - - /** - * Convert an instance of AccessCredentialToken to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialType.java deleted file mode 100644 index 8dabc6c..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialType.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * The types of an access credential - */ -@JsonAdapter(AccessCredentialType.Adapter.class) -public enum AccessCredentialType { - - KEY("key"), - - ARN("arn"), - - AZURE_TOKEN("azure_token"); - - private String value; - - AccessCredentialType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static AccessCredentialType fromValue(String value) { - for (AccessCredentialType b : AccessCredentialType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final AccessCredentialType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public AccessCredentialType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return AccessCredentialType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialsData.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialsData.java deleted file mode 100644 index 58d7755..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AccessCredentialsData.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Object including credentials and pagination metadata - */ -@ApiModel(description = "Object including credentials and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AccessCredentialsData { - public static final String SERIALIZED_NAME_CREDENTIALS = "credentials"; - @SerializedName(SERIALIZED_NAME_CREDENTIALS) - private List credentials = null; - - public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; - @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) - private PaginationMetadata paginationMetadata; - - public AccessCredentialsData() { - } - - public AccessCredentialsData credentials(List credentials) { - - this.credentials = credentials; - return this; - } - - public AccessCredentialsData addCredentialsItem(AccessCredential credentialsItem) { - if (this.credentials == null) { - this.credentials = new ArrayList<>(); - } - this.credentials.add(credentialsItem); - return this; - } - - /** - * List of credentials - * @return credentials - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of credentials") - - public List getCredentials() { - return credentials; - } - - - public void setCredentials(List credentials) { - this.credentials = credentials; - } - - - public AccessCredentialsData paginationMetadata(PaginationMetadata paginationMetadata) { - - this.paginationMetadata = paginationMetadata; - return this; - } - - /** - * Get paginationMetadata - * @return paginationMetadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public PaginationMetadata getPaginationMetadata() { - return paginationMetadata; - } - - - public void setPaginationMetadata(PaginationMetadata paginationMetadata) { - this.paginationMetadata = paginationMetadata; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AccessCredentialsData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccessCredentialsData accessCredentialsData = (AccessCredentialsData) o; - return Objects.equals(this.credentials, accessCredentialsData.credentials) && - Objects.equals(this.paginationMetadata, accessCredentialsData.paginationMetadata)&& - Objects.equals(this.additionalProperties, accessCredentialsData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(credentials, paginationMetadata, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccessCredentialsData {\n"); - sb.append(" credentials: ").append(toIndentedString(credentials)).append("\n"); - sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("credentials"); - openapiFields.add("pagination_metadata"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AccessCredentialsData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AccessCredentialsData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AccessCredentialsData is not found in the empty JSON string", AccessCredentialsData.openapiRequiredFields.toString())); - } - } - JsonArray jsonArraycredentials = jsonObj.getAsJsonArray("credentials"); - if (jsonArraycredentials != null) { - // ensure the json data is an array - if (!jsonObj.get("credentials").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `credentials` to be an array in the JSON string but got `%s`", jsonObj.get("credentials").toString())); - } - - // validate the optional field `credentials` (array) - for (int i = 0; i < jsonArraycredentials.size(); i++) { - AccessCredential.validateJsonObject(jsonArraycredentials.get(i).getAsJsonObject()); - }; - } - // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AccessCredentialsData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AccessCredentialsData' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AccessCredentialsData.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AccessCredentialsData value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AccessCredentialsData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AccessCredentialsData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AccessCredentialsData given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccessCredentialsData - * @throws IOException if the JSON string is invalid with respect to AccessCredentialsData - */ - public static AccessCredentialsData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AccessCredentialsData.class); - } - - /** - * Convert an instance of AccessCredentialsData to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ActivityEventType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ActivityEventType.java deleted file mode 100644 index 845b191..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ActivityEventType.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Type of activity logged - */ -@JsonAdapter(ActivityEventType.Adapter.class) -public enum ActivityEventType { - - READ_SCHEMA("read_schema"), - - MAX_BUFFER_SIZES("max_buffer_sizes"), - - NON_EMPTY_DOMAIN("non_empty_domain"), - - QUERY_READ("query_read"), - - QUERY_WRITE("query_write"), - - CREATE("create"), - - DELETE("delete"), - - REGISTER("register"), - - DEREGISTER("deregister"), - - UDF("udf"), - - ARRAY_METADATA_GET("array_metadata_get"), - - ARRAY_METADATA_UPDATE("array_metadata_update"), - - ESTIMATED_RESULT_SIZES("estimated_result_sizes"), - - UPDATE("update"), - - INFO("info"), - - RUN("run"); - - private String value; - - ActivityEventType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ActivityEventType fromValue(String value) { - for (ActivityEventType b : ActivityEventType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ActivityEventType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ActivityEventType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ActivityEventType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Array.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Array.java deleted file mode 100644 index c58b074..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Array.java +++ /dev/null @@ -1,618 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Represents an open array - */ -@ApiModel(description = "Represents an open array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Array { - public static final String SERIALIZED_NAME_QUERY_TYPE = "queryType"; - @SerializedName(SERIALIZED_NAME_QUERY_TYPE) - private Querytype queryType; - - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_END_TIMESTAMP = "endTimestamp"; - @SerializedName(SERIALIZED_NAME_END_TIMESTAMP) - private BigDecimal endTimestamp; - - public static final String SERIALIZED_NAME_START_TIMESTAMP = "startTimestamp"; - @SerializedName(SERIALIZED_NAME_START_TIMESTAMP) - private BigDecimal startTimestamp; - - public static final String SERIALIZED_NAME_ARRAY_SCHEMA_LATEST = "arraySchemaLatest"; - @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_LATEST) - private ArraySchema arraySchemaLatest; - - public static final String SERIALIZED_NAME_ARRAY_SCHEMAS_ALL = "arraySchemasAll"; - @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMAS_ALL) - private ArraySchemaMap arraySchemasAll; - - public static final String SERIALIZED_NAME_ARRAY_METADATA = "arrayMetadata"; - @SerializedName(SERIALIZED_NAME_ARRAY_METADATA) - private ArrayMetadata arrayMetadata; - - public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; - @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) - private NonEmptyDomainList nonEmptyDomain; - - public static final String SERIALIZED_NAME_ARRAY_DIRECTORY = "arrayDirectory"; - @SerializedName(SERIALIZED_NAME_ARRAY_DIRECTORY) - private ArrayDirectory arrayDirectory; - - public static final String SERIALIZED_NAME_FRAGMENT_METADATA_ALL = "fragmentMetadataAll"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_METADATA_ALL) - private List fragmentMetadataAll = null; - - public static final String SERIALIZED_NAME_OPENED_AT_END_TIMESTAMP = "openedAtEndTimestamp"; - @SerializedName(SERIALIZED_NAME_OPENED_AT_END_TIMESTAMP) - private BigDecimal openedAtEndTimestamp; - - public Array() { - } - - public Array queryType(Querytype queryType) { - - this.queryType = queryType; - return this; - } - - /** - * Get queryType - * @return queryType - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Querytype getQueryType() { - return queryType; - } - - - public void setQueryType(Querytype queryType) { - this.queryType = queryType; - } - - - public Array uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * Array uri - * @return uri - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Array uri") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public Array endTimestamp(BigDecimal endTimestamp) { - - this.endTimestamp = endTimestamp; - return this; - } - - /** - * Ending timestamp (epoch milliseconds) array is opened at - * @return endTimestamp - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1540471791873", value = "Ending timestamp (epoch milliseconds) array is opened at") - - public BigDecimal getEndTimestamp() { - return endTimestamp; - } - - - public void setEndTimestamp(BigDecimal endTimestamp) { - this.endTimestamp = endTimestamp; - } - - - public Array startTimestamp(BigDecimal startTimestamp) { - - this.startTimestamp = startTimestamp; - return this; - } - - /** - * Starting timestamp (epoch milliseconds) array is opened at - * @return startTimestamp - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1540471791873", value = "Starting timestamp (epoch milliseconds) array is opened at") - - public BigDecimal getStartTimestamp() { - return startTimestamp; - } - - - public void setStartTimestamp(BigDecimal startTimestamp) { - this.startTimestamp = startTimestamp; - } - - - public Array arraySchemaLatest(ArraySchema arraySchemaLatest) { - - this.arraySchemaLatest = arraySchemaLatest; - return this; - } - - /** - * Get arraySchemaLatest - * @return arraySchemaLatest - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArraySchema getArraySchemaLatest() { - return arraySchemaLatest; - } - - - public void setArraySchemaLatest(ArraySchema arraySchemaLatest) { - this.arraySchemaLatest = arraySchemaLatest; - } - - - public Array arraySchemasAll(ArraySchemaMap arraySchemasAll) { - - this.arraySchemasAll = arraySchemasAll; - return this; - } - - /** - * Get arraySchemasAll - * @return arraySchemasAll - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArraySchemaMap getArraySchemasAll() { - return arraySchemasAll; - } - - - public void setArraySchemasAll(ArraySchemaMap arraySchemasAll) { - this.arraySchemasAll = arraySchemasAll; - } - - - public Array arrayMetadata(ArrayMetadata arrayMetadata) { - - this.arrayMetadata = arrayMetadata; - return this; - } - - /** - * Get arrayMetadata - * @return arrayMetadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArrayMetadata getArrayMetadata() { - return arrayMetadata; - } - - - public void setArrayMetadata(ArrayMetadata arrayMetadata) { - this.arrayMetadata = arrayMetadata; - } - - - public Array nonEmptyDomain(NonEmptyDomainList nonEmptyDomain) { - - this.nonEmptyDomain = nonEmptyDomain; - return this; - } - - /** - * Get nonEmptyDomain - * @return nonEmptyDomain - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public NonEmptyDomainList getNonEmptyDomain() { - return nonEmptyDomain; - } - - - public void setNonEmptyDomain(NonEmptyDomainList nonEmptyDomain) { - this.nonEmptyDomain = nonEmptyDomain; - } - - - public Array arrayDirectory(ArrayDirectory arrayDirectory) { - - this.arrayDirectory = arrayDirectory; - return this; - } - - /** - * Get arrayDirectory - * @return arrayDirectory - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArrayDirectory getArrayDirectory() { - return arrayDirectory; - } - - - public void setArrayDirectory(ArrayDirectory arrayDirectory) { - this.arrayDirectory = arrayDirectory; - } - - - public Array fragmentMetadataAll(List fragmentMetadataAll) { - - this.fragmentMetadataAll = fragmentMetadataAll; - return this; - } - - public Array addFragmentMetadataAllItem(FragmentMetadata fragmentMetadataAllItem) { - if (this.fragmentMetadataAll == null) { - this.fragmentMetadataAll = new ArrayList<>(); - } - this.fragmentMetadataAll.add(fragmentMetadataAllItem); - return this; - } - - /** - * metadata for all fragments (for reads) - * @return fragmentMetadataAll - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "metadata for all fragments (for reads)") - - public List getFragmentMetadataAll() { - return fragmentMetadataAll; - } - - - public void setFragmentMetadataAll(List fragmentMetadataAll) { - this.fragmentMetadataAll = fragmentMetadataAll; - } - - - public Array openedAtEndTimestamp(BigDecimal openedAtEndTimestamp) { - - this.openedAtEndTimestamp = openedAtEndTimestamp; - return this; - } - - /** - * The ending timestamp that the array was last opened at - * @return openedAtEndTimestamp - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The ending timestamp that the array was last opened at") - - public BigDecimal getOpenedAtEndTimestamp() { - return openedAtEndTimestamp; - } - - - public void setOpenedAtEndTimestamp(BigDecimal openedAtEndTimestamp) { - this.openedAtEndTimestamp = openedAtEndTimestamp; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Array putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Array array = (Array) o; - return Objects.equals(this.queryType, array.queryType) && - Objects.equals(this.uri, array.uri) && - Objects.equals(this.endTimestamp, array.endTimestamp) && - Objects.equals(this.startTimestamp, array.startTimestamp) && - Objects.equals(this.arraySchemaLatest, array.arraySchemaLatest) && - Objects.equals(this.arraySchemasAll, array.arraySchemasAll) && - Objects.equals(this.arrayMetadata, array.arrayMetadata) && - Objects.equals(this.nonEmptyDomain, array.nonEmptyDomain) && - Objects.equals(this.arrayDirectory, array.arrayDirectory) && - Objects.equals(this.fragmentMetadataAll, array.fragmentMetadataAll) && - Objects.equals(this.openedAtEndTimestamp, array.openedAtEndTimestamp)&& - Objects.equals(this.additionalProperties, array.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(queryType, uri, endTimestamp, startTimestamp, arraySchemaLatest, arraySchemasAll, arrayMetadata, nonEmptyDomain, arrayDirectory, fragmentMetadataAll, openedAtEndTimestamp, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Array {\n"); - sb.append(" queryType: ").append(toIndentedString(queryType)).append("\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" endTimestamp: ").append(toIndentedString(endTimestamp)).append("\n"); - sb.append(" startTimestamp: ").append(toIndentedString(startTimestamp)).append("\n"); - sb.append(" arraySchemaLatest: ").append(toIndentedString(arraySchemaLatest)).append("\n"); - sb.append(" arraySchemasAll: ").append(toIndentedString(arraySchemasAll)).append("\n"); - sb.append(" arrayMetadata: ").append(toIndentedString(arrayMetadata)).append("\n"); - sb.append(" nonEmptyDomain: ").append(toIndentedString(nonEmptyDomain)).append("\n"); - sb.append(" arrayDirectory: ").append(toIndentedString(arrayDirectory)).append("\n"); - sb.append(" fragmentMetadataAll: ").append(toIndentedString(fragmentMetadataAll)).append("\n"); - sb.append(" openedAtEndTimestamp: ").append(toIndentedString(openedAtEndTimestamp)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("queryType"); - openapiFields.add("uri"); - openapiFields.add("endTimestamp"); - openapiFields.add("startTimestamp"); - openapiFields.add("arraySchemaLatest"); - openapiFields.add("arraySchemasAll"); - openapiFields.add("arrayMetadata"); - openapiFields.add("nonEmptyDomain"); - openapiFields.add("arrayDirectory"); - openapiFields.add("fragmentMetadataAll"); - openapiFields.add("openedAtEndTimestamp"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("queryType"); - openapiRequiredFields.add("uri"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Array - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Array.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Array is not found in the empty JSON string", Array.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Array.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - // validate the optional field `arraySchemaLatest` - if (jsonObj.getAsJsonObject("arraySchemaLatest") != null) { - ArraySchema.validateJsonObject(jsonObj.getAsJsonObject("arraySchemaLatest")); - } - // validate the optional field `arraySchemasAll` - if (jsonObj.getAsJsonObject("arraySchemasAll") != null) { - ArraySchemaMap.validateJsonObject(jsonObj.getAsJsonObject("arraySchemasAll")); - } - // validate the optional field `arrayMetadata` - if (jsonObj.getAsJsonObject("arrayMetadata") != null) { - ArrayMetadata.validateJsonObject(jsonObj.getAsJsonObject("arrayMetadata")); - } - // validate the optional field `nonEmptyDomain` - if (jsonObj.getAsJsonObject("nonEmptyDomain") != null) { - NonEmptyDomainList.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); - } - // validate the optional field `arrayDirectory` - if (jsonObj.getAsJsonObject("arrayDirectory") != null) { - ArrayDirectory.validateJsonObject(jsonObj.getAsJsonObject("arrayDirectory")); - } - JsonArray jsonArrayfragmentMetadataAll = jsonObj.getAsJsonArray("fragmentMetadataAll"); - if (jsonArrayfragmentMetadataAll != null) { - // ensure the json data is an array - if (!jsonObj.get("fragmentMetadataAll").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentMetadataAll` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMetadataAll").toString())); - } - - // validate the optional field `fragmentMetadataAll` (array) - for (int i = 0; i < jsonArrayfragmentMetadataAll.size(); i++) { - FragmentMetadata.validateJsonObject(jsonArrayfragmentMetadataAll.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Array.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Array' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Array.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Array value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Array read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Array instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Array given an JSON string - * - * @param jsonString JSON string - * @return An instance of Array - * @throws IOException if the JSON string is invalid with respect to Array - */ - public static Array fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Array.class); - } - - /** - * Convert an instance of Array to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLog.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLog.java deleted file mode 100644 index 975f72f..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLog.java +++ /dev/null @@ -1,518 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.time.OffsetDateTime; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Activity of an Array - */ -@ApiModel(description = "Activity of an Array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArrayActivityLog { - public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; - @SerializedName(SERIALIZED_NAME_EVENT_AT) - private OffsetDateTime eventAt; - - public static final String SERIALIZED_NAME_ACTION = "action"; - @SerializedName(SERIALIZED_NAME_ACTION) - private ActivityEventType action; - - public static final String SERIALIZED_NAME_USERNAME = "username"; - @SerializedName(SERIALIZED_NAME_USERNAME) - private String username; - - public static final String SERIALIZED_NAME_BYTES_SENT = "bytes_sent"; - @SerializedName(SERIALIZED_NAME_BYTES_SENT) - private Integer bytesSent; - - public static final String SERIALIZED_NAME_BYTES_RECEIVED = "bytes_received"; - @SerializedName(SERIALIZED_NAME_BYTES_RECEIVED) - private Integer bytesReceived; - - public static final String SERIALIZED_NAME_ARRAY_TASK_ID = "array_task_id"; - @SerializedName(SERIALIZED_NAME_ARRAY_TASK_ID) - private String arrayTaskId; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; - @SerializedName(SERIALIZED_NAME_QUERY_RANGES) - private String queryRanges; - - public static final String SERIALIZED_NAME_QUERY_STATS = "query_stats"; - @SerializedName(SERIALIZED_NAME_QUERY_STATS) - private String queryStats; - - public ArrayActivityLog() { - } - - public ArrayActivityLog eventAt(OffsetDateTime eventAt) { - - this.eventAt = eventAt; - return this; - } - - /** - * time event took place (RFC3339) - * @return eventAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "time event took place (RFC3339)") - - public OffsetDateTime getEventAt() { - return eventAt; - } - - - public void setEventAt(OffsetDateTime eventAt) { - this.eventAt = eventAt; - } - - - public ArrayActivityLog action(ActivityEventType action) { - - this.action = action; - return this; - } - - /** - * Get action - * @return action - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ActivityEventType getAction() { - return action; - } - - - public void setAction(ActivityEventType action) { - this.action = action; - } - - - public ArrayActivityLog username(String username) { - - this.username = username; - return this; - } - - /** - * User who performed action - * @return username - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "user1", value = "User who performed action") - - public String getUsername() { - return username; - } - - - public void setUsername(String username) { - this.username = username; - } - - - public ArrayActivityLog bytesSent(Integer bytesSent) { - - this.bytesSent = bytesSent; - return this; - } - - /** - * Bytes sent to client - * @return bytesSent - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "Bytes sent to client") - - public Integer getBytesSent() { - return bytesSent; - } - - - public void setBytesSent(Integer bytesSent) { - this.bytesSent = bytesSent; - } - - - public ArrayActivityLog bytesReceived(Integer bytesReceived) { - - this.bytesReceived = bytesReceived; - return this; - } - - /** - * Bytes recieved from client - * @return bytesReceived - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "Bytes recieved from client") - - public Integer getBytesReceived() { - return bytesReceived; - } - - - public void setBytesReceived(Integer bytesReceived) { - this.bytesReceived = bytesReceived; - } - - - public ArrayActivityLog arrayTaskId(String arrayTaskId) { - - this.arrayTaskId = arrayTaskId; - return this; - } - - /** - * uuid of associated array task - * @return arrayTaskId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "uuid of associated array task") - - public String getArrayTaskId() { - return arrayTaskId; - } - - - public void setArrayTaskId(String arrayTaskId) { - this.arrayTaskId = arrayTaskId; - } - - - public ArrayActivityLog id(String id) { - - this.id = id; - return this; - } - - /** - * id of the activity - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "id of the activity") - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public ArrayActivityLog queryRanges(String queryRanges) { - - this.queryRanges = queryRanges; - return this; - } - - /** - * ranges for query - * @return queryRanges - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}", value = "ranges for query") - - public String getQueryRanges() { - return queryRanges; - } - - - public void setQueryRanges(String queryRanges) { - this.queryRanges = queryRanges; - } - - - public ArrayActivityLog queryStats(String queryStats) { - - this.queryStats = queryStats; - return this; - } - - /** - * stats for query - * @return queryStats - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\": 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\": 191, \"...\": \"...\"}}", value = "stats for query") - - public String getQueryStats() { - return queryStats; - } - - - public void setQueryStats(String queryStats) { - this.queryStats = queryStats; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArrayActivityLog putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayActivityLog arrayActivityLog = (ArrayActivityLog) o; - return Objects.equals(this.eventAt, arrayActivityLog.eventAt) && - Objects.equals(this.action, arrayActivityLog.action) && - Objects.equals(this.username, arrayActivityLog.username) && - Objects.equals(this.bytesSent, arrayActivityLog.bytesSent) && - Objects.equals(this.bytesReceived, arrayActivityLog.bytesReceived) && - Objects.equals(this.arrayTaskId, arrayActivityLog.arrayTaskId) && - Objects.equals(this.id, arrayActivityLog.id) && - Objects.equals(this.queryRanges, arrayActivityLog.queryRanges) && - Objects.equals(this.queryStats, arrayActivityLog.queryStats)&& - Objects.equals(this.additionalProperties, arrayActivityLog.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(eventAt, action, username, bytesSent, bytesReceived, arrayTaskId, id, queryRanges, queryStats, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayActivityLog {\n"); - sb.append(" eventAt: ").append(toIndentedString(eventAt)).append("\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" bytesSent: ").append(toIndentedString(bytesSent)).append("\n"); - sb.append(" bytesReceived: ").append(toIndentedString(bytesReceived)).append("\n"); - sb.append(" arrayTaskId: ").append(toIndentedString(arrayTaskId)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" queryRanges: ").append(toIndentedString(queryRanges)).append("\n"); - sb.append(" queryStats: ").append(toIndentedString(queryStats)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("event_at"); - openapiFields.add("action"); - openapiFields.add("username"); - openapiFields.add("bytes_sent"); - openapiFields.add("bytes_received"); - openapiFields.add("array_task_id"); - openapiFields.add("id"); - openapiFields.add("query_ranges"); - openapiFields.add("query_stats"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayActivityLog - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); - } - if (jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArrayActivityLog.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArrayActivityLog' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArrayActivityLog.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArrayActivityLog value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArrayActivityLog read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArrayActivityLog instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArrayActivityLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayActivityLog - * @throws IOException if the JSON string is invalid with respect to ArrayActivityLog - */ - public static ArrayActivityLog fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArrayActivityLog.class); - } - - /** - * Convert an instance of ArrayActivityLog to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLogData.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLogData.java deleted file mode 100644 index 099ce9b..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayActivityLogData.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Object including array tasks and metadata - */ -@ApiModel(description = "Object including array tasks and metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArrayActivityLogData { - public static final String SERIALIZED_NAME_ACTIVITYLOGS = "activitylogs"; - @SerializedName(SERIALIZED_NAME_ACTIVITYLOGS) - private List activitylogs = null; - - public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; - @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) - private PaginationMetadata paginationMetadata; - - public ArrayActivityLogData() { - } - - public ArrayActivityLogData activitylogs(List activitylogs) { - - this.activitylogs = activitylogs; - return this; - } - - public ArrayActivityLogData addActivitylogsItem(ArrayActivityLog activitylogsItem) { - if (this.activitylogs == null) { - this.activitylogs = new ArrayList<>(); - } - this.activitylogs.add(activitylogsItem); - return this; - } - - /** - * Array ArrayActivityLog - * @return activitylogs - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Array ArrayActivityLog") - - public List getActivitylogs() { - return activitylogs; - } - - - public void setActivitylogs(List activitylogs) { - this.activitylogs = activitylogs; - } - - - public ArrayActivityLogData paginationMetadata(PaginationMetadata paginationMetadata) { - - this.paginationMetadata = paginationMetadata; - return this; - } - - /** - * Get paginationMetadata - * @return paginationMetadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public PaginationMetadata getPaginationMetadata() { - return paginationMetadata; - } - - - public void setPaginationMetadata(PaginationMetadata paginationMetadata) { - this.paginationMetadata = paginationMetadata; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArrayActivityLogData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayActivityLogData arrayActivityLogData = (ArrayActivityLogData) o; - return Objects.equals(this.activitylogs, arrayActivityLogData.activitylogs) && - Objects.equals(this.paginationMetadata, arrayActivityLogData.paginationMetadata)&& - Objects.equals(this.additionalProperties, arrayActivityLogData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(activitylogs, paginationMetadata, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayActivityLogData {\n"); - sb.append(" activitylogs: ").append(toIndentedString(activitylogs)).append("\n"); - sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("activitylogs"); - openapiFields.add("pagination_metadata"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayActivityLogData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayActivityLogData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLogData is not found in the empty JSON string", ArrayActivityLogData.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayactivitylogs = jsonObj.getAsJsonArray("activitylogs"); - if (jsonArrayactivitylogs != null) { - // ensure the json data is an array - if (!jsonObj.get("activitylogs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activitylogs` to be an array in the JSON string but got `%s`", jsonObj.get("activitylogs").toString())); - } - - // validate the optional field `activitylogs` (array) - for (int i = 0; i < jsonArrayactivitylogs.size(); i++) { - ArrayActivityLog.validateJsonObject(jsonArrayactivitylogs.get(i).getAsJsonObject()); - }; - } - // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArrayActivityLogData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArrayActivityLogData' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArrayActivityLogData.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArrayActivityLogData value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArrayActivityLogData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArrayActivityLogData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArrayActivityLogData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayActivityLogData - * @throws IOException if the JSON string is invalid with respect to ArrayActivityLogData - */ - public static ArrayActivityLogData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArrayActivityLogData.class); - } - - /** - * Convert an instance of ArrayActivityLogData to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayDirectory.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayDirectory.java deleted file mode 100644 index 7dac522..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayDirectory.java +++ /dev/null @@ -1,807 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Array directory (for reads) - */ -@ApiModel(description = "Array directory (for reads)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArrayDirectory { - public static final String SERIALIZED_NAME_UNFILTERED_FRAGMENT_URIS = "unfilteredFragmentUris"; - @SerializedName(SERIALIZED_NAME_UNFILTERED_FRAGMENT_URIS) - private List unfilteredFragmentUris = null; - - public static final String SERIALIZED_NAME_CONSOLIDATED_COMMIT_URIS = "consolidatedCommitUris"; - @SerializedName(SERIALIZED_NAME_CONSOLIDATED_COMMIT_URIS) - private List consolidatedCommitUris = null; - - public static final String SERIALIZED_NAME_ARRAY_SCHEMA_URIS = "arraySchemaUris"; - @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_URIS) - private List arraySchemaUris = null; - - public static final String SERIALIZED_NAME_LATEST_ARRAY_SCHEMA_URI = "latestArraySchemaUri"; - @SerializedName(SERIALIZED_NAME_LATEST_ARRAY_SCHEMA_URI) - private String latestArraySchemaUri; - - public static final String SERIALIZED_NAME_ARRAY_META_URIS_TO_VACUUM = "arrayMetaUrisToVacuum"; - @SerializedName(SERIALIZED_NAME_ARRAY_META_URIS_TO_VACUUM) - private List arrayMetaUrisToVacuum = null; - - public static final String SERIALIZED_NAME_ARRAY_META_VAC_URIS_TO_VACUUM = "arrayMetaVacUrisToVacuum"; - @SerializedName(SERIALIZED_NAME_ARRAY_META_VAC_URIS_TO_VACUUM) - private List arrayMetaVacUrisToVacuum = null; - - public static final String SERIALIZED_NAME_COMMIT_URIS_TO_CONSOLIDATE = "commitUrisToConsolidate"; - @SerializedName(SERIALIZED_NAME_COMMIT_URIS_TO_CONSOLIDATE) - private List commitUrisToConsolidate = null; - - public static final String SERIALIZED_NAME_COMMIT_URIS_TO_VACUUM = "commitUrisToVacuum"; - @SerializedName(SERIALIZED_NAME_COMMIT_URIS_TO_VACUUM) - private List commitUrisToVacuum = null; - - public static final String SERIALIZED_NAME_CONSOLIDATED_COMMIT_URIS_TO_VACUUM = "consolidatedCommitUrisToVacuum"; - @SerializedName(SERIALIZED_NAME_CONSOLIDATED_COMMIT_URIS_TO_VACUUM) - private List consolidatedCommitUrisToVacuum = null; - - public static final String SERIALIZED_NAME_FRAGMENT_META_URIS = "fragmentMetaUris"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_META_URIS) - private List fragmentMetaUris = null; - - public static final String SERIALIZED_NAME_TIMESTAMP_START = "timestampStart"; - @SerializedName(SERIALIZED_NAME_TIMESTAMP_START) - private BigDecimal timestampStart; - - public static final String SERIALIZED_NAME_TIMESTAMP_END = "timestampEnd"; - @SerializedName(SERIALIZED_NAME_TIMESTAMP_END) - private BigDecimal timestampEnd; - - public static final String SERIALIZED_NAME_ARRAY_META_URIS = "arrayMetaUris"; - @SerializedName(SERIALIZED_NAME_ARRAY_META_URIS) - private List arrayMetaUris = null; - - public static final String SERIALIZED_NAME_DELETE_AND_UPDATE_TILE_LOCATION = "deleteAndUpdateTileLocation"; - @SerializedName(SERIALIZED_NAME_DELETE_AND_UPDATE_TILE_LOCATION) - private List deleteAndUpdateTileLocation = null; - - public ArrayDirectory() { - } - - public ArrayDirectory unfilteredFragmentUris(List unfilteredFragmentUris) { - - this.unfilteredFragmentUris = unfilteredFragmentUris; - return this; - } - - public ArrayDirectory addUnfilteredFragmentUrisItem(String unfilteredFragmentUrisItem) { - if (this.unfilteredFragmentUris == null) { - this.unfilteredFragmentUris = new ArrayList<>(); - } - this.unfilteredFragmentUris.add(unfilteredFragmentUrisItem); - return this; - } - - /** - * fragment URIs - * @return unfilteredFragmentUris - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fragment URIs") - - public List getUnfilteredFragmentUris() { - return unfilteredFragmentUris; - } - - - public void setUnfilteredFragmentUris(List unfilteredFragmentUris) { - this.unfilteredFragmentUris = unfilteredFragmentUris; - } - - - public ArrayDirectory consolidatedCommitUris(List consolidatedCommitUris) { - - this.consolidatedCommitUris = consolidatedCommitUris; - return this; - } - - public ArrayDirectory addConsolidatedCommitUrisItem(String consolidatedCommitUrisItem) { - if (this.consolidatedCommitUris == null) { - this.consolidatedCommitUris = new ArrayList<>(); - } - this.consolidatedCommitUris.add(consolidatedCommitUrisItem); - return this; - } - - /** - * consolidated commit URI set - * @return consolidatedCommitUris - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "consolidated commit URI set") - - public List getConsolidatedCommitUris() { - return consolidatedCommitUris; - } - - - public void setConsolidatedCommitUris(List consolidatedCommitUris) { - this.consolidatedCommitUris = consolidatedCommitUris; - } - - - public ArrayDirectory arraySchemaUris(List arraySchemaUris) { - - this.arraySchemaUris = arraySchemaUris; - return this; - } - - public ArrayDirectory addArraySchemaUrisItem(String arraySchemaUrisItem) { - if (this.arraySchemaUris == null) { - this.arraySchemaUris = new ArrayList<>(); - } - this.arraySchemaUris.add(arraySchemaUrisItem); - return this; - } - - /** - * URIs of all the array schema files - * @return arraySchemaUris - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "URIs of all the array schema files") - - public List getArraySchemaUris() { - return arraySchemaUris; - } - - - public void setArraySchemaUris(List arraySchemaUris) { - this.arraySchemaUris = arraySchemaUris; - } - - - public ArrayDirectory latestArraySchemaUri(String latestArraySchemaUri) { - - this.latestArraySchemaUri = latestArraySchemaUri; - return this; - } - - /** - * latest array schema URI. - * @return latestArraySchemaUri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "latest array schema URI.") - - public String getLatestArraySchemaUri() { - return latestArraySchemaUri; - } - - - public void setLatestArraySchemaUri(String latestArraySchemaUri) { - this.latestArraySchemaUri = latestArraySchemaUri; - } - - - public ArrayDirectory arrayMetaUrisToVacuum(List arrayMetaUrisToVacuum) { - - this.arrayMetaUrisToVacuum = arrayMetaUrisToVacuum; - return this; - } - - public ArrayDirectory addArrayMetaUrisToVacuumItem(String arrayMetaUrisToVacuumItem) { - if (this.arrayMetaUrisToVacuum == null) { - this.arrayMetaUrisToVacuum = new ArrayList<>(); - } - this.arrayMetaUrisToVacuum.add(arrayMetaUrisToVacuumItem); - return this; - } - - /** - * the array metadata files to vacuum - * @return arrayMetaUrisToVacuum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the array metadata files to vacuum") - - public List getArrayMetaUrisToVacuum() { - return arrayMetaUrisToVacuum; - } - - - public void setArrayMetaUrisToVacuum(List arrayMetaUrisToVacuum) { - this.arrayMetaUrisToVacuum = arrayMetaUrisToVacuum; - } - - - public ArrayDirectory arrayMetaVacUrisToVacuum(List arrayMetaVacUrisToVacuum) { - - this.arrayMetaVacUrisToVacuum = arrayMetaVacUrisToVacuum; - return this; - } - - public ArrayDirectory addArrayMetaVacUrisToVacuumItem(String arrayMetaVacUrisToVacuumItem) { - if (this.arrayMetaVacUrisToVacuum == null) { - this.arrayMetaVacUrisToVacuum = new ArrayList<>(); - } - this.arrayMetaVacUrisToVacuum.add(arrayMetaVacUrisToVacuumItem); - return this; - } - - /** - * the array metadata vac files to vacuum - * @return arrayMetaVacUrisToVacuum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the array metadata vac files to vacuum") - - public List getArrayMetaVacUrisToVacuum() { - return arrayMetaVacUrisToVacuum; - } - - - public void setArrayMetaVacUrisToVacuum(List arrayMetaVacUrisToVacuum) { - this.arrayMetaVacUrisToVacuum = arrayMetaVacUrisToVacuum; - } - - - public ArrayDirectory commitUrisToConsolidate(List commitUrisToConsolidate) { - - this.commitUrisToConsolidate = commitUrisToConsolidate; - return this; - } - - public ArrayDirectory addCommitUrisToConsolidateItem(String commitUrisToConsolidateItem) { - if (this.commitUrisToConsolidate == null) { - this.commitUrisToConsolidate = new ArrayList<>(); - } - this.commitUrisToConsolidate.add(commitUrisToConsolidateItem); - return this; - } - - /** - * the commit files to consolidate - * @return commitUrisToConsolidate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the commit files to consolidate") - - public List getCommitUrisToConsolidate() { - return commitUrisToConsolidate; - } - - - public void setCommitUrisToConsolidate(List commitUrisToConsolidate) { - this.commitUrisToConsolidate = commitUrisToConsolidate; - } - - - public ArrayDirectory commitUrisToVacuum(List commitUrisToVacuum) { - - this.commitUrisToVacuum = commitUrisToVacuum; - return this; - } - - public ArrayDirectory addCommitUrisToVacuumItem(String commitUrisToVacuumItem) { - if (this.commitUrisToVacuum == null) { - this.commitUrisToVacuum = new ArrayList<>(); - } - this.commitUrisToVacuum.add(commitUrisToVacuumItem); - return this; - } - - /** - * the commit files to vacuum - * @return commitUrisToVacuum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the commit files to vacuum") - - public List getCommitUrisToVacuum() { - return commitUrisToVacuum; - } - - - public void setCommitUrisToVacuum(List commitUrisToVacuum) { - this.commitUrisToVacuum = commitUrisToVacuum; - } - - - public ArrayDirectory consolidatedCommitUrisToVacuum(List consolidatedCommitUrisToVacuum) { - - this.consolidatedCommitUrisToVacuum = consolidatedCommitUrisToVacuum; - return this; - } - - public ArrayDirectory addConsolidatedCommitUrisToVacuumItem(String consolidatedCommitUrisToVacuumItem) { - if (this.consolidatedCommitUrisToVacuum == null) { - this.consolidatedCommitUrisToVacuum = new ArrayList<>(); - } - this.consolidatedCommitUrisToVacuum.add(consolidatedCommitUrisToVacuumItem); - return this; - } - - /** - * the consolidated commit files to vacuum - * @return consolidatedCommitUrisToVacuum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the consolidated commit files to vacuum") - - public List getConsolidatedCommitUrisToVacuum() { - return consolidatedCommitUrisToVacuum; - } - - - public void setConsolidatedCommitUrisToVacuum(List consolidatedCommitUrisToVacuum) { - this.consolidatedCommitUrisToVacuum = consolidatedCommitUrisToVacuum; - } - - - public ArrayDirectory fragmentMetaUris(List fragmentMetaUris) { - - this.fragmentMetaUris = fragmentMetaUris; - return this; - } - - public ArrayDirectory addFragmentMetaUrisItem(String fragmentMetaUrisItem) { - if (this.fragmentMetaUris == null) { - this.fragmentMetaUris = new ArrayList<>(); - } - this.fragmentMetaUris.add(fragmentMetaUrisItem); - return this; - } - - /** - * the URIs of the consolidated fragment metadata files - * @return fragmentMetaUris - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the URIs of the consolidated fragment metadata files") - - public List getFragmentMetaUris() { - return fragmentMetaUris; - } - - - public void setFragmentMetaUris(List fragmentMetaUris) { - this.fragmentMetaUris = fragmentMetaUris; - } - - - public ArrayDirectory timestampStart(BigDecimal timestampStart) { - - this.timestampStart = timestampStart; - return this; - } - - /** - * Only the files created after timestamp_start are listed - * @return timestampStart - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Only the files created after timestamp_start are listed") - - public BigDecimal getTimestampStart() { - return timestampStart; - } - - - public void setTimestampStart(BigDecimal timestampStart) { - this.timestampStart = timestampStart; - } - - - public ArrayDirectory timestampEnd(BigDecimal timestampEnd) { - - this.timestampEnd = timestampEnd; - return this; - } - - /** - * Only the files created before timestamp_end are listed - * @return timestampEnd - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Only the files created before timestamp_end are listed") - - public BigDecimal getTimestampEnd() { - return timestampEnd; - } - - - public void setTimestampEnd(BigDecimal timestampEnd) { - this.timestampEnd = timestampEnd; - } - - - public ArrayDirectory arrayMetaUris(List arrayMetaUris) { - - this.arrayMetaUris = arrayMetaUris; - return this; - } - - public ArrayDirectory addArrayMetaUrisItem(TimestampedURI arrayMetaUrisItem) { - if (this.arrayMetaUris == null) { - this.arrayMetaUris = new ArrayList<>(); - } - this.arrayMetaUris.add(arrayMetaUrisItem); - return this; - } - - /** - * the timestamped filtered array metadata URIs, after removing the ones that need to be vacuumed and those that do not fall within - * @return arrayMetaUris - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the timestamped filtered array metadata URIs, after removing the ones that need to be vacuumed and those that do not fall within") - - public List getArrayMetaUris() { - return arrayMetaUris; - } - - - public void setArrayMetaUris(List arrayMetaUris) { - this.arrayMetaUris = arrayMetaUris; - } - - - public ArrayDirectory deleteAndUpdateTileLocation(List deleteAndUpdateTileLocation) { - - this.deleteAndUpdateTileLocation = deleteAndUpdateTileLocation; - return this; - } - - public ArrayDirectory addDeleteAndUpdateTileLocationItem(DeleteAndUpdateTileLocation deleteAndUpdateTileLocationItem) { - if (this.deleteAndUpdateTileLocation == null) { - this.deleteAndUpdateTileLocation = new ArrayList<>(); - } - this.deleteAndUpdateTileLocation.add(deleteAndUpdateTileLocationItem); - return this; - } - - /** - * the location of delete tiles - * @return deleteAndUpdateTileLocation - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the location of delete tiles") - - public List getDeleteAndUpdateTileLocation() { - return deleteAndUpdateTileLocation; - } - - - public void setDeleteAndUpdateTileLocation(List deleteAndUpdateTileLocation) { - this.deleteAndUpdateTileLocation = deleteAndUpdateTileLocation; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArrayDirectory putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayDirectory arrayDirectory = (ArrayDirectory) o; - return Objects.equals(this.unfilteredFragmentUris, arrayDirectory.unfilteredFragmentUris) && - Objects.equals(this.consolidatedCommitUris, arrayDirectory.consolidatedCommitUris) && - Objects.equals(this.arraySchemaUris, arrayDirectory.arraySchemaUris) && - Objects.equals(this.latestArraySchemaUri, arrayDirectory.latestArraySchemaUri) && - Objects.equals(this.arrayMetaUrisToVacuum, arrayDirectory.arrayMetaUrisToVacuum) && - Objects.equals(this.arrayMetaVacUrisToVacuum, arrayDirectory.arrayMetaVacUrisToVacuum) && - Objects.equals(this.commitUrisToConsolidate, arrayDirectory.commitUrisToConsolidate) && - Objects.equals(this.commitUrisToVacuum, arrayDirectory.commitUrisToVacuum) && - Objects.equals(this.consolidatedCommitUrisToVacuum, arrayDirectory.consolidatedCommitUrisToVacuum) && - Objects.equals(this.fragmentMetaUris, arrayDirectory.fragmentMetaUris) && - Objects.equals(this.timestampStart, arrayDirectory.timestampStart) && - Objects.equals(this.timestampEnd, arrayDirectory.timestampEnd) && - Objects.equals(this.arrayMetaUris, arrayDirectory.arrayMetaUris) && - Objects.equals(this.deleteAndUpdateTileLocation, arrayDirectory.deleteAndUpdateTileLocation)&& - Objects.equals(this.additionalProperties, arrayDirectory.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(unfilteredFragmentUris, consolidatedCommitUris, arraySchemaUris, latestArraySchemaUri, arrayMetaUrisToVacuum, arrayMetaVacUrisToVacuum, commitUrisToConsolidate, commitUrisToVacuum, consolidatedCommitUrisToVacuum, fragmentMetaUris, timestampStart, timestampEnd, arrayMetaUris, deleteAndUpdateTileLocation, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayDirectory {\n"); - sb.append(" unfilteredFragmentUris: ").append(toIndentedString(unfilteredFragmentUris)).append("\n"); - sb.append(" consolidatedCommitUris: ").append(toIndentedString(consolidatedCommitUris)).append("\n"); - sb.append(" arraySchemaUris: ").append(toIndentedString(arraySchemaUris)).append("\n"); - sb.append(" latestArraySchemaUri: ").append(toIndentedString(latestArraySchemaUri)).append("\n"); - sb.append(" arrayMetaUrisToVacuum: ").append(toIndentedString(arrayMetaUrisToVacuum)).append("\n"); - sb.append(" arrayMetaVacUrisToVacuum: ").append(toIndentedString(arrayMetaVacUrisToVacuum)).append("\n"); - sb.append(" commitUrisToConsolidate: ").append(toIndentedString(commitUrisToConsolidate)).append("\n"); - sb.append(" commitUrisToVacuum: ").append(toIndentedString(commitUrisToVacuum)).append("\n"); - sb.append(" consolidatedCommitUrisToVacuum: ").append(toIndentedString(consolidatedCommitUrisToVacuum)).append("\n"); - sb.append(" fragmentMetaUris: ").append(toIndentedString(fragmentMetaUris)).append("\n"); - sb.append(" timestampStart: ").append(toIndentedString(timestampStart)).append("\n"); - sb.append(" timestampEnd: ").append(toIndentedString(timestampEnd)).append("\n"); - sb.append(" arrayMetaUris: ").append(toIndentedString(arrayMetaUris)).append("\n"); - sb.append(" deleteAndUpdateTileLocation: ").append(toIndentedString(deleteAndUpdateTileLocation)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("unfilteredFragmentUris"); - openapiFields.add("consolidatedCommitUris"); - openapiFields.add("arraySchemaUris"); - openapiFields.add("latestArraySchemaUri"); - openapiFields.add("arrayMetaUrisToVacuum"); - openapiFields.add("arrayMetaVacUrisToVacuum"); - openapiFields.add("commitUrisToConsolidate"); - openapiFields.add("commitUrisToVacuum"); - openapiFields.add("consolidatedCommitUrisToVacuum"); - openapiFields.add("fragmentMetaUris"); - openapiFields.add("timestampStart"); - openapiFields.add("timestampEnd"); - openapiFields.add("arrayMetaUris"); - openapiFields.add("deleteAndUpdateTileLocation"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayDirectory - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayDirectory.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayDirectory is not found in the empty JSON string", ArrayDirectory.openapiRequiredFields.toString())); - } - } - // ensure the json data is an array - if (jsonObj.get("unfilteredFragmentUris") != null && !jsonObj.get("unfilteredFragmentUris").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `unfilteredFragmentUris` to be an array in the JSON string but got `%s`", jsonObj.get("unfilteredFragmentUris").toString())); - } - // ensure the json data is an array - if (jsonObj.get("consolidatedCommitUris") != null && !jsonObj.get("consolidatedCommitUris").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `consolidatedCommitUris` to be an array in the JSON string but got `%s`", jsonObj.get("consolidatedCommitUris").toString())); - } - // ensure the json data is an array - if (jsonObj.get("arraySchemaUris") != null && !jsonObj.get("arraySchemaUris").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arraySchemaUris` to be an array in the JSON string but got `%s`", jsonObj.get("arraySchemaUris").toString())); - } - if (jsonObj.get("latestArraySchemaUri") != null && !jsonObj.get("latestArraySchemaUri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `latestArraySchemaUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("latestArraySchemaUri").toString())); - } - // ensure the json data is an array - if (jsonObj.get("arrayMetaUrisToVacuum") != null && !jsonObj.get("arrayMetaUrisToVacuum").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrayMetaUrisToVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("arrayMetaUrisToVacuum").toString())); - } - // ensure the json data is an array - if (jsonObj.get("arrayMetaVacUrisToVacuum") != null && !jsonObj.get("arrayMetaVacUrisToVacuum").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrayMetaVacUrisToVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("arrayMetaVacUrisToVacuum").toString())); - } - // ensure the json data is an array - if (jsonObj.get("commitUrisToConsolidate") != null && !jsonObj.get("commitUrisToConsolidate").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `commitUrisToConsolidate` to be an array in the JSON string but got `%s`", jsonObj.get("commitUrisToConsolidate").toString())); - } - // ensure the json data is an array - if (jsonObj.get("commitUrisToVacuum") != null && !jsonObj.get("commitUrisToVacuum").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `commitUrisToVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("commitUrisToVacuum").toString())); - } - // ensure the json data is an array - if (jsonObj.get("consolidatedCommitUrisToVacuum") != null && !jsonObj.get("consolidatedCommitUrisToVacuum").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `consolidatedCommitUrisToVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("consolidatedCommitUrisToVacuum").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fragmentMetaUris") != null && !jsonObj.get("fragmentMetaUris").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentMetaUris` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMetaUris").toString())); - } - JsonArray jsonArrayarrayMetaUris = jsonObj.getAsJsonArray("arrayMetaUris"); - if (jsonArrayarrayMetaUris != null) { - // ensure the json data is an array - if (!jsonObj.get("arrayMetaUris").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrayMetaUris` to be an array in the JSON string but got `%s`", jsonObj.get("arrayMetaUris").toString())); - } - - // validate the optional field `arrayMetaUris` (array) - for (int i = 0; i < jsonArrayarrayMetaUris.size(); i++) { - TimestampedURI.validateJsonObject(jsonArrayarrayMetaUris.get(i).getAsJsonObject()); - }; - } - JsonArray jsonArraydeleteAndUpdateTileLocation = jsonObj.getAsJsonArray("deleteAndUpdateTileLocation"); - if (jsonArraydeleteAndUpdateTileLocation != null) { - // ensure the json data is an array - if (!jsonObj.get("deleteAndUpdateTileLocation").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `deleteAndUpdateTileLocation` to be an array in the JSON string but got `%s`", jsonObj.get("deleteAndUpdateTileLocation").toString())); - } - - // validate the optional field `deleteAndUpdateTileLocation` (array) - for (int i = 0; i < jsonArraydeleteAndUpdateTileLocation.size(); i++) { - DeleteAndUpdateTileLocation.validateJsonObject(jsonArraydeleteAndUpdateTileLocation.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArrayDirectory.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArrayDirectory' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArrayDirectory.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArrayDirectory value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArrayDirectory read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArrayDirectory instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArrayDirectory given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayDirectory - * @throws IOException if the JSON string is invalid with respect to ArrayDirectory - */ - public static ArrayDirectory fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArrayDirectory.class); - } - - /** - * Convert an instance of ArrayDirectory to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayFetch.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayFetch.java deleted file mode 100644 index 26fb764..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayFetch.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Model for opening an array v2 - */ -@ApiModel(description = "Model for opening an array v2") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArrayFetch { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public static final String SERIALIZED_NAME_QUERY_TYPE = "queryType"; - @SerializedName(SERIALIZED_NAME_QUERY_TYPE) - private Querytype queryType; - - public ArrayFetch() { - } - - public ArrayFetch config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - - public ArrayFetch queryType(Querytype queryType) { - - this.queryType = queryType; - return this; - } - - /** - * Get queryType - * @return queryType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Querytype getQueryType() { - return queryType; - } - - - public void setQueryType(Querytype queryType) { - this.queryType = queryType; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArrayFetch putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayFetch arrayFetch = (ArrayFetch) o; - return Objects.equals(this.config, arrayFetch.config) && - Objects.equals(this.queryType, arrayFetch.queryType)&& - Objects.equals(this.additionalProperties, arrayFetch.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, queryType, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayFetch {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" queryType: ").append(toIndentedString(queryType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("queryType"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayFetch - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayFetch.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFetch is not found in the empty JSON string", ArrayFetch.openapiRequiredFields.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArrayFetch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArrayFetch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArrayFetch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArrayFetch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArrayFetch read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArrayFetch instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArrayFetch given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayFetch - * @throws IOException if the JSON string is invalid with respect to ArrayFetch - */ - public static ArrayFetch fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArrayFetch.class); - } - - /** - * Convert an instance of ArrayFetch to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadata.java deleted file mode 100644 index 1695d7c..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadata.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * user's TileDB array metadata - */ -@ApiModel(description = "user's TileDB array metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArrayMetadata { - public static final String SERIALIZED_NAME_ENTRIES = "entries"; - @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; - - public ArrayMetadata() { - } - - public ArrayMetadata entries(List entries) { - - this.entries = entries; - return this; - } - - public ArrayMetadata addEntriesItem(ArrayMetadataEntry entriesItem) { - if (this.entries == null) { - this.entries = new ArrayList<>(); - } - this.entries.add(entriesItem); - return this; - } - - /** - * List of metadata entries - * @return entries - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of metadata entries") - - public List getEntries() { - return entries; - } - - - public void setEntries(List entries) { - this.entries = entries; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArrayMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayMetadata arrayMetadata = (ArrayMetadata) o; - return Objects.equals(this.entries, arrayMetadata.entries)&& - Objects.equals(this.additionalProperties, arrayMetadata.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(entries, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayMetadata {\n"); - sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("entries"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadata is not found in the empty JSON string", ArrayMetadata.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - ArrayMetadataEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArrayMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArrayMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArrayMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArrayMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArrayMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArrayMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArrayMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayMetadata - * @throws IOException if the JSON string is invalid with respect to ArrayMetadata - */ - public static ArrayMetadata fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArrayMetadata.class); - } - - /** - * Convert an instance of ArrayMetadata to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadataEntry.java deleted file mode 100644 index 86adca5..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayMetadataEntry.java +++ /dev/null @@ -1,402 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * key/value pair representing an array metadata map entry - */ -@ApiModel(description = "key/value pair representing an array metadata map entry") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArrayMetadataEntry { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_VALUE_NUM = "valueNum"; - @SerializedName(SERIALIZED_NAME_VALUE_NUM) - private Integer valueNum; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private List value = null; - - public static final String SERIALIZED_NAME_DEL = "del"; - @SerializedName(SERIALIZED_NAME_DEL) - private Boolean del; - - public ArrayMetadataEntry() { - } - - public ArrayMetadataEntry key(String key) { - - this.key = key; - return this; - } - - /** - * Get key - * @return key - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getKey() { - return key; - } - - - public void setKey(String key) { - this.key = key; - } - - - public ArrayMetadataEntry type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public ArrayMetadataEntry valueNum(Integer valueNum) { - - this.valueNum = valueNum; - return this; - } - - /** - * Get valueNum - * @return valueNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getValueNum() { - return valueNum; - } - - - public void setValueNum(Integer valueNum) { - this.valueNum = valueNum; - } - - - public ArrayMetadataEntry value(List value) { - - this.value = value; - return this; - } - - public ArrayMetadataEntry addValueItem(Integer valueItem) { - if (this.value == null) { - this.value = new ArrayList<>(); - } - this.value.add(valueItem); - return this; - } - - /** - * Get value - * @return value - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getValue() { - return value; - } - - - public void setValue(List value) { - this.value = value; - } - - - public ArrayMetadataEntry del(Boolean del) { - - this.del = del; - return this; - } - - /** - * Get del - * @return del - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getDel() { - return del; - } - - - public void setDel(Boolean del) { - this.del = del; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayMetadataEntry arrayMetadataEntry = (ArrayMetadataEntry) o; - return Objects.equals(this.key, arrayMetadataEntry.key) && - Objects.equals(this.type, arrayMetadataEntry.type) && - Objects.equals(this.valueNum, arrayMetadataEntry.valueNum) && - Objects.equals(this.value, arrayMetadataEntry.value) && - Objects.equals(this.del, arrayMetadataEntry.del)&& - Objects.equals(this.additionalProperties, arrayMetadataEntry.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(key, type, valueNum, value, del, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayMetadataEntry {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" valueNum: ").append(toIndentedString(valueNum)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" del: ").append(toIndentedString(del)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("type"); - openapiFields.add("valueNum"); - openapiFields.add("value"); - openapiFields.add("del"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayMetadataEntry - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayMetadataEntry.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadataEntry is not found in the empty JSON string", ArrayMetadataEntry.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // ensure the json data is an array - if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be an array in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArrayMetadataEntry.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArrayMetadataEntry' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArrayMetadataEntry.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArrayMetadataEntry read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArrayMetadataEntry instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArrayMetadataEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayMetadataEntry - * @throws IOException if the JSON string is invalid with respect to ArrayMetadataEntry - */ - public static ArrayMetadataEntry fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArrayMetadataEntry.class); - } - - /** - * Convert an instance of ArrayMetadataEntry to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchema.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchema.java deleted file mode 100644 index 294ea59..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchema.java +++ /dev/null @@ -1,731 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * ArraySchema during creation or retrieval - */ -@ApiModel(description = "ArraySchema during creation or retrieval") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArraySchema { - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) - private List version = new ArrayList<>(); - - public static final String SERIALIZED_NAME_ARRAY_TYPE = "arrayType"; - @SerializedName(SERIALIZED_NAME_ARRAY_TYPE) - private ArrayType arrayType; - - public static final String SERIALIZED_NAME_TILE_ORDER = "tileOrder"; - @SerializedName(SERIALIZED_NAME_TILE_ORDER) - private Layout tileOrder; - - public static final String SERIALIZED_NAME_CELL_ORDER = "cellOrder"; - @SerializedName(SERIALIZED_NAME_CELL_ORDER) - private Layout cellOrder; - - public static final String SERIALIZED_NAME_CAPACITY = "capacity"; - @SerializedName(SERIALIZED_NAME_CAPACITY) - private Integer capacity; - - public static final String SERIALIZED_NAME_COORDS_FILTER_PIPELINE = "coordsFilterPipeline"; - @SerializedName(SERIALIZED_NAME_COORDS_FILTER_PIPELINE) - private FilterPipeline coordsFilterPipeline; - - public static final String SERIALIZED_NAME_OFFSET_FILTER_PIPELINE = "offsetFilterPipeline"; - @SerializedName(SERIALIZED_NAME_OFFSET_FILTER_PIPELINE) - private FilterPipeline offsetFilterPipeline; - - public static final String SERIALIZED_NAME_VALIDITY_FILTER_PIPELINE = "validityFilterPipeline"; - @SerializedName(SERIALIZED_NAME_VALIDITY_FILTER_PIPELINE) - private FilterPipeline validityFilterPipeline; - - public static final String SERIALIZED_NAME_DOMAIN = "domain"; - @SerializedName(SERIALIZED_NAME_DOMAIN) - private Domain domain; - - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private List attributes = new ArrayList<>(); - - public static final String SERIALIZED_NAME_ALLOWS_DUPLICATES = "allowsDuplicates"; - @SerializedName(SERIALIZED_NAME_ALLOWS_DUPLICATES) - private Boolean allowsDuplicates; - - public static final String SERIALIZED_NAME_TIMESTAMP_RANGE = "timestampRange"; - @SerializedName(SERIALIZED_NAME_TIMESTAMP_RANGE) - private List timestampRange = null; - - public ArraySchema() { - } - - public ArraySchema uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * URI of schema - * @return uri - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "s3:///test_array", value = "URI of schema") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public ArraySchema name(String name) { - - this.name = name; - return this; - } - - /** - * name of schema - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "name of schema") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public ArraySchema version(List version) { - - this.version = version; - return this; - } - - public ArraySchema addVersionItem(Integer versionItem) { - this.version.add(versionItem); - return this; - } - - /** - * file format version - * @return version - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "[1, 3, 0]", required = true, value = "file format version") - - public List getVersion() { - return version; - } - - - public void setVersion(List version) { - this.version = version; - } - - - public ArraySchema arrayType(ArrayType arrayType) { - - this.arrayType = arrayType; - return this; - } - - /** - * Get arrayType - * @return arrayType - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public ArrayType getArrayType() { - return arrayType; - } - - - public void setArrayType(ArrayType arrayType) { - this.arrayType = arrayType; - } - - - public ArraySchema tileOrder(Layout tileOrder) { - - this.tileOrder = tileOrder; - return this; - } - - /** - * Get tileOrder - * @return tileOrder - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Layout getTileOrder() { - return tileOrder; - } - - - public void setTileOrder(Layout tileOrder) { - this.tileOrder = tileOrder; - } - - - public ArraySchema cellOrder(Layout cellOrder) { - - this.cellOrder = cellOrder; - return this; - } - - /** - * Get cellOrder - * @return cellOrder - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Layout getCellOrder() { - return cellOrder; - } - - - public void setCellOrder(Layout cellOrder) { - this.cellOrder = cellOrder; - } - - - public ArraySchema capacity(Integer capacity) { - - this.capacity = capacity; - return this; - } - - /** - * Capacity of array - * @return capacity - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "100000", required = true, value = "Capacity of array") - - public Integer getCapacity() { - return capacity; - } - - - public void setCapacity(Integer capacity) { - this.capacity = capacity; - } - - - public ArraySchema coordsFilterPipeline(FilterPipeline coordsFilterPipeline) { - - this.coordsFilterPipeline = coordsFilterPipeline; - return this; - } - - /** - * Get coordsFilterPipeline - * @return coordsFilterPipeline - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public FilterPipeline getCoordsFilterPipeline() { - return coordsFilterPipeline; - } - - - public void setCoordsFilterPipeline(FilterPipeline coordsFilterPipeline) { - this.coordsFilterPipeline = coordsFilterPipeline; - } - - - public ArraySchema offsetFilterPipeline(FilterPipeline offsetFilterPipeline) { - - this.offsetFilterPipeline = offsetFilterPipeline; - return this; - } - - /** - * Get offsetFilterPipeline - * @return offsetFilterPipeline - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public FilterPipeline getOffsetFilterPipeline() { - return offsetFilterPipeline; - } - - - public void setOffsetFilterPipeline(FilterPipeline offsetFilterPipeline) { - this.offsetFilterPipeline = offsetFilterPipeline; - } - - - public ArraySchema validityFilterPipeline(FilterPipeline validityFilterPipeline) { - - this.validityFilterPipeline = validityFilterPipeline; - return this; - } - - /** - * Get validityFilterPipeline - * @return validityFilterPipeline - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public FilterPipeline getValidityFilterPipeline() { - return validityFilterPipeline; - } - - - public void setValidityFilterPipeline(FilterPipeline validityFilterPipeline) { - this.validityFilterPipeline = validityFilterPipeline; - } - - - public ArraySchema domain(Domain domain) { - - this.domain = domain; - return this; - } - - /** - * Get domain - * @return domain - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Domain getDomain() { - return domain; - } - - - public void setDomain(Domain domain) { - this.domain = domain; - } - - - public ArraySchema attributes(List attributes) { - - this.attributes = attributes; - return this; - } - - public ArraySchema addAttributesItem(Attribute attributesItem) { - this.attributes.add(attributesItem); - return this; - } - - /** - * Attributes of array - * @return attributes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Attributes of array") - - public List getAttributes() { - return attributes; - } - - - public void setAttributes(List attributes) { - this.attributes = attributes; - } - - - public ArraySchema allowsDuplicates(Boolean allowsDuplicates) { - - this.allowsDuplicates = allowsDuplicates; - return this; - } - - /** - * True if the array allows coordinate duplicates. Applicable only to sparse arrays. - * @return allowsDuplicates - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the array allows coordinate duplicates. Applicable only to sparse arrays.") - - public Boolean getAllowsDuplicates() { - return allowsDuplicates; - } - - - public void setAllowsDuplicates(Boolean allowsDuplicates) { - this.allowsDuplicates = allowsDuplicates; - } - - - public ArraySchema timestampRange(List timestampRange) { - - this.timestampRange = timestampRange; - return this; - } - - public ArraySchema addTimestampRangeItem(Integer timestampRangeItem) { - if (this.timestampRange == null) { - this.timestampRange = new ArrayList<>(); - } - this.timestampRange.add(timestampRangeItem); - return this; - } - - /** - * The list of sizes per range - * @return timestampRange - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The list of sizes per range") - - public List getTimestampRange() { - return timestampRange; - } - - - public void setTimestampRange(List timestampRange) { - this.timestampRange = timestampRange; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArraySchema putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArraySchema arraySchema = (ArraySchema) o; - return Objects.equals(this.uri, arraySchema.uri) && - Objects.equals(this.name, arraySchema.name) && - Objects.equals(this.version, arraySchema.version) && - Objects.equals(this.arrayType, arraySchema.arrayType) && - Objects.equals(this.tileOrder, arraySchema.tileOrder) && - Objects.equals(this.cellOrder, arraySchema.cellOrder) && - Objects.equals(this.capacity, arraySchema.capacity) && - Objects.equals(this.coordsFilterPipeline, arraySchema.coordsFilterPipeline) && - Objects.equals(this.offsetFilterPipeline, arraySchema.offsetFilterPipeline) && - Objects.equals(this.validityFilterPipeline, arraySchema.validityFilterPipeline) && - Objects.equals(this.domain, arraySchema.domain) && - Objects.equals(this.attributes, arraySchema.attributes) && - Objects.equals(this.allowsDuplicates, arraySchema.allowsDuplicates) && - Objects.equals(this.timestampRange, arraySchema.timestampRange)&& - Objects.equals(this.additionalProperties, arraySchema.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(uri, name, version, arrayType, tileOrder, cellOrder, capacity, coordsFilterPipeline, offsetFilterPipeline, validityFilterPipeline, domain, attributes, allowsDuplicates, timestampRange, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArraySchema {\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" arrayType: ").append(toIndentedString(arrayType)).append("\n"); - sb.append(" tileOrder: ").append(toIndentedString(tileOrder)).append("\n"); - sb.append(" cellOrder: ").append(toIndentedString(cellOrder)).append("\n"); - sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); - sb.append(" coordsFilterPipeline: ").append(toIndentedString(coordsFilterPipeline)).append("\n"); - sb.append(" offsetFilterPipeline: ").append(toIndentedString(offsetFilterPipeline)).append("\n"); - sb.append(" validityFilterPipeline: ").append(toIndentedString(validityFilterPipeline)).append("\n"); - sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" allowsDuplicates: ").append(toIndentedString(allowsDuplicates)).append("\n"); - sb.append(" timestampRange: ").append(toIndentedString(timestampRange)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uri"); - openapiFields.add("name"); - openapiFields.add("version"); - openapiFields.add("arrayType"); - openapiFields.add("tileOrder"); - openapiFields.add("cellOrder"); - openapiFields.add("capacity"); - openapiFields.add("coordsFilterPipeline"); - openapiFields.add("offsetFilterPipeline"); - openapiFields.add("validityFilterPipeline"); - openapiFields.add("domain"); - openapiFields.add("attributes"); - openapiFields.add("allowsDuplicates"); - openapiFields.add("timestampRange"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("version"); - openapiRequiredFields.add("arrayType"); - openapiRequiredFields.add("tileOrder"); - openapiRequiredFields.add("cellOrder"); - openapiRequiredFields.add("capacity"); - openapiRequiredFields.add("coordsFilterPipeline"); - openapiRequiredFields.add("offsetFilterPipeline"); - openapiRequiredFields.add("domain"); - openapiRequiredFields.add("attributes"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArraySchema - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArraySchema.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchema is not found in the empty JSON string", ArraySchema.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ArraySchema.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the json data is an array - if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `version` to be an array in the JSON string but got `%s`", jsonObj.get("version").toString())); - } - // validate the optional field `coordsFilterPipeline` - if (jsonObj.getAsJsonObject("coordsFilterPipeline") != null) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("coordsFilterPipeline")); - } - // validate the optional field `offsetFilterPipeline` - if (jsonObj.getAsJsonObject("offsetFilterPipeline") != null) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("offsetFilterPipeline")); - } - // validate the optional field `validityFilterPipeline` - if (jsonObj.getAsJsonObject("validityFilterPipeline") != null) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("validityFilterPipeline")); - } - // validate the optional field `domain` - if (jsonObj.getAsJsonObject("domain") != null) { - Domain.validateJsonObject(jsonObj.getAsJsonObject("domain")); - } - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - Attribute.validateJsonObject(jsonArrayattributes.get(i).getAsJsonObject()); - }; - } - // ensure the json data is an array - if (jsonObj.get("timestampRange") != null && !jsonObj.get("timestampRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `timestampRange` to be an array in the JSON string but got `%s`", jsonObj.get("timestampRange").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArraySchema.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArraySchema' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArraySchema.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArraySchema value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArraySchema read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArraySchema instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArraySchema given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySchema - * @throws IOException if the JSON string is invalid with respect to ArraySchema - */ - public static ArraySchema fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArraySchema.class); - } - - /** - * Convert an instance of ArraySchema to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaEntry.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaEntry.java deleted file mode 100644 index 6b7b378..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaEntry.java +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * key/value pair representing an array schema map entry - */ -@ApiModel(description = "key/value pair representing an array schema map entry") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArraySchemaEntry { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private ArraySchema value; - - public ArraySchemaEntry() { - } - - public ArraySchemaEntry key(String key) { - - this.key = key; - return this; - } - - /** - * Get key - * @return key - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getKey() { - return key; - } - - - public void setKey(String key) { - this.key = key; - } - - - public ArraySchemaEntry value(ArraySchema value) { - - this.value = value; - return this; - } - - /** - * Get value - * @return value - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArraySchema getValue() { - return value; - } - - - public void setValue(ArraySchema value) { - this.value = value; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArraySchemaEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArraySchemaEntry arraySchemaEntry = (ArraySchemaEntry) o; - return Objects.equals(this.key, arraySchemaEntry.key) && - Objects.equals(this.value, arraySchemaEntry.value)&& - Objects.equals(this.additionalProperties, arraySchemaEntry.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(key, value, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArraySchemaEntry {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("value"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArraySchemaEntry - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArraySchemaEntry.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchemaEntry is not found in the empty JSON string", ArraySchemaEntry.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - // validate the optional field `value` - if (jsonObj.getAsJsonObject("value") != null) { - ArraySchema.validateJsonObject(jsonObj.getAsJsonObject("value")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArraySchemaEntry.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArraySchemaEntry' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArraySchemaEntry.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArraySchemaEntry value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArraySchemaEntry read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArraySchemaEntry instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArraySchemaEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySchemaEntry - * @throws IOException if the JSON string is invalid with respect to ArraySchemaEntry - */ - public static ArraySchemaEntry fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArraySchemaEntry.class); - } - - /** - * Convert an instance of ArraySchemaEntry to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaMap.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaMap.java deleted file mode 100644 index 7928310..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArraySchemaMap.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * array's schemas - */ -@ApiModel(description = "array's schemas") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ArraySchemaMap { - public static final String SERIALIZED_NAME_ENTRIES = "entries"; - @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; - - public ArraySchemaMap() { - } - - public ArraySchemaMap entries(List entries) { - - this.entries = entries; - return this; - } - - public ArraySchemaMap addEntriesItem(ArraySchemaEntry entriesItem) { - if (this.entries == null) { - this.entries = new ArrayList<>(); - } - this.entries.add(entriesItem); - return this; - } - - /** - * List of array schemas entries - * @return entries - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of array schemas entries") - - public List getEntries() { - return entries; - } - - - public void setEntries(List entries) { - this.entries = entries; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ArraySchemaMap putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArraySchemaMap arraySchemaMap = (ArraySchemaMap) o; - return Objects.equals(this.entries, arraySchemaMap.entries)&& - Objects.equals(this.additionalProperties, arraySchemaMap.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(entries, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArraySchemaMap {\n"); - sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("entries"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArraySchemaMap - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArraySchemaMap.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchemaMap is not found in the empty JSON string", ArraySchemaMap.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - ArraySchemaEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArraySchemaMap.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArraySchemaMap' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArraySchemaMap.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArraySchemaMap value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ArraySchemaMap read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ArraySchemaMap instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ArraySchemaMap given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySchemaMap - * @throws IOException if the JSON string is invalid with respect to ArraySchemaMap - */ - public static ArraySchemaMap fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ArraySchemaMap.class); - } - - /** - * Convert an instance of ArraySchemaMap to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayType.java deleted file mode 100644 index 4d733e5..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ArrayType.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * TileDB array type - */ -@JsonAdapter(ArrayType.Adapter.class) -public enum ArrayType { - - DENSE("dense"), - - SPARSE("sparse"); - - private String value; - - ArrayType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ArrayType fromValue(String value) { - for (ArrayType b : ArrayType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ArrayType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ArrayType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ArrayType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AssetType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AssetType.java deleted file mode 100644 index 78c385e..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AssetType.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Asset types represented as TileDB arrays - */ -@JsonAdapter(AssetType.Adapter.class) -public enum AssetType { - - ARRAY("array"), - - NOTEBOOK("notebook"), - - DASHBOARD("dashboard"), - - USER_DEFINED_FUNCTION("user_defined_function"), - - ML_MODEL("ml_model"), - - FILE("file"), - - REGISTERED_TASK_GRAPH("registered_task_graph"), - - GROUP("group"), - - VCF("vcf"), - - SOMA("soma"), - - POINTCLOUD("pointcloud"), - - BIOIMG("bioimg"), - - GEOMETRY("geometry"), - - RASTER("raster"), - - VECTOR_SEARCH("vector_search"); - - private String value; - - AssetType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static AssetType fromValue(String value) { - for (AssetType b : AssetType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final AssetType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public AssetType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return AssetType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Attribute.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Attribute.java deleted file mode 100644 index 3ece4db..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Attribute.java +++ /dev/null @@ -1,474 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Attribute of array - */ -@ApiModel(description = "Attribute of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Attribute { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Datatype type; - - public static final String SERIALIZED_NAME_FILTER_PIPELINE = "filterPipeline"; - @SerializedName(SERIALIZED_NAME_FILTER_PIPELINE) - private FilterPipeline filterPipeline; - - public static final String SERIALIZED_NAME_CELL_VAL_NUM = "cellValNum"; - @SerializedName(SERIALIZED_NAME_CELL_VAL_NUM) - private Integer cellValNum; - - public static final String SERIALIZED_NAME_NULLABLE = "nullable"; - @SerializedName(SERIALIZED_NAME_NULLABLE) - private Boolean nullable; - - public static final String SERIALIZED_NAME_FILL_VALUE_VALIDITY = "fillValueValidity"; - @SerializedName(SERIALIZED_NAME_FILL_VALUE_VALIDITY) - private Boolean fillValueValidity; - - public static final String SERIALIZED_NAME_FILL_VALUE = "fillValue"; - @SerializedName(SERIALIZED_NAME_FILL_VALUE) - private List fillValue = null; - - public Attribute() { - } - - public Attribute name(String name) { - - this.name = name; - return this; - } - - /** - * Attribute name - * @return name - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "attribute1", required = true, value = "Attribute name") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public Attribute type(Datatype type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Datatype getType() { - return type; - } - - - public void setType(Datatype type) { - this.type = type; - } - - - public Attribute filterPipeline(FilterPipeline filterPipeline) { - - this.filterPipeline = filterPipeline; - return this; - } - - /** - * Get filterPipeline - * @return filterPipeline - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public FilterPipeline getFilterPipeline() { - return filterPipeline; - } - - - public void setFilterPipeline(FilterPipeline filterPipeline) { - this.filterPipeline = filterPipeline; - } - - - public Attribute cellValNum(Integer cellValNum) { - - this.cellValNum = cellValNum; - return this; - } - - /** - * Attribute number of values per cell - * @return cellValNum - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1", required = true, value = "Attribute number of values per cell") - - public Integer getCellValNum() { - return cellValNum; - } - - - public void setCellValNum(Integer cellValNum) { - this.cellValNum = cellValNum; - } - - - public Attribute nullable(Boolean nullable) { - - this.nullable = nullable; - return this; - } - - /** - * Is attribute nullable - * @return nullable - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Is attribute nullable") - - public Boolean getNullable() { - return nullable; - } - - - public void setNullable(Boolean nullable) { - this.nullable = nullable; - } - - - public Attribute fillValueValidity(Boolean fillValueValidity) { - - this.fillValueValidity = fillValueValidity; - return this; - } - - /** - * Default validity fill value for nullable attributes - * @return fillValueValidity - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Default validity fill value for nullable attributes") - - public Boolean getFillValueValidity() { - return fillValueValidity; - } - - - public void setFillValueValidity(Boolean fillValueValidity) { - this.fillValueValidity = fillValueValidity; - } - - - public Attribute fillValue(List fillValue) { - - this.fillValue = fillValue; - return this; - } - - public Attribute addFillValueItem(Integer fillValueItem) { - if (this.fillValue == null) { - this.fillValue = new ArrayList<>(); - } - this.fillValue.add(fillValueItem); - return this; - } - - /** - * The default fill value - * @return fillValue - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The default fill value") - - public List getFillValue() { - return fillValue; - } - - - public void setFillValue(List fillValue) { - this.fillValue = fillValue; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Attribute putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Attribute attribute = (Attribute) o; - return Objects.equals(this.name, attribute.name) && - Objects.equals(this.type, attribute.type) && - Objects.equals(this.filterPipeline, attribute.filterPipeline) && - Objects.equals(this.cellValNum, attribute.cellValNum) && - Objects.equals(this.nullable, attribute.nullable) && - Objects.equals(this.fillValueValidity, attribute.fillValueValidity) && - Objects.equals(this.fillValue, attribute.fillValue)&& - Objects.equals(this.additionalProperties, attribute.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, type, filterPipeline, cellValNum, nullable, fillValueValidity, fillValue, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Attribute {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" filterPipeline: ").append(toIndentedString(filterPipeline)).append("\n"); - sb.append(" cellValNum: ").append(toIndentedString(cellValNum)).append("\n"); - sb.append(" nullable: ").append(toIndentedString(nullable)).append("\n"); - sb.append(" fillValueValidity: ").append(toIndentedString(fillValueValidity)).append("\n"); - sb.append(" fillValue: ").append(toIndentedString(fillValue)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("type"); - openapiFields.add("filterPipeline"); - openapiFields.add("cellValNum"); - openapiFields.add("nullable"); - openapiFields.add("fillValueValidity"); - openapiFields.add("fillValue"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("filterPipeline"); - openapiRequiredFields.add("cellValNum"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Attribute - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Attribute.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Attribute.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `filterPipeline` - if (jsonObj.getAsJsonObject("filterPipeline") != null) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); - } - // ensure the json data is an array - if (jsonObj.get("fillValue") != null && !jsonObj.get("fillValue").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fillValue` to be an array in the JSON string but got `%s`", jsonObj.get("fillValue").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Attribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Attribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Attribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Attribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Attribute read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Attribute instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Attribute given an JSON string - * - * @param jsonString JSON string - * @return An instance of Attribute - * @throws IOException if the JSON string is invalid with respect to Attribute - */ - public static Attribute fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Attribute.class); - } - - /** - * Convert an instance of Attribute to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferHeader.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferHeader.java deleted file mode 100644 index 689880b..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferHeader.java +++ /dev/null @@ -1,455 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Represents an attribute buffer header information - */ -@ApiModel(description = "Represents an attribute buffer header information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AttributeBufferHeader { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_FIXED_LEN_BUFFER_SIZE_IN_BYTES = "fixedLenBufferSizeInBytes"; - @SerializedName(SERIALIZED_NAME_FIXED_LEN_BUFFER_SIZE_IN_BYTES) - private Integer fixedLenBufferSizeInBytes; - - public static final String SERIALIZED_NAME_VAR_LEN_BUFFER_SIZE_IN_BYTES = "varLenBufferSizeInBytes"; - @SerializedName(SERIALIZED_NAME_VAR_LEN_BUFFER_SIZE_IN_BYTES) - private Integer varLenBufferSizeInBytes; - - public static final String SERIALIZED_NAME_VALIDITY_LEN_BUFFER_SIZE_IN_BYTES = "validityLenBufferSizeInBytes"; - @SerializedName(SERIALIZED_NAME_VALIDITY_LEN_BUFFER_SIZE_IN_BYTES) - private Integer validityLenBufferSizeInBytes; - - public static final String SERIALIZED_NAME_ORIGINAL_FIXED_LEN_BUFFER_SIZE_IN_BYTES = "originalFixedLenBufferSizeInBytes"; - @SerializedName(SERIALIZED_NAME_ORIGINAL_FIXED_LEN_BUFFER_SIZE_IN_BYTES) - private Integer originalFixedLenBufferSizeInBytes; - - public static final String SERIALIZED_NAME_ORIGINAL_VAR_LEN_BUFFER_SIZE_IN_BYTES = "originalVarLenBufferSizeInBytes"; - @SerializedName(SERIALIZED_NAME_ORIGINAL_VAR_LEN_BUFFER_SIZE_IN_BYTES) - private Integer originalVarLenBufferSizeInBytes; - - public static final String SERIALIZED_NAME_ORIGINAL_VALIDITY_LEN_BUFFER_SIZE_IN_BYTES = "originalValidityLenBufferSizeInBytes"; - @SerializedName(SERIALIZED_NAME_ORIGINAL_VALIDITY_LEN_BUFFER_SIZE_IN_BYTES) - private Integer originalValidityLenBufferSizeInBytes; - - public AttributeBufferHeader() { - } - - public AttributeBufferHeader name(String name) { - - this.name = name; - return this; - } - - /** - * Attribute name - * @return name - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "attribute1", required = true, value = "Attribute name") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public AttributeBufferHeader fixedLenBufferSizeInBytes(Integer fixedLenBufferSizeInBytes) { - - this.fixedLenBufferSizeInBytes = fixedLenBufferSizeInBytes; - return this; - } - - /** - * Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes) - * @return fixedLenBufferSizeInBytes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes)") - - public Integer getFixedLenBufferSizeInBytes() { - return fixedLenBufferSizeInBytes; - } - - - public void setFixedLenBufferSizeInBytes(Integer fixedLenBufferSizeInBytes) { - this.fixedLenBufferSizeInBytes = fixedLenBufferSizeInBytes; - } - - - public AttributeBufferHeader varLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { - - this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; - return this; - } - - /** - * Number of bytes in the var-length attribute data buffer - * @return varLenBufferSizeInBytes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Number of bytes in the var-length attribute data buffer") - - public Integer getVarLenBufferSizeInBytes() { - return varLenBufferSizeInBytes; - } - - - public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { - this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; - } - - - public AttributeBufferHeader validityLenBufferSizeInBytes(Integer validityLenBufferSizeInBytes) { - - this.validityLenBufferSizeInBytes = validityLenBufferSizeInBytes; - return this; - } - - /** - * Number of bytes for validity in case attribute is nullable - * @return validityLenBufferSizeInBytes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Number of bytes for validity in case attribute is nullable") - - public Integer getValidityLenBufferSizeInBytes() { - return validityLenBufferSizeInBytes; - } - - - public void setValidityLenBufferSizeInBytes(Integer validityLenBufferSizeInBytes) { - this.validityLenBufferSizeInBytes = validityLenBufferSizeInBytes; - } - - - public AttributeBufferHeader originalFixedLenBufferSizeInBytes(Integer originalFixedLenBufferSizeInBytes) { - - this.originalFixedLenBufferSizeInBytes = originalFixedLenBufferSizeInBytes; - return this; - } - - /** - * Original user set number of bytes in the fixed-length attribute data buffer - * @return originalFixedLenBufferSizeInBytes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Original user set number of bytes in the fixed-length attribute data buffer") - - public Integer getOriginalFixedLenBufferSizeInBytes() { - return originalFixedLenBufferSizeInBytes; - } - - - public void setOriginalFixedLenBufferSizeInBytes(Integer originalFixedLenBufferSizeInBytes) { - this.originalFixedLenBufferSizeInBytes = originalFixedLenBufferSizeInBytes; - } - - - public AttributeBufferHeader originalVarLenBufferSizeInBytes(Integer originalVarLenBufferSizeInBytes) { - - this.originalVarLenBufferSizeInBytes = originalVarLenBufferSizeInBytes; - return this; - } - - /** - * Original user set number of bytes in the var-length attribute data buffer - * @return originalVarLenBufferSizeInBytes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Original user set number of bytes in the var-length attribute data buffer") - - public Integer getOriginalVarLenBufferSizeInBytes() { - return originalVarLenBufferSizeInBytes; - } - - - public void setOriginalVarLenBufferSizeInBytes(Integer originalVarLenBufferSizeInBytes) { - this.originalVarLenBufferSizeInBytes = originalVarLenBufferSizeInBytes; - } - - - public AttributeBufferHeader originalValidityLenBufferSizeInBytes(Integer originalValidityLenBufferSizeInBytes) { - - this.originalValidityLenBufferSizeInBytes = originalValidityLenBufferSizeInBytes; - return this; - } - - /** - * Original user set number of bytes in the validity data buffer - * @return originalValidityLenBufferSizeInBytes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Original user set number of bytes in the validity data buffer") - - public Integer getOriginalValidityLenBufferSizeInBytes() { - return originalValidityLenBufferSizeInBytes; - } - - - public void setOriginalValidityLenBufferSizeInBytes(Integer originalValidityLenBufferSizeInBytes) { - this.originalValidityLenBufferSizeInBytes = originalValidityLenBufferSizeInBytes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AttributeBufferHeader putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AttributeBufferHeader attributeBufferHeader = (AttributeBufferHeader) o; - return Objects.equals(this.name, attributeBufferHeader.name) && - Objects.equals(this.fixedLenBufferSizeInBytes, attributeBufferHeader.fixedLenBufferSizeInBytes) && - Objects.equals(this.varLenBufferSizeInBytes, attributeBufferHeader.varLenBufferSizeInBytes) && - Objects.equals(this.validityLenBufferSizeInBytes, attributeBufferHeader.validityLenBufferSizeInBytes) && - Objects.equals(this.originalFixedLenBufferSizeInBytes, attributeBufferHeader.originalFixedLenBufferSizeInBytes) && - Objects.equals(this.originalVarLenBufferSizeInBytes, attributeBufferHeader.originalVarLenBufferSizeInBytes) && - Objects.equals(this.originalValidityLenBufferSizeInBytes, attributeBufferHeader.originalValidityLenBufferSizeInBytes)&& - Objects.equals(this.additionalProperties, attributeBufferHeader.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, fixedLenBufferSizeInBytes, varLenBufferSizeInBytes, validityLenBufferSizeInBytes, originalFixedLenBufferSizeInBytes, originalVarLenBufferSizeInBytes, originalValidityLenBufferSizeInBytes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AttributeBufferHeader {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" fixedLenBufferSizeInBytes: ").append(toIndentedString(fixedLenBufferSizeInBytes)).append("\n"); - sb.append(" varLenBufferSizeInBytes: ").append(toIndentedString(varLenBufferSizeInBytes)).append("\n"); - sb.append(" validityLenBufferSizeInBytes: ").append(toIndentedString(validityLenBufferSizeInBytes)).append("\n"); - sb.append(" originalFixedLenBufferSizeInBytes: ").append(toIndentedString(originalFixedLenBufferSizeInBytes)).append("\n"); - sb.append(" originalVarLenBufferSizeInBytes: ").append(toIndentedString(originalVarLenBufferSizeInBytes)).append("\n"); - sb.append(" originalValidityLenBufferSizeInBytes: ").append(toIndentedString(originalValidityLenBufferSizeInBytes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("fixedLenBufferSizeInBytes"); - openapiFields.add("varLenBufferSizeInBytes"); - openapiFields.add("validityLenBufferSizeInBytes"); - openapiFields.add("originalFixedLenBufferSizeInBytes"); - openapiFields.add("originalVarLenBufferSizeInBytes"); - openapiFields.add("originalValidityLenBufferSizeInBytes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("fixedLenBufferSizeInBytes"); - openapiRequiredFields.add("varLenBufferSizeInBytes"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AttributeBufferHeader - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AttributeBufferHeader.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferHeader is not found in the empty JSON string", AttributeBufferHeader.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AttributeBufferHeader.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeBufferHeader.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeBufferHeader' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AttributeBufferHeader.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeBufferHeader value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AttributeBufferHeader read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AttributeBufferHeader instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AttributeBufferHeader given an JSON string - * - * @param jsonString JSON string - * @return An instance of AttributeBufferHeader - * @throws IOException if the JSON string is invalid with respect to AttributeBufferHeader - */ - public static AttributeBufferHeader fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AttributeBufferHeader.class); - } - - /** - * Convert an instance of AttributeBufferHeader to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferSize.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferSize.java deleted file mode 100644 index 0a3f7d9..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AttributeBufferSize.java +++ /dev/null @@ -1,335 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * object representing buffer size of an attribute - */ -@ApiModel(description = "object representing buffer size of an attribute") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AttributeBufferSize { - public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTE) - private String attribute; - - public static final String SERIALIZED_NAME_OFFSET_BYTES = "offsetBytes"; - @SerializedName(SERIALIZED_NAME_OFFSET_BYTES) - private Integer offsetBytes; - - public static final String SERIALIZED_NAME_DATA_BYTES = "dataBytes"; - @SerializedName(SERIALIZED_NAME_DATA_BYTES) - private Integer dataBytes; - - public AttributeBufferSize() { - } - - public AttributeBufferSize attribute(String attribute) { - - this.attribute = attribute; - return this; - } - - /** - * name of attribute - * @return attribute - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "name of attribute") - - public String getAttribute() { - return attribute; - } - - - public void setAttribute(String attribute) { - this.attribute = attribute; - } - - - public AttributeBufferSize offsetBytes(Integer offsetBytes) { - - this.offsetBytes = offsetBytes; - return this; - } - - /** - * buffer size (in bytes) of offset buffer - * @return offsetBytes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "buffer size (in bytes) of offset buffer") - - public Integer getOffsetBytes() { - return offsetBytes; - } - - - public void setOffsetBytes(Integer offsetBytes) { - this.offsetBytes = offsetBytes; - } - - - public AttributeBufferSize dataBytes(Integer dataBytes) { - - this.dataBytes = dataBytes; - return this; - } - - /** - * buffer size (in bytes) of data buffer - * @return dataBytes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "buffer size (in bytes) of data buffer") - - public Integer getDataBytes() { - return dataBytes; - } - - - public void setDataBytes(Integer dataBytes) { - this.dataBytes = dataBytes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AttributeBufferSize putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AttributeBufferSize attributeBufferSize = (AttributeBufferSize) o; - return Objects.equals(this.attribute, attributeBufferSize.attribute) && - Objects.equals(this.offsetBytes, attributeBufferSize.offsetBytes) && - Objects.equals(this.dataBytes, attributeBufferSize.dataBytes)&& - Objects.equals(this.additionalProperties, attributeBufferSize.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attribute, offsetBytes, dataBytes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AttributeBufferSize {\n"); - sb.append(" attribute: ").append(toIndentedString(attribute)).append("\n"); - sb.append(" offsetBytes: ").append(toIndentedString(offsetBytes)).append("\n"); - sb.append(" dataBytes: ").append(toIndentedString(dataBytes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("attribute"); - openapiFields.add("offsetBytes"); - openapiFields.add("dataBytes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("attribute"); - openapiRequiredFields.add("offsetBytes"); - openapiRequiredFields.add("dataBytes"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AttributeBufferSize - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AttributeBufferSize.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferSize is not found in the empty JSON string", AttributeBufferSize.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AttributeBufferSize.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attribute").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeBufferSize.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeBufferSize' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AttributeBufferSize.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeBufferSize value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AttributeBufferSize read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AttributeBufferSize instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AttributeBufferSize given an JSON string - * - * @param jsonString JSON string - * @return An instance of AttributeBufferSize - * @throws IOException if the JSON string is invalid with respect to AttributeBufferSize - */ - public static AttributeBufferSize fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AttributeBufferSize.class); - } - - /** - * Convert an instance of AttributeBufferSize to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureCredential.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureCredential.java deleted file mode 100644 index bc66e50..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureCredential.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Credential information to access Microsoft Azure. Each supported property is the snake_case version of its name in an Azure Storage connection string. - */ -@ApiModel(description = "Credential information to access Microsoft Azure. Each supported property is the snake_case version of its name in an Azure Storage connection string.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AzureCredential { - public static final String SERIALIZED_NAME_ACCOUNT_NAME = "account_name"; - @SerializedName(SERIALIZED_NAME_ACCOUNT_NAME) - private String accountName; - - public static final String SERIALIZED_NAME_ACCOUNT_KEY = "account_key"; - @SerializedName(SERIALIZED_NAME_ACCOUNT_KEY) - private String accountKey; - - public AzureCredential() { - } - - public AzureCredential accountName(String accountName) { - - this.accountName = accountName; - return this; - } - - /** - * The name of the Azure account to access - * @return accountName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the Azure account to access") - - public String getAccountName() { - return accountName; - } - - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - - public AzureCredential accountKey(String accountKey) { - - this.accountKey = accountKey; - return this; - } - - /** - * The secret key. Never returned in responses. - * @return accountKey - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The secret key. Never returned in responses.") - - public String getAccountKey() { - return accountKey; - } - - - public void setAccountKey(String accountKey) { - this.accountKey = accountKey; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AzureCredential putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AzureCredential azureCredential = (AzureCredential) o; - return Objects.equals(this.accountName, azureCredential.accountName) && - Objects.equals(this.accountKey, azureCredential.accountKey)&& - Objects.equals(this.additionalProperties, azureCredential.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(accountName, accountKey, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AzureCredential {\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountKey: ").append(toIndentedString(accountKey)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("account_name"); - openapiFields.add("account_key"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AzureCredential - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AzureCredential.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AzureCredential is not found in the empty JSON string", AzureCredential.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("account_name") != null && !jsonObj.get("account_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `account_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("account_name").toString())); - } - if (jsonObj.get("account_key") != null && !jsonObj.get("account_key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `account_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("account_key").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AzureCredential.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AzureCredential' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AzureCredential.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AzureCredential value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AzureCredential read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AzureCredential instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AzureCredential given an JSON string - * - * @param jsonString JSON string - * @return An instance of AzureCredential - * @throws IOException if the JSON string is invalid with respect to AzureCredential - */ - public static AzureCredential fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AzureCredential.class); - } - - /** - * Convert an instance of AzureCredential to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureToken.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureToken.java deleted file mode 100644 index c6fda4c..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/AzureToken.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Token information to access Azure services - */ -@ApiModel(description = "Token information to access Azure services") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class AzureToken { - public static final String SERIALIZED_NAME_ACCOUNT_NAME = "account_name"; - @SerializedName(SERIALIZED_NAME_ACCOUNT_NAME) - private String accountName; - - public static final String SERIALIZED_NAME_SAS_TOKEN = "sas_token"; - @SerializedName(SERIALIZED_NAME_SAS_TOKEN) - private String sasToken; - - public AzureToken() { - } - - public AzureToken accountName(String accountName) { - - this.accountName = accountName; - return this; - } - - /** - * The account name of the configuration - * @return accountName - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "tiledbpoc", value = "The account name of the configuration") - - public String getAccountName() { - return accountName; - } - - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - - public AzureToken sasToken(String sasToken) { - - this.sasToken = sasToken; - return this; - } - - /** - * The token to use for this account - * @return sasToken - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "sv=2022-11-02&ss=bfqt&srt=sco&sp=dsafdssdfafasdfsda&se=2024-03-28T03:02:08Z&st=2024-03-27T19:02:08Z&spr=https&sig=444444555555555555555555555555555555555%3D", value = "The token to use for this account") - - public String getSasToken() { - return sasToken; - } - - - public void setSasToken(String sasToken) { - this.sasToken = sasToken; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public AzureToken putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AzureToken azureToken = (AzureToken) o; - return Objects.equals(this.accountName, azureToken.accountName) && - Objects.equals(this.sasToken, azureToken.sasToken)&& - Objects.equals(this.additionalProperties, azureToken.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(accountName, sasToken, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AzureToken {\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" sasToken: ").append(toIndentedString(sasToken)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("account_name"); - openapiFields.add("sas_token"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AzureToken - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AzureToken.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in AzureToken is not found in the empty JSON string", AzureToken.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("account_name") != null && !jsonObj.get("account_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `account_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("account_name").toString())); - } - if (jsonObj.get("sas_token") != null && !jsonObj.get("sas_token").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sas_token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sas_token").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AzureToken.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AzureToken' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AzureToken.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AzureToken value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public AzureToken read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - AzureToken instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AzureToken given an JSON string - * - * @param jsonString JSON string - * @return An instance of AzureToken - * @throws IOException if the JSON string is invalid with respect to AzureToken - */ - public static AzureToken fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AzureToken.class); - } - - /** - * Convert an instance of AzureToken to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/CloudProvider.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/CloudProvider.java deleted file mode 100644 index b71173e..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/CloudProvider.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * A service where data is stored or computations take place. - */ -@JsonAdapter(CloudProvider.Adapter.class) -public enum CloudProvider { - - AWS("AWS"), - - AZURE("AZURE"), - - GCP("GCP"); - - private String value; - - CloudProvider(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static CloudProvider fromValue(String value) { - for (CloudProvider b : CloudProvider.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final CloudProvider enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public CloudProvider read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return CloudProvider.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Datatype.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Datatype.java deleted file mode 100644 index 4c4a3ee..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Datatype.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * TileDB data type - */ -@JsonAdapter(Datatype.Adapter.class) -public enum Datatype { - - INT32("INT32"), - - INT64("INT64"), - - FLOAT32("FLOAT32"), - - FLOAT64("FLOAT64"), - - CHAR("CHAR"), - - INT8("INT8"), - - UINT8("UINT8"), - - INT16("INT16"), - - UINT16("UINT16"), - - UINT32("UINT32"), - - UINT64("UINT64"), - - STRING_ASCII("STRING_ASCII"), - - STRING_UTF8("STRING_UTF8"), - - STRING_UTF16("STRING_UTF16"), - - STRING_UTF32("STRING_UTF32"), - - STRING_UCS2("STRING_UCS2"), - - STRING_UCS4("STRING_UCS4"), - - ANY("ANY"), - - DATETIME_YEAR("DATETIME_YEAR"), - - DATETIME_MONTH("DATETIME_MONTH"), - - DATETIME_WEEK("DATETIME_WEEK"), - - DATETIME_DAY("DATETIME_DAY"), - - DATETIME_HR("DATETIME_HR"), - - DATETIME_MIN("DATETIME_MIN"), - - DATETIME_SEC("DATETIME_SEC"), - - DATETIME_MS("DATETIME_MS"), - - DATETIME_US("DATETIME_US"), - - DATETIME_NS("DATETIME_NS"), - - DATETIME_PS("DATETIME_PS"), - - DATETIME_FS("DATETIME_FS"), - - DATETIME_AS("DATETIME_AS"), - - TIME_HR("TIME_HR"), - - TIME_MIN("TIME_MIN"), - - TIME_SEC("TIME_SEC"), - - TIME_MS("TIME_MS"), - - TIME_US("TIME_US"), - - TIME_NS("TIME_NS"), - - TIME_PS("TIME_PS"), - - TIME_FS("TIME_FS"), - - TIME_AS("TIME_AS"), - - BLOB("BLOB"), - - BOOL("BOOL"); - - private String value; - - Datatype(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static Datatype fromValue(String value) { - for (Datatype b : Datatype.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final Datatype enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public Datatype read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return Datatype.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/DeleteAndUpdateTileLocation.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/DeleteAndUpdateTileLocation.java deleted file mode 100644 index 1490bfe..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/DeleteAndUpdateTileLocation.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * the location of delete tiles - */ -@ApiModel(description = "the location of delete tiles") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class DeleteAndUpdateTileLocation { - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_CONDITION_MARKER = "conditionMarker"; - @SerializedName(SERIALIZED_NAME_CONDITION_MARKER) - private String conditionMarker; - - public static final String SERIALIZED_NAME_OFFSET = "offset"; - @SerializedName(SERIALIZED_NAME_OFFSET) - private BigDecimal offset; - - public DeleteAndUpdateTileLocation() { - } - - public DeleteAndUpdateTileLocation uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * the uri - * @return uri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the uri") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public DeleteAndUpdateTileLocation conditionMarker(String conditionMarker) { - - this.conditionMarker = conditionMarker; - return this; - } - - /** - * Get conditionMarker - * @return conditionMarker - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getConditionMarker() { - return conditionMarker; - } - - - public void setConditionMarker(String conditionMarker) { - this.conditionMarker = conditionMarker; - } - - - public DeleteAndUpdateTileLocation offset(BigDecimal offset) { - - this.offset = offset; - return this; - } - - /** - * Get offset - * @return offset - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public BigDecimal getOffset() { - return offset; - } - - - public void setOffset(BigDecimal offset) { - this.offset = offset; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public DeleteAndUpdateTileLocation putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteAndUpdateTileLocation deleteAndUpdateTileLocation = (DeleteAndUpdateTileLocation) o; - return Objects.equals(this.uri, deleteAndUpdateTileLocation.uri) && - Objects.equals(this.conditionMarker, deleteAndUpdateTileLocation.conditionMarker) && - Objects.equals(this.offset, deleteAndUpdateTileLocation.offset)&& - Objects.equals(this.additionalProperties, deleteAndUpdateTileLocation.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(uri, conditionMarker, offset, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeleteAndUpdateTileLocation {\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" conditionMarker: ").append(toIndentedString(conditionMarker)).append("\n"); - sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uri"); - openapiFields.add("conditionMarker"); - openapiFields.add("offset"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DeleteAndUpdateTileLocation - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DeleteAndUpdateTileLocation.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in DeleteAndUpdateTileLocation is not found in the empty JSON string", DeleteAndUpdateTileLocation.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - if (jsonObj.get("conditionMarker") != null && !jsonObj.get("conditionMarker").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `conditionMarker` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conditionMarker").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteAndUpdateTileLocation.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteAndUpdateTileLocation' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteAndUpdateTileLocation.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteAndUpdateTileLocation value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public DeleteAndUpdateTileLocation read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - DeleteAndUpdateTileLocation instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DeleteAndUpdateTileLocation given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteAndUpdateTileLocation - * @throws IOException if the JSON string is invalid with respect to DeleteAndUpdateTileLocation - */ - public static DeleteAndUpdateTileLocation fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteAndUpdateTileLocation.class); - } - - /** - * Convert an instance of DeleteAndUpdateTileLocation to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Dimension.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Dimension.java deleted file mode 100644 index 7d61fb3..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Dimension.java +++ /dev/null @@ -1,437 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Dimension of array - */ -@ApiModel(description = "Dimension of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Dimension { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Datatype type; - - public static final String SERIALIZED_NAME_DOMAIN = "domain"; - @SerializedName(SERIALIZED_NAME_DOMAIN) - private DomainArray domain; - - public static final String SERIALIZED_NAME_NULL_TILE_EXTENT = "nullTileExtent"; - @SerializedName(SERIALIZED_NAME_NULL_TILE_EXTENT) - private Boolean nullTileExtent; - - public static final String SERIALIZED_NAME_TILE_EXTENT = "tileExtent"; - @SerializedName(SERIALIZED_NAME_TILE_EXTENT) - private DimensionTileExtent tileExtent; - - public static final String SERIALIZED_NAME_FILTER_PIPELINE = "filterPipeline"; - @SerializedName(SERIALIZED_NAME_FILTER_PIPELINE) - private FilterPipeline filterPipeline; - - public Dimension() { - } - - public Dimension name(String name) { - - this.name = name; - return this; - } - - /** - * Dimension name - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "row", value = "Dimension name") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public Dimension type(Datatype type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Datatype getType() { - return type; - } - - - public void setType(Datatype type) { - this.type = type; - } - - - public Dimension domain(DomainArray domain) { - - this.domain = domain; - return this; - } - - /** - * Get domain - * @return domain - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public DomainArray getDomain() { - return domain; - } - - - public void setDomain(DomainArray domain) { - this.domain = domain; - } - - - public Dimension nullTileExtent(Boolean nullTileExtent) { - - this.nullTileExtent = nullTileExtent; - return this; - } - - /** - * Is tile extent null - * @return nullTileExtent - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "true", required = true, value = "Is tile extent null") - - public Boolean getNullTileExtent() { - return nullTileExtent; - } - - - public void setNullTileExtent(Boolean nullTileExtent) { - this.nullTileExtent = nullTileExtent; - } - - - public Dimension tileExtent(DimensionTileExtent tileExtent) { - - this.tileExtent = tileExtent; - return this; - } - - /** - * Get tileExtent - * @return tileExtent - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public DimensionTileExtent getTileExtent() { - return tileExtent; - } - - - public void setTileExtent(DimensionTileExtent tileExtent) { - this.tileExtent = tileExtent; - } - - - public Dimension filterPipeline(FilterPipeline filterPipeline) { - - this.filterPipeline = filterPipeline; - return this; - } - - /** - * Get filterPipeline - * @return filterPipeline - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public FilterPipeline getFilterPipeline() { - return filterPipeline; - } - - - public void setFilterPipeline(FilterPipeline filterPipeline) { - this.filterPipeline = filterPipeline; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Dimension putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Dimension dimension = (Dimension) o; - return Objects.equals(this.name, dimension.name) && - Objects.equals(this.type, dimension.type) && - Objects.equals(this.domain, dimension.domain) && - Objects.equals(this.nullTileExtent, dimension.nullTileExtent) && - Objects.equals(this.tileExtent, dimension.tileExtent) && - Objects.equals(this.filterPipeline, dimension.filterPipeline)&& - Objects.equals(this.additionalProperties, dimension.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, type, domain, nullTileExtent, tileExtent, filterPipeline, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Dimension {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); - sb.append(" nullTileExtent: ").append(toIndentedString(nullTileExtent)).append("\n"); - sb.append(" tileExtent: ").append(toIndentedString(tileExtent)).append("\n"); - sb.append(" filterPipeline: ").append(toIndentedString(filterPipeline)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("type"); - openapiFields.add("domain"); - openapiFields.add("nullTileExtent"); - openapiFields.add("tileExtent"); - openapiFields.add("filterPipeline"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("domain"); - openapiRequiredFields.add("nullTileExtent"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Dimension - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Dimension.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Dimension is not found in the empty JSON string", Dimension.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Dimension.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `domain` - if (jsonObj.getAsJsonObject("domain") != null) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("domain")); - } - // validate the optional field `tileExtent` - if (jsonObj.getAsJsonObject("tileExtent") != null) { - DimensionTileExtent.validateJsonObject(jsonObj.getAsJsonObject("tileExtent")); - } - // validate the optional field `filterPipeline` - if (jsonObj.getAsJsonObject("filterPipeline") != null) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Dimension.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Dimension' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Dimension.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Dimension value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Dimension read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Dimension instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Dimension given an JSON string - * - * @param jsonString JSON string - * @return An instance of Dimension - * @throws IOException if the JSON string is invalid with respect to Dimension - */ - public static Dimension fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Dimension.class); - } - - /** - * Convert an instance of Dimension to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/DimensionTileExtent.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/DimensionTileExtent.java deleted file mode 100644 index 49d591c..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/DimensionTileExtent.java +++ /dev/null @@ -1,532 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Extent of tile - */ -@ApiModel(description = "Extent of tile") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class DimensionTileExtent { - public static final String SERIALIZED_NAME_INT8 = "int8"; - @SerializedName(SERIALIZED_NAME_INT8) - private Integer int8; - - public static final String SERIALIZED_NAME_UINT8 = "uint8"; - @SerializedName(SERIALIZED_NAME_UINT8) - private Integer uint8; - - public static final String SERIALIZED_NAME_INT16 = "int16"; - @SerializedName(SERIALIZED_NAME_INT16) - private Integer int16; - - public static final String SERIALIZED_NAME_UINT16 = "uint16"; - @SerializedName(SERIALIZED_NAME_UINT16) - private Integer uint16; - - public static final String SERIALIZED_NAME_INT32 = "int32"; - @SerializedName(SERIALIZED_NAME_INT32) - private Integer int32; - - public static final String SERIALIZED_NAME_UINT32 = "uint32"; - @SerializedName(SERIALIZED_NAME_UINT32) - private Integer uint32; - - public static final String SERIALIZED_NAME_INT64 = "int64"; - @SerializedName(SERIALIZED_NAME_INT64) - private Long int64; - - public static final String SERIALIZED_NAME_UINT64 = "uint64"; - @SerializedName(SERIALIZED_NAME_UINT64) - private Integer uint64; - - public static final String SERIALIZED_NAME_FLOAT32 = "float32"; - @SerializedName(SERIALIZED_NAME_FLOAT32) - private Integer float32; - - public static final String SERIALIZED_NAME_FLOAT64 = "float64"; - @SerializedName(SERIALIZED_NAME_FLOAT64) - private Integer float64; - - public DimensionTileExtent() { - } - - public DimensionTileExtent int8(Integer int8) { - - this.int8 = int8; - return this; - } - - /** - * Get int8 - * @return int8 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getInt8() { - return int8; - } - - - public void setInt8(Integer int8) { - this.int8 = int8; - } - - - public DimensionTileExtent uint8(Integer uint8) { - - this.uint8 = uint8; - return this; - } - - /** - * Get uint8 - * @return uint8 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint8() { - return uint8; - } - - - public void setUint8(Integer uint8) { - this.uint8 = uint8; - } - - - public DimensionTileExtent int16(Integer int16) { - - this.int16 = int16; - return this; - } - - /** - * Get int16 - * @return int16 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getInt16() { - return int16; - } - - - public void setInt16(Integer int16) { - this.int16 = int16; - } - - - public DimensionTileExtent uint16(Integer uint16) { - - this.uint16 = uint16; - return this; - } - - /** - * Get uint16 - * @return uint16 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint16() { - return uint16; - } - - - public void setUint16(Integer uint16) { - this.uint16 = uint16; - } - - - public DimensionTileExtent int32(Integer int32) { - - this.int32 = int32; - return this; - } - - /** - * Get int32 - * @return int32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getInt32() { - return int32; - } - - - public void setInt32(Integer int32) { - this.int32 = int32; - } - - - public DimensionTileExtent uint32(Integer uint32) { - - this.uint32 = uint32; - return this; - } - - /** - * Get uint32 - * @return uint32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint32() { - return uint32; - } - - - public void setUint32(Integer uint32) { - this.uint32 = uint32; - } - - - public DimensionTileExtent int64(Long int64) { - - this.int64 = int64; - return this; - } - - /** - * Get int64 - * @return int64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Long getInt64() { - return int64; - } - - - public void setInt64(Long int64) { - this.int64 = int64; - } - - - public DimensionTileExtent uint64(Integer uint64) { - - this.uint64 = uint64; - return this; - } - - /** - * Get uint64 - * @return uint64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint64() { - return uint64; - } - - - public void setUint64(Integer uint64) { - this.uint64 = uint64; - } - - - public DimensionTileExtent float32(Integer float32) { - - this.float32 = float32; - return this; - } - - /** - * Get float32 - * @return float32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getFloat32() { - return float32; - } - - - public void setFloat32(Integer float32) { - this.float32 = float32; - } - - - public DimensionTileExtent float64(Integer float64) { - - this.float64 = float64; - return this; - } - - /** - * Get float64 - * @return float64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getFloat64() { - return float64; - } - - - public void setFloat64(Integer float64) { - this.float64 = float64; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public DimensionTileExtent putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DimensionTileExtent dimensionTileExtent = (DimensionTileExtent) o; - return Objects.equals(this.int8, dimensionTileExtent.int8) && - Objects.equals(this.uint8, dimensionTileExtent.uint8) && - Objects.equals(this.int16, dimensionTileExtent.int16) && - Objects.equals(this.uint16, dimensionTileExtent.uint16) && - Objects.equals(this.int32, dimensionTileExtent.int32) && - Objects.equals(this.uint32, dimensionTileExtent.uint32) && - Objects.equals(this.int64, dimensionTileExtent.int64) && - Objects.equals(this.uint64, dimensionTileExtent.uint64) && - Objects.equals(this.float32, dimensionTileExtent.float32) && - Objects.equals(this.float64, dimensionTileExtent.float64)&& - Objects.equals(this.additionalProperties, dimensionTileExtent.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DimensionTileExtent {\n"); - sb.append(" int8: ").append(toIndentedString(int8)).append("\n"); - sb.append(" uint8: ").append(toIndentedString(uint8)).append("\n"); - sb.append(" int16: ").append(toIndentedString(int16)).append("\n"); - sb.append(" uint16: ").append(toIndentedString(uint16)).append("\n"); - sb.append(" int32: ").append(toIndentedString(int32)).append("\n"); - sb.append(" uint32: ").append(toIndentedString(uint32)).append("\n"); - sb.append(" int64: ").append(toIndentedString(int64)).append("\n"); - sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); - sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); - sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("int8"); - openapiFields.add("uint8"); - openapiFields.add("int16"); - openapiFields.add("uint16"); - openapiFields.add("int32"); - openapiFields.add("uint32"); - openapiFields.add("int64"); - openapiFields.add("uint64"); - openapiFields.add("float32"); - openapiFields.add("float64"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DimensionTileExtent - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DimensionTileExtent.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionTileExtent is not found in the empty JSON string", DimensionTileExtent.openapiRequiredFields.toString())); - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DimensionTileExtent.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DimensionTileExtent' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DimensionTileExtent.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DimensionTileExtent value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public DimensionTileExtent read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - DimensionTileExtent instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DimensionTileExtent given an JSON string - * - * @param jsonString JSON string - * @return An instance of DimensionTileExtent - * @throws IOException if the JSON string is invalid with respect to DimensionTileExtent - */ - public static DimensionTileExtent fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DimensionTileExtent.class); - } - - /** - * Convert an instance of DimensionTileExtent to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Domain.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Domain.java deleted file mode 100644 index 8583d36..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Domain.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Domain of array - */ -@ApiModel(description = "Domain of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Domain { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Datatype type; - - public static final String SERIALIZED_NAME_TILE_ORDER = "tileOrder"; - @SerializedName(SERIALIZED_NAME_TILE_ORDER) - private Layout tileOrder; - - public static final String SERIALIZED_NAME_CELL_ORDER = "cellOrder"; - @SerializedName(SERIALIZED_NAME_CELL_ORDER) - private Layout cellOrder; - - public static final String SERIALIZED_NAME_DIMENSIONS = "dimensions"; - @SerializedName(SERIALIZED_NAME_DIMENSIONS) - private List dimensions = new ArrayList<>(); - - public Domain() { - } - - public Domain type(Datatype type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Datatype getType() { - return type; - } - - - public void setType(Datatype type) { - this.type = type; - } - - - public Domain tileOrder(Layout tileOrder) { - - this.tileOrder = tileOrder; - return this; - } - - /** - * Get tileOrder - * @return tileOrder - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Layout getTileOrder() { - return tileOrder; - } - - - public void setTileOrder(Layout tileOrder) { - this.tileOrder = tileOrder; - } - - - public Domain cellOrder(Layout cellOrder) { - - this.cellOrder = cellOrder; - return this; - } - - /** - * Get cellOrder - * @return cellOrder - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Layout getCellOrder() { - return cellOrder; - } - - - public void setCellOrder(Layout cellOrder) { - this.cellOrder = cellOrder; - } - - - public Domain dimensions(List dimensions) { - - this.dimensions = dimensions; - return this; - } - - public Domain addDimensionsItem(Dimension dimensionsItem) { - this.dimensions.add(dimensionsItem); - return this; - } - - /** - * Array of dimensions - * @return dimensions - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Array of dimensions") - - public List getDimensions() { - return dimensions; - } - - - public void setDimensions(List dimensions) { - this.dimensions = dimensions; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Domain putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Domain domain = (Domain) o; - return Objects.equals(this.type, domain.type) && - Objects.equals(this.tileOrder, domain.tileOrder) && - Objects.equals(this.cellOrder, domain.cellOrder) && - Objects.equals(this.dimensions, domain.dimensions)&& - Objects.equals(this.additionalProperties, domain.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, tileOrder, cellOrder, dimensions, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Domain {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" tileOrder: ").append(toIndentedString(tileOrder)).append("\n"); - sb.append(" cellOrder: ").append(toIndentedString(cellOrder)).append("\n"); - sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("tileOrder"); - openapiFields.add("cellOrder"); - openapiFields.add("dimensions"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("tileOrder"); - openapiRequiredFields.add("cellOrder"); - openapiRequiredFields.add("dimensions"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Domain - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Domain.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Domain is not found in the empty JSON string", Domain.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Domain.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - JsonArray jsonArraydimensions = jsonObj.getAsJsonArray("dimensions"); - if (jsonArraydimensions != null) { - // ensure the json data is an array - if (!jsonObj.get("dimensions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); - } - - // validate the optional field `dimensions` (array) - for (int i = 0; i < jsonArraydimensions.size(); i++) { - Dimension.validateJsonObject(jsonArraydimensions.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Domain.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Domain' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Domain.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Domain value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Domain read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Domain instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Domain given an JSON string - * - * @param jsonString JSON string - * @return An instance of Domain - * @throws IOException if the JSON string is invalid with respect to Domain - */ - public static Domain fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Domain.class); - } - - /** - * Convert an instance of Domain to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/DomainArray.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/DomainArray.java deleted file mode 100644 index b260444..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/DomainArray.java +++ /dev/null @@ -1,654 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Domain object for an array of each type - */ -@ApiModel(description = "Domain object for an array of each type") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class DomainArray { - public static final String SERIALIZED_NAME_INT8 = "int8"; - @SerializedName(SERIALIZED_NAME_INT8) - private List int8 = null; - - public static final String SERIALIZED_NAME_UINT8 = "uint8"; - @SerializedName(SERIALIZED_NAME_UINT8) - private List uint8 = null; - - public static final String SERIALIZED_NAME_INT16 = "int16"; - @SerializedName(SERIALIZED_NAME_INT16) - private List int16 = null; - - public static final String SERIALIZED_NAME_UINT16 = "uint16"; - @SerializedName(SERIALIZED_NAME_UINT16) - private List uint16 = null; - - public static final String SERIALIZED_NAME_INT32 = "int32"; - @SerializedName(SERIALIZED_NAME_INT32) - private List int32 = null; - - public static final String SERIALIZED_NAME_UINT32 = "uint32"; - @SerializedName(SERIALIZED_NAME_UINT32) - private List uint32 = null; - - public static final String SERIALIZED_NAME_INT64 = "int64"; - @SerializedName(SERIALIZED_NAME_INT64) - private List int64 = null; - - public static final String SERIALIZED_NAME_UINT64 = "uint64"; - @SerializedName(SERIALIZED_NAME_UINT64) - private List uint64 = null; - - public static final String SERIALIZED_NAME_FLOAT32 = "float32"; - @SerializedName(SERIALIZED_NAME_FLOAT32) - private List float32 = null; - - public static final String SERIALIZED_NAME_FLOAT64 = "float64"; - @SerializedName(SERIALIZED_NAME_FLOAT64) - private List float64 = null; - - public DomainArray() { - } - - public DomainArray int8(List int8) { - - this.int8 = int8; - return this; - } - - public DomainArray addInt8Item(Integer int8Item) { - if (this.int8 == null) { - this.int8 = new ArrayList<>(); - } - this.int8.add(int8Item); - return this; - } - - /** - * Get int8 - * @return int8 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getInt8() { - return int8; - } - - - public void setInt8(List int8) { - this.int8 = int8; - } - - - public DomainArray uint8(List uint8) { - - this.uint8 = uint8; - return this; - } - - public DomainArray addUint8Item(Integer uint8Item) { - if (this.uint8 == null) { - this.uint8 = new ArrayList<>(); - } - this.uint8.add(uint8Item); - return this; - } - - /** - * Get uint8 - * @return uint8 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getUint8() { - return uint8; - } - - - public void setUint8(List uint8) { - this.uint8 = uint8; - } - - - public DomainArray int16(List int16) { - - this.int16 = int16; - return this; - } - - public DomainArray addInt16Item(Integer int16Item) { - if (this.int16 == null) { - this.int16 = new ArrayList<>(); - } - this.int16.add(int16Item); - return this; - } - - /** - * Get int16 - * @return int16 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getInt16() { - return int16; - } - - - public void setInt16(List int16) { - this.int16 = int16; - } - - - public DomainArray uint16(List uint16) { - - this.uint16 = uint16; - return this; - } - - public DomainArray addUint16Item(Integer uint16Item) { - if (this.uint16 == null) { - this.uint16 = new ArrayList<>(); - } - this.uint16.add(uint16Item); - return this; - } - - /** - * Get uint16 - * @return uint16 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getUint16() { - return uint16; - } - - - public void setUint16(List uint16) { - this.uint16 = uint16; - } - - - public DomainArray int32(List int32) { - - this.int32 = int32; - return this; - } - - public DomainArray addInt32Item(Integer int32Item) { - if (this.int32 == null) { - this.int32 = new ArrayList<>(); - } - this.int32.add(int32Item); - return this; - } - - /** - * Get int32 - * @return int32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getInt32() { - return int32; - } - - - public void setInt32(List int32) { - this.int32 = int32; - } - - - public DomainArray uint32(List uint32) { - - this.uint32 = uint32; - return this; - } - - public DomainArray addUint32Item(Integer uint32Item) { - if (this.uint32 == null) { - this.uint32 = new ArrayList<>(); - } - this.uint32.add(uint32Item); - return this; - } - - /** - * Get uint32 - * @return uint32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getUint32() { - return uint32; - } - - - public void setUint32(List uint32) { - this.uint32 = uint32; - } - - - public DomainArray int64(List int64) { - - this.int64 = int64; - return this; - } - - public DomainArray addInt64Item(Long int64Item) { - if (this.int64 == null) { - this.int64 = new ArrayList<>(); - } - this.int64.add(int64Item); - return this; - } - - /** - * Get int64 - * @return int64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getInt64() { - return int64; - } - - - public void setInt64(List int64) { - this.int64 = int64; - } - - - public DomainArray uint64(List uint64) { - - this.uint64 = uint64; - return this; - } - - public DomainArray addUint64Item(Integer uint64Item) { - if (this.uint64 == null) { - this.uint64 = new ArrayList<>(); - } - this.uint64.add(uint64Item); - return this; - } - - /** - * Get uint64 - * @return uint64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getUint64() { - return uint64; - } - - - public void setUint64(List uint64) { - this.uint64 = uint64; - } - - - public DomainArray float32(List float32) { - - this.float32 = float32; - return this; - } - - public DomainArray addFloat32Item(Float float32Item) { - if (this.float32 == null) { - this.float32 = new ArrayList<>(); - } - this.float32.add(float32Item); - return this; - } - - /** - * Get float32 - * @return float32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getFloat32() { - return float32; - } - - - public void setFloat32(List float32) { - this.float32 = float32; - } - - - public DomainArray float64(List float64) { - - this.float64 = float64; - return this; - } - - public DomainArray addFloat64Item(Double float64Item) { - if (this.float64 == null) { - this.float64 = new ArrayList<>(); - } - this.float64.add(float64Item); - return this; - } - - /** - * Get float64 - * @return float64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getFloat64() { - return float64; - } - - - public void setFloat64(List float64) { - this.float64 = float64; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public DomainArray putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DomainArray domainArray = (DomainArray) o; - return Objects.equals(this.int8, domainArray.int8) && - Objects.equals(this.uint8, domainArray.uint8) && - Objects.equals(this.int16, domainArray.int16) && - Objects.equals(this.uint16, domainArray.uint16) && - Objects.equals(this.int32, domainArray.int32) && - Objects.equals(this.uint32, domainArray.uint32) && - Objects.equals(this.int64, domainArray.int64) && - Objects.equals(this.uint64, domainArray.uint64) && - Objects.equals(this.float32, domainArray.float32) && - Objects.equals(this.float64, domainArray.float64)&& - Objects.equals(this.additionalProperties, domainArray.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DomainArray {\n"); - sb.append(" int8: ").append(toIndentedString(int8)).append("\n"); - sb.append(" uint8: ").append(toIndentedString(uint8)).append("\n"); - sb.append(" int16: ").append(toIndentedString(int16)).append("\n"); - sb.append(" uint16: ").append(toIndentedString(uint16)).append("\n"); - sb.append(" int32: ").append(toIndentedString(int32)).append("\n"); - sb.append(" uint32: ").append(toIndentedString(uint32)).append("\n"); - sb.append(" int64: ").append(toIndentedString(int64)).append("\n"); - sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); - sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); - sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("int8"); - openapiFields.add("uint8"); - openapiFields.add("int16"); - openapiFields.add("uint16"); - openapiFields.add("int32"); - openapiFields.add("uint32"); - openapiFields.add("int64"); - openapiFields.add("uint64"); - openapiFields.add("float32"); - openapiFields.add("float64"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DomainArray - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DomainArray.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in DomainArray is not found in the empty JSON string", DomainArray.openapiRequiredFields.toString())); - } - } - // ensure the json data is an array - if (jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `int8` to be an array in the JSON string but got `%s`", jsonObj.get("int8").toString())); - } - // ensure the json data is an array - if (jsonObj.get("uint8") != null && !jsonObj.get("uint8").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `uint8` to be an array in the JSON string but got `%s`", jsonObj.get("uint8").toString())); - } - // ensure the json data is an array - if (jsonObj.get("int16") != null && !jsonObj.get("int16").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `int16` to be an array in the JSON string but got `%s`", jsonObj.get("int16").toString())); - } - // ensure the json data is an array - if (jsonObj.get("uint16") != null && !jsonObj.get("uint16").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `uint16` to be an array in the JSON string but got `%s`", jsonObj.get("uint16").toString())); - } - // ensure the json data is an array - if (jsonObj.get("int32") != null && !jsonObj.get("int32").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `int32` to be an array in the JSON string but got `%s`", jsonObj.get("int32").toString())); - } - // ensure the json data is an array - if (jsonObj.get("uint32") != null && !jsonObj.get("uint32").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `uint32` to be an array in the JSON string but got `%s`", jsonObj.get("uint32").toString())); - } - // ensure the json data is an array - if (jsonObj.get("int64") != null && !jsonObj.get("int64").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `int64` to be an array in the JSON string but got `%s`", jsonObj.get("int64").toString())); - } - // ensure the json data is an array - if (jsonObj.get("uint64") != null && !jsonObj.get("uint64").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `uint64` to be an array in the JSON string but got `%s`", jsonObj.get("uint64").toString())); - } - // ensure the json data is an array - if (jsonObj.get("float32") != null && !jsonObj.get("float32").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `float32` to be an array in the JSON string but got `%s`", jsonObj.get("float32").toString())); - } - // ensure the json data is an array - if (jsonObj.get("float64") != null && !jsonObj.get("float64").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `float64` to be an array in the JSON string but got `%s`", jsonObj.get("float64").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DomainArray.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DomainArray' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DomainArray.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DomainArray value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public DomainArray read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - DomainArray instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DomainArray given an JSON string - * - * @param jsonString JSON string - * @return An instance of DomainArray - * @throws IOException if the JSON string is invalid with respect to DomainArray - */ - public static DomainArray fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DomainArray.class); - } - - /** - * Convert an instance of DomainArray to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Error.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Error.java deleted file mode 100644 index 6721389..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Error.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Error - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Error { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Long code; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_REQUEST_ID = "request_id"; - @SerializedName(SERIALIZED_NAME_REQUEST_ID) - private String requestId; - - public Error() { - } - - public Error code(Long code) { - - this.code = code; - return this; - } - - /** - * Get code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Long getCode() { - return code; - } - - - public void setCode(Long code) { - this.code = code; - } - - - public Error message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public Error requestId(String requestId) { - - this.requestId = requestId; - return this; - } - - /** - * Get requestId - * @return requestId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRequestId() { - return requestId; - } - - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Error putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Error error = (Error) o; - return Objects.equals(this.code, error.code) && - Objects.equals(this.message, error.message) && - Objects.equals(this.requestId, error.requestId)&& - Objects.equals(this.additionalProperties, error.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, message, requestId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Error {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("message"); - openapiFields.add("request_id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Error - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Error.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("message") != null && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - if (jsonObj.get("request_id") != null && !jsonObj.get("request_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `request_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Error.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Error' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Error.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Error value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Error read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Error instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Error given an JSON string - * - * @param jsonString JSON string - * @return An instance of Error - * @throws IOException if the JSON string is invalid with respect to Error - */ - public static Error fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Error.class); - } - - /** - * Convert an instance of Error to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FileUploaded.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/FileUploaded.java deleted file mode 100644 index 6d52857..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FileUploaded.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Uploaded file name and information - */ -@ApiModel(description = "Uploaded file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class FileUploaded { - public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; - @SerializedName(SERIALIZED_NAME_OUTPUT_URI) - private String outputUri; - - public static final String SERIALIZED_NAME_FILE_NAME = "file_name"; - @SerializedName(SERIALIZED_NAME_FILE_NAME) - private String fileName; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public FileUploaded() { - } - - public FileUploaded outputUri(String outputUri) { - - this.outputUri = outputUri; - return this; - } - - /** - * output location of the TileDB File - * @return outputUri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - - public String getOutputUri() { - return outputUri; - } - - - public void setOutputUri(String outputUri) { - this.outputUri = outputUri; - } - - - public FileUploaded fileName(String fileName) { - - this.fileName = fileName; - return this; - } - - /** - * name of the file uploaded - * @return fileName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "name of the file uploaded") - - public String getFileName() { - return fileName; - } - - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - - public FileUploaded id(String id) { - - this.id = id; - return this; - } - - /** - * unique ID of the uploaded file - * @return id - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the uploaded file") - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public FileUploaded putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FileUploaded fileUploaded = (FileUploaded) o; - return Objects.equals(this.outputUri, fileUploaded.outputUri) && - Objects.equals(this.fileName, fileUploaded.fileName) && - Objects.equals(this.id, fileUploaded.id)&& - Objects.equals(this.additionalProperties, fileUploaded.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(outputUri, fileName, id, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FileUploaded {\n"); - sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); - sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("output_uri"); - openapiFields.add("file_name"); - openapiFields.add("id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FileUploaded - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FileUploaded.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in FileUploaded is not found in the empty JSON string", FileUploaded.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : FileUploaded.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); - } - if (jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `file_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_name").toString())); - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FileUploaded.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FileUploaded' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FileUploaded.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FileUploaded value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FileUploaded read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FileUploaded instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FileUploaded given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileUploaded - * @throws IOException if the JSON string is invalid with respect to FileUploaded - */ - public static FileUploaded fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FileUploaded.class); - } - - /** - * Convert an instance of FileUploaded to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Filter.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Filter.java deleted file mode 100644 index 7bb70e6..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Filter.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Filter - */ -@ApiModel(description = "Filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Filter { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private FilterType type; - - public static final String SERIALIZED_NAME_FLOAT_SCALE_CONFIG = "floatScaleConfig"; - @SerializedName(SERIALIZED_NAME_FLOAT_SCALE_CONFIG) - private FloatScaleConfig floatScaleConfig; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private FilterData data; - - public Filter() { - } - - public Filter type(FilterType type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public FilterType getType() { - return type; - } - - - public void setType(FilterType type) { - this.type = type; - } - - - public Filter floatScaleConfig(FloatScaleConfig floatScaleConfig) { - - this.floatScaleConfig = floatScaleConfig; - return this; - } - - /** - * Get floatScaleConfig - * @return floatScaleConfig - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public FloatScaleConfig getFloatScaleConfig() { - return floatScaleConfig; - } - - - public void setFloatScaleConfig(FloatScaleConfig floatScaleConfig) { - this.floatScaleConfig = floatScaleConfig; - } - - - public Filter data(FilterData data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public FilterData getData() { - return data; - } - - - public void setData(FilterData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Filter putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Filter filter = (Filter) o; - return Objects.equals(this.type, filter.type) && - Objects.equals(this.floatScaleConfig, filter.floatScaleConfig) && - Objects.equals(this.data, filter.data)&& - Objects.equals(this.additionalProperties, filter.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, floatScaleConfig, data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Filter {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" floatScaleConfig: ").append(toIndentedString(floatScaleConfig)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("floatScaleConfig"); - openapiFields.add("data"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Filter - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Filter.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Filter is not found in the empty JSON string", Filter.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Filter.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the optional field `floatScaleConfig` - if (jsonObj.getAsJsonObject("floatScaleConfig") != null) { - FloatScaleConfig.validateJsonObject(jsonObj.getAsJsonObject("floatScaleConfig")); - } - // validate the optional field `data` - if (jsonObj.getAsJsonObject("data") != null) { - FilterData.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Filter.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Filter' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Filter.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Filter value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Filter read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Filter instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Filter given an JSON string - * - * @param jsonString JSON string - * @return An instance of Filter - * @throws IOException if the JSON string is invalid with respect to Filter - */ - public static Filter fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Filter.class); - } - - /** - * Convert an instance of Filter to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterData.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterData.java deleted file mode 100644 index dfa1af2..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterData.java +++ /dev/null @@ -1,609 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Filter data - */ -@ApiModel(description = "Filter data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class FilterData { - public static final String SERIALIZED_NAME_TEXT = "text"; - @SerializedName(SERIALIZED_NAME_TEXT) - private String text; - - public static final String SERIALIZED_NAME_BYTES = "bytes"; - @SerializedName(SERIALIZED_NAME_BYTES) - private List bytes = null; - - public static final String SERIALIZED_NAME_INT8 = "int8"; - @SerializedName(SERIALIZED_NAME_INT8) - private Integer int8; - - public static final String SERIALIZED_NAME_UINT8 = "uint8"; - @SerializedName(SERIALIZED_NAME_UINT8) - private Integer uint8; - - public static final String SERIALIZED_NAME_INT16 = "int16"; - @SerializedName(SERIALIZED_NAME_INT16) - private Integer int16; - - public static final String SERIALIZED_NAME_UINT16 = "uint16"; - @SerializedName(SERIALIZED_NAME_UINT16) - private Integer uint16; - - public static final String SERIALIZED_NAME_INT32 = "int32"; - @SerializedName(SERIALIZED_NAME_INT32) - private Integer int32; - - public static final String SERIALIZED_NAME_UINT32 = "uint32"; - @SerializedName(SERIALIZED_NAME_UINT32) - private Integer uint32; - - public static final String SERIALIZED_NAME_INT64 = "int64"; - @SerializedName(SERIALIZED_NAME_INT64) - private Long int64; - - public static final String SERIALIZED_NAME_UINT64 = "uint64"; - @SerializedName(SERIALIZED_NAME_UINT64) - private Integer uint64; - - public static final String SERIALIZED_NAME_FLOAT32 = "float32"; - @SerializedName(SERIALIZED_NAME_FLOAT32) - private Integer float32; - - public static final String SERIALIZED_NAME_FLOAT64 = "float64"; - @SerializedName(SERIALIZED_NAME_FLOAT64) - private Integer float64; - - public FilterData() { - } - - public FilterData text(String text) { - - this.text = text; - return this; - } - - /** - * Get text - * @return text - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getText() { - return text; - } - - - public void setText(String text) { - this.text = text; - } - - - public FilterData bytes(List bytes) { - - this.bytes = bytes; - return this; - } - - public FilterData addBytesItem(Integer bytesItem) { - if (this.bytes == null) { - this.bytes = new ArrayList<>(); - } - this.bytes.add(bytesItem); - return this; - } - - /** - * Get bytes - * @return bytes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getBytes() { - return bytes; - } - - - public void setBytes(List bytes) { - this.bytes = bytes; - } - - - public FilterData int8(Integer int8) { - - this.int8 = int8; - return this; - } - - /** - * Get int8 - * @return int8 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getInt8() { - return int8; - } - - - public void setInt8(Integer int8) { - this.int8 = int8; - } - - - public FilterData uint8(Integer uint8) { - - this.uint8 = uint8; - return this; - } - - /** - * Get uint8 - * @return uint8 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint8() { - return uint8; - } - - - public void setUint8(Integer uint8) { - this.uint8 = uint8; - } - - - public FilterData int16(Integer int16) { - - this.int16 = int16; - return this; - } - - /** - * Get int16 - * @return int16 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getInt16() { - return int16; - } - - - public void setInt16(Integer int16) { - this.int16 = int16; - } - - - public FilterData uint16(Integer uint16) { - - this.uint16 = uint16; - return this; - } - - /** - * Get uint16 - * @return uint16 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint16() { - return uint16; - } - - - public void setUint16(Integer uint16) { - this.uint16 = uint16; - } - - - public FilterData int32(Integer int32) { - - this.int32 = int32; - return this; - } - - /** - * Get int32 - * @return int32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getInt32() { - return int32; - } - - - public void setInt32(Integer int32) { - this.int32 = int32; - } - - - public FilterData uint32(Integer uint32) { - - this.uint32 = uint32; - return this; - } - - /** - * Get uint32 - * @return uint32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint32() { - return uint32; - } - - - public void setUint32(Integer uint32) { - this.uint32 = uint32; - } - - - public FilterData int64(Long int64) { - - this.int64 = int64; - return this; - } - - /** - * Get int64 - * @return int64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Long getInt64() { - return int64; - } - - - public void setInt64(Long int64) { - this.int64 = int64; - } - - - public FilterData uint64(Integer uint64) { - - this.uint64 = uint64; - return this; - } - - /** - * Get uint64 - * @return uint64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getUint64() { - return uint64; - } - - - public void setUint64(Integer uint64) { - this.uint64 = uint64; - } - - - public FilterData float32(Integer float32) { - - this.float32 = float32; - return this; - } - - /** - * Get float32 - * @return float32 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getFloat32() { - return float32; - } - - - public void setFloat32(Integer float32) { - this.float32 = float32; - } - - - public FilterData float64(Integer float64) { - - this.float64 = float64; - return this; - } - - /** - * Get float64 - * @return float64 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getFloat64() { - return float64; - } - - - public void setFloat64(Integer float64) { - this.float64 = float64; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public FilterData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FilterData filterData = (FilterData) o; - return Objects.equals(this.text, filterData.text) && - Objects.equals(this.bytes, filterData.bytes) && - Objects.equals(this.int8, filterData.int8) && - Objects.equals(this.uint8, filterData.uint8) && - Objects.equals(this.int16, filterData.int16) && - Objects.equals(this.uint16, filterData.uint16) && - Objects.equals(this.int32, filterData.int32) && - Objects.equals(this.uint32, filterData.uint32) && - Objects.equals(this.int64, filterData.int64) && - Objects.equals(this.uint64, filterData.uint64) && - Objects.equals(this.float32, filterData.float32) && - Objects.equals(this.float64, filterData.float64)&& - Objects.equals(this.additionalProperties, filterData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(text, bytes, int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FilterData {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" bytes: ").append(toIndentedString(bytes)).append("\n"); - sb.append(" int8: ").append(toIndentedString(int8)).append("\n"); - sb.append(" uint8: ").append(toIndentedString(uint8)).append("\n"); - sb.append(" int16: ").append(toIndentedString(int16)).append("\n"); - sb.append(" uint16: ").append(toIndentedString(uint16)).append("\n"); - sb.append(" int32: ").append(toIndentedString(int32)).append("\n"); - sb.append(" uint32: ").append(toIndentedString(uint32)).append("\n"); - sb.append(" int64: ").append(toIndentedString(int64)).append("\n"); - sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); - sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); - sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("text"); - openapiFields.add("bytes"); - openapiFields.add("int8"); - openapiFields.add("uint8"); - openapiFields.add("int16"); - openapiFields.add("uint16"); - openapiFields.add("int32"); - openapiFields.add("uint32"); - openapiFields.add("int64"); - openapiFields.add("uint64"); - openapiFields.add("float32"); - openapiFields.add("float64"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FilterData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FilterData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in FilterData is not found in the empty JSON string", FilterData.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("text") != null && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); - } - // ensure the json data is an array - if (jsonObj.get("bytes") != null && !jsonObj.get("bytes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bytes` to be an array in the JSON string but got `%s`", jsonObj.get("bytes").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FilterData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FilterData' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FilterData.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FilterData value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FilterData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FilterData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of FilterData - * @throws IOException if the JSON string is invalid with respect to FilterData - */ - public static FilterData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FilterData.class); - } - - /** - * Convert an instance of FilterData to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterPipeline.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterPipeline.java deleted file mode 100644 index bcf39a1..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterPipeline.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * One or more filters to apply - */ -@ApiModel(description = "One or more filters to apply") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class FilterPipeline { - public static final String SERIALIZED_NAME_FILTERS = "filters"; - @SerializedName(SERIALIZED_NAME_FILTERS) - private List filters = null; - - public FilterPipeline() { - } - - public FilterPipeline filters(List filters) { - - this.filters = filters; - return this; - } - - public FilterPipeline addFiltersItem(Filter filtersItem) { - if (this.filters == null) { - this.filters = new ArrayList<>(); - } - this.filters.add(filtersItem); - return this; - } - - /** - * Get filters - * @return filters - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getFilters() { - return filters; - } - - - public void setFilters(List filters) { - this.filters = filters; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public FilterPipeline putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FilterPipeline filterPipeline = (FilterPipeline) o; - return Objects.equals(this.filters, filterPipeline.filters)&& - Objects.equals(this.additionalProperties, filterPipeline.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(filters, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FilterPipeline {\n"); - sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("filters"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FilterPipeline - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FilterPipeline.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in FilterPipeline is not found in the empty JSON string", FilterPipeline.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); - if (jsonArrayfilters != null) { - // ensure the json data is an array - if (!jsonObj.get("filters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); - } - - // validate the optional field `filters` (array) - for (int i = 0; i < jsonArrayfilters.size(); i++) { - Filter.validateJsonObject(jsonArrayfilters.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FilterPipeline.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FilterPipeline' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FilterPipeline.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FilterPipeline value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FilterPipeline read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FilterPipeline instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FilterPipeline given an JSON string - * - * @param jsonString JSON string - * @return An instance of FilterPipeline - * @throws IOException if the JSON string is invalid with respect to FilterPipeline - */ - public static FilterPipeline fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FilterPipeline.class); - } - - /** - * Convert an instance of FilterPipeline to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterType.java deleted file mode 100644 index a21df01..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FilterType.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * TileDB filter types - */ -@JsonAdapter(FilterType.Adapter.class) -public enum FilterType { - - NONE("FILTER_NONE"), - - GZIP("FILTER_GZIP"), - - ZSTD("FILTER_ZSTD"), - - LZ4("FILTER_LZ4"), - - RLE("FILTER_RLE"), - - BZIP2("FILTER_BZIP2"), - - DOUBLE_DELTA("FILTER_DOUBLE_DELTA"), - - BIT_WIDTH_REDUCTION("FILTER_BIT_WIDTH_REDUCTION"), - - BITSHUFFLE("FILTER_BITSHUFFLE"), - - BYTESHUFFLE("FILTER_BYTESHUFFLE"), - - POSITIVE_DELTA("FILTER_POSITIVE_DELTA"), - - SCALE_FLOAT("FILTER_SCALE_FLOAT"), - - WEBP("FILTER_WEBP"), - - CHECKSUM_MD5("FILTER_CHECKSUM_MD5"), - - CHECKSUM_SHA256("FILTER_CHECKSUM_SHA256"), - - DICTIONARY("FILTER_DICTIONARY"); - - private String value; - - FilterType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static FilterType fromValue(String value) { - for (FilterType b : FilterType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final FilterType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public FilterType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return FilterType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FloatScaleConfig.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/FloatScaleConfig.java deleted file mode 100644 index be9c3f8..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FloatScaleConfig.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * FloatScaleConfig - */ -@ApiModel(description = "FloatScaleConfig") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class FloatScaleConfig { - public static final String SERIALIZED_NAME_SCALE = "scale"; - @SerializedName(SERIALIZED_NAME_SCALE) - private Integer scale; - - public static final String SERIALIZED_NAME_OFFSET = "offset"; - @SerializedName(SERIALIZED_NAME_OFFSET) - private Integer offset; - - public static final String SERIALIZED_NAME_BYTE_WIDTH = "byteWidth"; - @SerializedName(SERIALIZED_NAME_BYTE_WIDTH) - private Integer byteWidth; - - public FloatScaleConfig() { - } - - public FloatScaleConfig scale(Integer scale) { - - this.scale = scale; - return this; - } - - /** - * Get scale - * @return scale - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getScale() { - return scale; - } - - - public void setScale(Integer scale) { - this.scale = scale; - } - - - public FloatScaleConfig offset(Integer offset) { - - this.offset = offset; - return this; - } - - /** - * Get offset - * @return offset - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getOffset() { - return offset; - } - - - public void setOffset(Integer offset) { - this.offset = offset; - } - - - public FloatScaleConfig byteWidth(Integer byteWidth) { - - this.byteWidth = byteWidth; - return this; - } - - /** - * Get byteWidth - * @return byteWidth - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getByteWidth() { - return byteWidth; - } - - - public void setByteWidth(Integer byteWidth) { - this.byteWidth = byteWidth; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public FloatScaleConfig putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FloatScaleConfig floatScaleConfig = (FloatScaleConfig) o; - return Objects.equals(this.scale, floatScaleConfig.scale) && - Objects.equals(this.offset, floatScaleConfig.offset) && - Objects.equals(this.byteWidth, floatScaleConfig.byteWidth)&& - Objects.equals(this.additionalProperties, floatScaleConfig.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(scale, offset, byteWidth, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FloatScaleConfig {\n"); - sb.append(" scale: ").append(toIndentedString(scale)).append("\n"); - sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); - sb.append(" byteWidth: ").append(toIndentedString(byteWidth)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("scale"); - openapiFields.add("offset"); - openapiFields.add("byteWidth"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FloatScaleConfig - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FloatScaleConfig.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in FloatScaleConfig is not found in the empty JSON string", FloatScaleConfig.openapiRequiredFields.toString())); - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FloatScaleConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FloatScaleConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FloatScaleConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FloatScaleConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FloatScaleConfig read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FloatScaleConfig instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FloatScaleConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of FloatScaleConfig - * @throws IOException if the JSON string is invalid with respect to FloatScaleConfig - */ - public static FloatScaleConfig fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FloatScaleConfig.class); - } - - /** - * Convert an instance of FloatScaleConfig to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FragmentMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/FragmentMetadata.java deleted file mode 100644 index ff198aa..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/FragmentMetadata.java +++ /dev/null @@ -1,1333 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.File; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Metadata of a fragment - */ -@ApiModel(description = "Metadata of a fragment") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class FragmentMetadata { - public static final String SERIALIZED_NAME_FILE_SIZES = "fileSizes"; - @SerializedName(SERIALIZED_NAME_FILE_SIZES) - private List fileSizes = null; - - public static final String SERIALIZED_NAME_FILE_VAR_SIZES = "fileVarSizes"; - @SerializedName(SERIALIZED_NAME_FILE_VAR_SIZES) - private List fileVarSizes = null; - - public static final String SERIALIZED_NAME_FILE_VALIDITY_SIZES = "fileValiditySizes"; - @SerializedName(SERIALIZED_NAME_FILE_VALIDITY_SIZES) - private List fileValiditySizes = null; - - public static final String SERIALIZED_NAME_FRAGMENT_URI = "fragmentUri"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_URI) - private String fragmentUri; - - public static final String SERIALIZED_NAME_HAS_TIMESTAMPS = "hasTimestamps"; - @SerializedName(SERIALIZED_NAME_HAS_TIMESTAMPS) - private Boolean hasTimestamps; - - public static final String SERIALIZED_NAME_HAS_DELETE_META = "hasDeleteMeta"; - @SerializedName(SERIALIZED_NAME_HAS_DELETE_META) - private Boolean hasDeleteMeta; - - public static final String SERIALIZED_NAME_SPARSE_TILE_NUM = "sparseTileNum"; - @SerializedName(SERIALIZED_NAME_SPARSE_TILE_NUM) - private BigDecimal sparseTileNum; - - public static final String SERIALIZED_NAME_TILE_INDEX_BASE = "tileIndexBase"; - @SerializedName(SERIALIZED_NAME_TILE_INDEX_BASE) - private BigDecimal tileIndexBase; - - public static final String SERIALIZED_NAME_TILE_OFFSETS = "tileOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_OFFSETS) - private List> tileOffsets = null; - - public static final String SERIALIZED_NAME_TILE_VAR_OFFSETS = "tileVarOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_VAR_OFFSETS) - private List> tileVarOffsets = null; - - public static final String SERIALIZED_NAME_TILE_VAR_SIZES = "tileVarSizes"; - @SerializedName(SERIALIZED_NAME_TILE_VAR_SIZES) - private List> tileVarSizes = null; - - public static final String SERIALIZED_NAME_TILE_VALIDITY_OFFSETS = "tileValidityOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_VALIDITY_OFFSETS) - private List> tileValidityOffsets = null; - - public static final String SERIALIZED_NAME_TILE_MIN_BUFFER = "tileMinBuffer"; - @SerializedName(SERIALIZED_NAME_TILE_MIN_BUFFER) - private List> tileMinBuffer = null; - - public static final String SERIALIZED_NAME_TILE_MIN_VAR_BUFFER = "tileMinVarBuffer"; - @SerializedName(SERIALIZED_NAME_TILE_MIN_VAR_BUFFER) - private List> tileMinVarBuffer = null; - - public static final String SERIALIZED_NAME_TILE_MAX_BUFFER = "tileMaxBuffer"; - @SerializedName(SERIALIZED_NAME_TILE_MAX_BUFFER) - private List> tileMaxBuffer = null; - - public static final String SERIALIZED_NAME_TILE_MAX_VAR_BUFFER = "tileMaxVarBuffer"; - @SerializedName(SERIALIZED_NAME_TILE_MAX_VAR_BUFFER) - private List> tileMaxVarBuffer = null; - - public static final String SERIALIZED_NAME_TILE_SUMS = "tileSums"; - @SerializedName(SERIALIZED_NAME_TILE_SUMS) - private List> tileSums = null; - - public static final String SERIALIZED_NAME_TILE_NULL_COUNTS = "tileNullCounts"; - @SerializedName(SERIALIZED_NAME_TILE_NULL_COUNTS) - private List> tileNullCounts = null; - - public static final String SERIALIZED_NAME_FRAGMENT_MINS = "fragmentMins"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_MINS) - private List> fragmentMins = null; - - public static final String SERIALIZED_NAME_FRAGMENT_MAXS = "fragmentMaxs"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_MAXS) - private List> fragmentMaxs = null; - - public static final String SERIALIZED_NAME_FRAGMENT_SUMS = "fragmentSums"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_SUMS) - private List fragmentSums = null; - - public static final String SERIALIZED_NAME_FRAGMENT_NULL_COUNTS = "fragmentNullCounts"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_NULL_COUNTS) - private List fragmentNullCounts = null; - - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; - - public static final String SERIALIZED_NAME_TIMESTAMP_RANGE = "timestampRange"; - @SerializedName(SERIALIZED_NAME_TIMESTAMP_RANGE) - private List timestampRange = null; - - public static final String SERIALIZED_NAME_LAST_TILE_CELL_NUM = "lastTileCellNum"; - @SerializedName(SERIALIZED_NAME_LAST_TILE_CELL_NUM) - private Integer lastTileCellNum; - - public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; - @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) - private NonEmptyDomainList nonEmptyDomain; - - public static final String SERIALIZED_NAME_RTREE = "rtree"; - @SerializedName(SERIALIZED_NAME_RTREE) - private File rtree; - - public static final String SERIALIZED_NAME_HAS_CONSOLIDATED_FOOTER = "hasConsolidatedFooter"; - @SerializedName(SERIALIZED_NAME_HAS_CONSOLIDATED_FOOTER) - private Boolean hasConsolidatedFooter; - - public static final String SERIALIZED_NAME_GT_OFFSETS = "gtOffsets"; - @SerializedName(SERIALIZED_NAME_GT_OFFSETS) - private GenericTileOffsets gtOffsets; - - public FragmentMetadata() { - } - - public FragmentMetadata fileSizes(List fileSizes) { - - this.fileSizes = fileSizes; - return this; - } - - public FragmentMetadata addFileSizesItem(BigDecimal fileSizesItem) { - if (this.fileSizes == null) { - this.fileSizes = new ArrayList<>(); - } - this.fileSizes.add(fileSizesItem); - return this; - } - - /** - * The size of each attribute file - * @return fileSizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The size of each attribute file") - - public List getFileSizes() { - return fileSizes; - } - - - public void setFileSizes(List fileSizes) { - this.fileSizes = fileSizes; - } - - - public FragmentMetadata fileVarSizes(List fileVarSizes) { - - this.fileVarSizes = fileVarSizes; - return this; - } - - public FragmentMetadata addFileVarSizesItem(BigDecimal fileVarSizesItem) { - if (this.fileVarSizes == null) { - this.fileVarSizes = new ArrayList<>(); - } - this.fileVarSizes.add(fileVarSizesItem); - return this; - } - - /** - * The size of each var attribute file - * @return fileVarSizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The size of each var attribute file") - - public List getFileVarSizes() { - return fileVarSizes; - } - - - public void setFileVarSizes(List fileVarSizes) { - this.fileVarSizes = fileVarSizes; - } - - - public FragmentMetadata fileValiditySizes(List fileValiditySizes) { - - this.fileValiditySizes = fileValiditySizes; - return this; - } - - public FragmentMetadata addFileValiditySizesItem(BigDecimal fileValiditySizesItem) { - if (this.fileValiditySizes == null) { - this.fileValiditySizes = new ArrayList<>(); - } - this.fileValiditySizes.add(fileValiditySizesItem); - return this; - } - - /** - * The size of each validity attribute file - * @return fileValiditySizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The size of each validity attribute file") - - public List getFileValiditySizes() { - return fileValiditySizes; - } - - - public void setFileValiditySizes(List fileValiditySizes) { - this.fileValiditySizes = fileValiditySizes; - } - - - public FragmentMetadata fragmentUri(String fragmentUri) { - - this.fragmentUri = fragmentUri; - return this; - } - - /** - * The uri of the fragment this metadata belongs to - * @return fragmentUri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The uri of the fragment this metadata belongs to") - - public String getFragmentUri() { - return fragmentUri; - } - - - public void setFragmentUri(String fragmentUri) { - this.fragmentUri = fragmentUri; - } - - - public FragmentMetadata hasTimestamps(Boolean hasTimestamps) { - - this.hasTimestamps = hasTimestamps; - return this; - } - - /** - * True if the fragment has timestamps - * @return hasTimestamps - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the fragment has timestamps") - - public Boolean getHasTimestamps() { - return hasTimestamps; - } - - - public void setHasTimestamps(Boolean hasTimestamps) { - this.hasTimestamps = hasTimestamps; - } - - - public FragmentMetadata hasDeleteMeta(Boolean hasDeleteMeta) { - - this.hasDeleteMeta = hasDeleteMeta; - return this; - } - - /** - * True if the fragment has delete metadata - * @return hasDeleteMeta - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the fragment has delete metadata") - - public Boolean getHasDeleteMeta() { - return hasDeleteMeta; - } - - - public void setHasDeleteMeta(Boolean hasDeleteMeta) { - this.hasDeleteMeta = hasDeleteMeta; - } - - - public FragmentMetadata sparseTileNum(BigDecimal sparseTileNum) { - - this.sparseTileNum = sparseTileNum; - return this; - } - - /** - * The number of sparse tiles - * @return sparseTileNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of sparse tiles") - - public BigDecimal getSparseTileNum() { - return sparseTileNum; - } - - - public void setSparseTileNum(BigDecimal sparseTileNum) { - this.sparseTileNum = sparseTileNum; - } - - - public FragmentMetadata tileIndexBase(BigDecimal tileIndexBase) { - - this.tileIndexBase = tileIndexBase; - return this; - } - - /** - * Used to track the tile index base between global order writes - * @return tileIndexBase - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Used to track the tile index base between global order writes") - - public BigDecimal getTileIndexBase() { - return tileIndexBase; - } - - - public void setTileIndexBase(BigDecimal tileIndexBase) { - this.tileIndexBase = tileIndexBase; - } - - - public FragmentMetadata tileOffsets(List> tileOffsets) { - - this.tileOffsets = tileOffsets; - return this; - } - - public FragmentMetadata addTileOffsetsItem(List tileOffsetsItem) { - if (this.tileOffsets == null) { - this.tileOffsets = new ArrayList<>(); - } - this.tileOffsets.add(tileOffsetsItem); - return this; - } - - /** - * Tile offsets in their attribute files - * @return tileOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Tile offsets in their attribute files") - - public List> getTileOffsets() { - return tileOffsets; - } - - - public void setTileOffsets(List> tileOffsets) { - this.tileOffsets = tileOffsets; - } - - - public FragmentMetadata tileVarOffsets(List> tileVarOffsets) { - - this.tileVarOffsets = tileVarOffsets; - return this; - } - - public FragmentMetadata addTileVarOffsetsItem(List tileVarOffsetsItem) { - if (this.tileVarOffsets == null) { - this.tileVarOffsets = new ArrayList<>(); - } - this.tileVarOffsets.add(tileVarOffsetsItem); - return this; - } - - /** - * Variable tile offsets in their attribute files - * @return tileVarOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Variable tile offsets in their attribute files") - - public List> getTileVarOffsets() { - return tileVarOffsets; - } - - - public void setTileVarOffsets(List> tileVarOffsets) { - this.tileVarOffsets = tileVarOffsets; - } - - - public FragmentMetadata tileVarSizes(List> tileVarSizes) { - - this.tileVarSizes = tileVarSizes; - return this; - } - - public FragmentMetadata addTileVarSizesItem(List tileVarSizesItem) { - if (this.tileVarSizes == null) { - this.tileVarSizes = new ArrayList<>(); - } - this.tileVarSizes.add(tileVarSizesItem); - return this; - } - - /** - * The sizes of the uncompressed variable tiles - * @return tileVarSizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The sizes of the uncompressed variable tiles") - - public List> getTileVarSizes() { - return tileVarSizes; - } - - - public void setTileVarSizes(List> tileVarSizes) { - this.tileVarSizes = tileVarSizes; - } - - - public FragmentMetadata tileValidityOffsets(List> tileValidityOffsets) { - - this.tileValidityOffsets = tileValidityOffsets; - return this; - } - - public FragmentMetadata addTileValidityOffsetsItem(List tileValidityOffsetsItem) { - if (this.tileValidityOffsets == null) { - this.tileValidityOffsets = new ArrayList<>(); - } - this.tileValidityOffsets.add(tileValidityOffsetsItem); - return this; - } - - /** - * Validity tile offests in their attribute files - * @return tileValidityOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Validity tile offests in their attribute files") - - public List> getTileValidityOffsets() { - return tileValidityOffsets; - } - - - public void setTileValidityOffsets(List> tileValidityOffsets) { - this.tileValidityOffsets = tileValidityOffsets; - } - - - public FragmentMetadata tileMinBuffer(List> tileMinBuffer) { - - this.tileMinBuffer = tileMinBuffer; - return this; - } - - public FragmentMetadata addTileMinBufferItem(List tileMinBufferItem) { - if (this.tileMinBuffer == null) { - this.tileMinBuffer = new ArrayList<>(); - } - this.tileMinBuffer.add(tileMinBufferItem); - return this; - } - - /** - * tile min buffers - * @return tileMinBuffer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile min buffers") - - public List> getTileMinBuffer() { - return tileMinBuffer; - } - - - public void setTileMinBuffer(List> tileMinBuffer) { - this.tileMinBuffer = tileMinBuffer; - } - - - public FragmentMetadata tileMinVarBuffer(List> tileMinVarBuffer) { - - this.tileMinVarBuffer = tileMinVarBuffer; - return this; - } - - public FragmentMetadata addTileMinVarBufferItem(List tileMinVarBufferItem) { - if (this.tileMinVarBuffer == null) { - this.tileMinVarBuffer = new ArrayList<>(); - } - this.tileMinVarBuffer.add(tileMinVarBufferItem); - return this; - } - - /** - * tile min buffers for var length data - * @return tileMinVarBuffer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile min buffers for var length data") - - public List> getTileMinVarBuffer() { - return tileMinVarBuffer; - } - - - public void setTileMinVarBuffer(List> tileMinVarBuffer) { - this.tileMinVarBuffer = tileMinVarBuffer; - } - - - public FragmentMetadata tileMaxBuffer(List> tileMaxBuffer) { - - this.tileMaxBuffer = tileMaxBuffer; - return this; - } - - public FragmentMetadata addTileMaxBufferItem(List tileMaxBufferItem) { - if (this.tileMaxBuffer == null) { - this.tileMaxBuffer = new ArrayList<>(); - } - this.tileMaxBuffer.add(tileMaxBufferItem); - return this; - } - - /** - * tile max buffers - * @return tileMaxBuffer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile max buffers") - - public List> getTileMaxBuffer() { - return tileMaxBuffer; - } - - - public void setTileMaxBuffer(List> tileMaxBuffer) { - this.tileMaxBuffer = tileMaxBuffer; - } - - - public FragmentMetadata tileMaxVarBuffer(List> tileMaxVarBuffer) { - - this.tileMaxVarBuffer = tileMaxVarBuffer; - return this; - } - - public FragmentMetadata addTileMaxVarBufferItem(List tileMaxVarBufferItem) { - if (this.tileMaxVarBuffer == null) { - this.tileMaxVarBuffer = new ArrayList<>(); - } - this.tileMaxVarBuffer.add(tileMaxVarBufferItem); - return this; - } - - /** - * tile max buffers for var length data - * @return tileMaxVarBuffer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile max buffers for var length data") - - public List> getTileMaxVarBuffer() { - return tileMaxVarBuffer; - } - - - public void setTileMaxVarBuffer(List> tileMaxVarBuffer) { - this.tileMaxVarBuffer = tileMaxVarBuffer; - } - - - public FragmentMetadata tileSums(List> tileSums) { - - this.tileSums = tileSums; - return this; - } - - public FragmentMetadata addTileSumsItem(List tileSumsItem) { - if (this.tileSums == null) { - this.tileSums = new ArrayList<>(); - } - this.tileSums.add(tileSumsItem); - return this; - } - - /** - * tile sum values - * @return tileSums - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile sum values") - - public List> getTileSums() { - return tileSums; - } - - - public void setTileSums(List> tileSums) { - this.tileSums = tileSums; - } - - - public FragmentMetadata tileNullCounts(List> tileNullCounts) { - - this.tileNullCounts = tileNullCounts; - return this; - } - - public FragmentMetadata addTileNullCountsItem(List tileNullCountsItem) { - if (this.tileNullCounts == null) { - this.tileNullCounts = new ArrayList<>(); - } - this.tileNullCounts.add(tileNullCountsItem); - return this; - } - - /** - * tile null count values - * @return tileNullCounts - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile null count values") - - public List> getTileNullCounts() { - return tileNullCounts; - } - - - public void setTileNullCounts(List> tileNullCounts) { - this.tileNullCounts = tileNullCounts; - } - - - public FragmentMetadata fragmentMins(List> fragmentMins) { - - this.fragmentMins = fragmentMins; - return this; - } - - public FragmentMetadata addFragmentMinsItem(List fragmentMinsItem) { - if (this.fragmentMins == null) { - this.fragmentMins = new ArrayList<>(); - } - this.fragmentMins.add(fragmentMinsItem); - return this; - } - - /** - * fragment min values - * @return fragmentMins - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fragment min values") - - public List> getFragmentMins() { - return fragmentMins; - } - - - public void setFragmentMins(List> fragmentMins) { - this.fragmentMins = fragmentMins; - } - - - public FragmentMetadata fragmentMaxs(List> fragmentMaxs) { - - this.fragmentMaxs = fragmentMaxs; - return this; - } - - public FragmentMetadata addFragmentMaxsItem(List fragmentMaxsItem) { - if (this.fragmentMaxs == null) { - this.fragmentMaxs = new ArrayList<>(); - } - this.fragmentMaxs.add(fragmentMaxsItem); - return this; - } - - /** - * fragment max values - * @return fragmentMaxs - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fragment max values") - - public List> getFragmentMaxs() { - return fragmentMaxs; - } - - - public void setFragmentMaxs(List> fragmentMaxs) { - this.fragmentMaxs = fragmentMaxs; - } - - - public FragmentMetadata fragmentSums(List fragmentSums) { - - this.fragmentSums = fragmentSums; - return this; - } - - public FragmentMetadata addFragmentSumsItem(BigDecimal fragmentSumsItem) { - if (this.fragmentSums == null) { - this.fragmentSums = new ArrayList<>(); - } - this.fragmentSums.add(fragmentSumsItem); - return this; - } - - /** - * fragment sum values - * @return fragmentSums - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fragment sum values") - - public List getFragmentSums() { - return fragmentSums; - } - - - public void setFragmentSums(List fragmentSums) { - this.fragmentSums = fragmentSums; - } - - - public FragmentMetadata fragmentNullCounts(List fragmentNullCounts) { - - this.fragmentNullCounts = fragmentNullCounts; - return this; - } - - public FragmentMetadata addFragmentNullCountsItem(BigDecimal fragmentNullCountsItem) { - if (this.fragmentNullCounts == null) { - this.fragmentNullCounts = new ArrayList<>(); - } - this.fragmentNullCounts.add(fragmentNullCountsItem); - return this; - } - - /** - * fragment null count values - * @return fragmentNullCounts - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fragment null count values") - - public List getFragmentNullCounts() { - return fragmentNullCounts; - } - - - public void setFragmentNullCounts(List fragmentNullCounts) { - this.fragmentNullCounts = fragmentNullCounts; - } - - - public FragmentMetadata version(Integer version) { - - this.version = version; - return this; - } - - /** - * the format version of this metadata - * @return version - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the format version of this metadata") - - public Integer getVersion() { - return version; - } - - - public void setVersion(Integer version) { - this.version = version; - } - - - public FragmentMetadata timestampRange(List timestampRange) { - - this.timestampRange = timestampRange; - return this; - } - - public FragmentMetadata addTimestampRangeItem(BigDecimal timestampRangeItem) { - if (this.timestampRange == null) { - this.timestampRange = new ArrayList<>(); - } - this.timestampRange.add(timestampRangeItem); - return this; - } - - /** - * A pair of timestamps for fragment - * @return timestampRange - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A pair of timestamps for fragment") - - public List getTimestampRange() { - return timestampRange; - } - - - public void setTimestampRange(List timestampRange) { - this.timestampRange = timestampRange; - } - - - public FragmentMetadata lastTileCellNum(Integer lastTileCellNum) { - - this.lastTileCellNum = lastTileCellNum; - return this; - } - - /** - * The number of cells in the last tile - * @return lastTileCellNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of cells in the last tile") - - public Integer getLastTileCellNum() { - return lastTileCellNum; - } - - - public void setLastTileCellNum(Integer lastTileCellNum) { - this.lastTileCellNum = lastTileCellNum; - } - - - public FragmentMetadata nonEmptyDomain(NonEmptyDomainList nonEmptyDomain) { - - this.nonEmptyDomain = nonEmptyDomain; - return this; - } - - /** - * Get nonEmptyDomain - * @return nonEmptyDomain - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public NonEmptyDomainList getNonEmptyDomain() { - return nonEmptyDomain; - } - - - public void setNonEmptyDomain(NonEmptyDomainList nonEmptyDomain) { - this.nonEmptyDomain = nonEmptyDomain; - } - - - public FragmentMetadata rtree(File rtree) { - - this.rtree = rtree; - return this; - } - - /** - * The RTree for the MBRs serialized as a blob - * @return rtree - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The RTree for the MBRs serialized as a blob") - - public File getRtree() { - return rtree; - } - - - public void setRtree(File rtree) { - this.rtree = rtree; - } - - - public FragmentMetadata hasConsolidatedFooter(Boolean hasConsolidatedFooter) { - - this.hasConsolidatedFooter = hasConsolidatedFooter; - return this; - } - - /** - * if the fragment metadata footer appears in a consolidated file - * @return hasConsolidatedFooter - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "if the fragment metadata footer appears in a consolidated file") - - public Boolean getHasConsolidatedFooter() { - return hasConsolidatedFooter; - } - - - public void setHasConsolidatedFooter(Boolean hasConsolidatedFooter) { - this.hasConsolidatedFooter = hasConsolidatedFooter; - } - - - public FragmentMetadata gtOffsets(GenericTileOffsets gtOffsets) { - - this.gtOffsets = gtOffsets; - return this; - } - - /** - * Get gtOffsets - * @return gtOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GenericTileOffsets getGtOffsets() { - return gtOffsets; - } - - - public void setGtOffsets(GenericTileOffsets gtOffsets) { - this.gtOffsets = gtOffsets; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public FragmentMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FragmentMetadata fragmentMetadata = (FragmentMetadata) o; - return Objects.equals(this.fileSizes, fragmentMetadata.fileSizes) && - Objects.equals(this.fileVarSizes, fragmentMetadata.fileVarSizes) && - Objects.equals(this.fileValiditySizes, fragmentMetadata.fileValiditySizes) && - Objects.equals(this.fragmentUri, fragmentMetadata.fragmentUri) && - Objects.equals(this.hasTimestamps, fragmentMetadata.hasTimestamps) && - Objects.equals(this.hasDeleteMeta, fragmentMetadata.hasDeleteMeta) && - Objects.equals(this.sparseTileNum, fragmentMetadata.sparseTileNum) && - Objects.equals(this.tileIndexBase, fragmentMetadata.tileIndexBase) && - Objects.equals(this.tileOffsets, fragmentMetadata.tileOffsets) && - Objects.equals(this.tileVarOffsets, fragmentMetadata.tileVarOffsets) && - Objects.equals(this.tileVarSizes, fragmentMetadata.tileVarSizes) && - Objects.equals(this.tileValidityOffsets, fragmentMetadata.tileValidityOffsets) && - Objects.equals(this.tileMinBuffer, fragmentMetadata.tileMinBuffer) && - Objects.equals(this.tileMinVarBuffer, fragmentMetadata.tileMinVarBuffer) && - Objects.equals(this.tileMaxBuffer, fragmentMetadata.tileMaxBuffer) && - Objects.equals(this.tileMaxVarBuffer, fragmentMetadata.tileMaxVarBuffer) && - Objects.equals(this.tileSums, fragmentMetadata.tileSums) && - Objects.equals(this.tileNullCounts, fragmentMetadata.tileNullCounts) && - Objects.equals(this.fragmentMins, fragmentMetadata.fragmentMins) && - Objects.equals(this.fragmentMaxs, fragmentMetadata.fragmentMaxs) && - Objects.equals(this.fragmentSums, fragmentMetadata.fragmentSums) && - Objects.equals(this.fragmentNullCounts, fragmentMetadata.fragmentNullCounts) && - Objects.equals(this.version, fragmentMetadata.version) && - Objects.equals(this.timestampRange, fragmentMetadata.timestampRange) && - Objects.equals(this.lastTileCellNum, fragmentMetadata.lastTileCellNum) && - Objects.equals(this.nonEmptyDomain, fragmentMetadata.nonEmptyDomain) && - Objects.equals(this.rtree, fragmentMetadata.rtree) && - Objects.equals(this.hasConsolidatedFooter, fragmentMetadata.hasConsolidatedFooter) && - Objects.equals(this.gtOffsets, fragmentMetadata.gtOffsets)&& - Objects.equals(this.additionalProperties, fragmentMetadata.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(fileSizes, fileVarSizes, fileValiditySizes, fragmentUri, hasTimestamps, hasDeleteMeta, sparseTileNum, tileIndexBase, tileOffsets, tileVarOffsets, tileVarSizes, tileValidityOffsets, tileMinBuffer, tileMinVarBuffer, tileMaxBuffer, tileMaxVarBuffer, tileSums, tileNullCounts, fragmentMins, fragmentMaxs, fragmentSums, fragmentNullCounts, version, timestampRange, lastTileCellNum, nonEmptyDomain, rtree, hasConsolidatedFooter, gtOffsets, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FragmentMetadata {\n"); - sb.append(" fileSizes: ").append(toIndentedString(fileSizes)).append("\n"); - sb.append(" fileVarSizes: ").append(toIndentedString(fileVarSizes)).append("\n"); - sb.append(" fileValiditySizes: ").append(toIndentedString(fileValiditySizes)).append("\n"); - sb.append(" fragmentUri: ").append(toIndentedString(fragmentUri)).append("\n"); - sb.append(" hasTimestamps: ").append(toIndentedString(hasTimestamps)).append("\n"); - sb.append(" hasDeleteMeta: ").append(toIndentedString(hasDeleteMeta)).append("\n"); - sb.append(" sparseTileNum: ").append(toIndentedString(sparseTileNum)).append("\n"); - sb.append(" tileIndexBase: ").append(toIndentedString(tileIndexBase)).append("\n"); - sb.append(" tileOffsets: ").append(toIndentedString(tileOffsets)).append("\n"); - sb.append(" tileVarOffsets: ").append(toIndentedString(tileVarOffsets)).append("\n"); - sb.append(" tileVarSizes: ").append(toIndentedString(tileVarSizes)).append("\n"); - sb.append(" tileValidityOffsets: ").append(toIndentedString(tileValidityOffsets)).append("\n"); - sb.append(" tileMinBuffer: ").append(toIndentedString(tileMinBuffer)).append("\n"); - sb.append(" tileMinVarBuffer: ").append(toIndentedString(tileMinVarBuffer)).append("\n"); - sb.append(" tileMaxBuffer: ").append(toIndentedString(tileMaxBuffer)).append("\n"); - sb.append(" tileMaxVarBuffer: ").append(toIndentedString(tileMaxVarBuffer)).append("\n"); - sb.append(" tileSums: ").append(toIndentedString(tileSums)).append("\n"); - sb.append(" tileNullCounts: ").append(toIndentedString(tileNullCounts)).append("\n"); - sb.append(" fragmentMins: ").append(toIndentedString(fragmentMins)).append("\n"); - sb.append(" fragmentMaxs: ").append(toIndentedString(fragmentMaxs)).append("\n"); - sb.append(" fragmentSums: ").append(toIndentedString(fragmentSums)).append("\n"); - sb.append(" fragmentNullCounts: ").append(toIndentedString(fragmentNullCounts)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" timestampRange: ").append(toIndentedString(timestampRange)).append("\n"); - sb.append(" lastTileCellNum: ").append(toIndentedString(lastTileCellNum)).append("\n"); - sb.append(" nonEmptyDomain: ").append(toIndentedString(nonEmptyDomain)).append("\n"); - sb.append(" rtree: ").append(toIndentedString(rtree)).append("\n"); - sb.append(" hasConsolidatedFooter: ").append(toIndentedString(hasConsolidatedFooter)).append("\n"); - sb.append(" gtOffsets: ").append(toIndentedString(gtOffsets)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fileSizes"); - openapiFields.add("fileVarSizes"); - openapiFields.add("fileValiditySizes"); - openapiFields.add("fragmentUri"); - openapiFields.add("hasTimestamps"); - openapiFields.add("hasDeleteMeta"); - openapiFields.add("sparseTileNum"); - openapiFields.add("tileIndexBase"); - openapiFields.add("tileOffsets"); - openapiFields.add("tileVarOffsets"); - openapiFields.add("tileVarSizes"); - openapiFields.add("tileValidityOffsets"); - openapiFields.add("tileMinBuffer"); - openapiFields.add("tileMinVarBuffer"); - openapiFields.add("tileMaxBuffer"); - openapiFields.add("tileMaxVarBuffer"); - openapiFields.add("tileSums"); - openapiFields.add("tileNullCounts"); - openapiFields.add("fragmentMins"); - openapiFields.add("fragmentMaxs"); - openapiFields.add("fragmentSums"); - openapiFields.add("fragmentNullCounts"); - openapiFields.add("version"); - openapiFields.add("timestampRange"); - openapiFields.add("lastTileCellNum"); - openapiFields.add("nonEmptyDomain"); - openapiFields.add("rtree"); - openapiFields.add("hasConsolidatedFooter"); - openapiFields.add("gtOffsets"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FragmentMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FragmentMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentMetadata is not found in the empty JSON string", FragmentMetadata.openapiRequiredFields.toString())); - } - } - // ensure the json data is an array - if (jsonObj.get("fileSizes") != null && !jsonObj.get("fileSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fileSizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileSizes").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fileVarSizes") != null && !jsonObj.get("fileVarSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileVarSizes").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fileValiditySizes") != null && !jsonObj.get("fileValiditySizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fileValiditySizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileValiditySizes").toString())); - } - if (jsonObj.get("fragmentUri") != null && !jsonObj.get("fragmentUri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fragmentUri").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileOffsets") != null && !jsonObj.get("tileOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileVarOffsets") != null && !jsonObj.get("tileVarOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileVarOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileVarSizes") != null && !jsonObj.get("tileVarSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarSizes").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileValidityOffsets") != null && !jsonObj.get("tileValidityOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileValidityOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileValidityOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileMinBuffer") != null && !jsonObj.get("tileMinBuffer").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileMinBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinBuffer").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileMinVarBuffer") != null && !jsonObj.get("tileMinVarBuffer").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileMinVarBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinVarBuffer").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileMaxBuffer") != null && !jsonObj.get("tileMaxBuffer").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileMaxBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxBuffer").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileMaxVarBuffer") != null && !jsonObj.get("tileMaxVarBuffer").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileMaxVarBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxVarBuffer").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileSums") != null && !jsonObj.get("tileSums").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileSums` to be an array in the JSON string but got `%s`", jsonObj.get("tileSums").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileNullCounts") != null && !jsonObj.get("tileNullCounts").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileNullCounts` to be an array in the JSON string but got `%s`", jsonObj.get("tileNullCounts").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fragmentMins") != null && !jsonObj.get("fragmentMins").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentMins` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMins").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fragmentMaxs") != null && !jsonObj.get("fragmentMaxs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentMaxs` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMaxs").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fragmentSums") != null && !jsonObj.get("fragmentSums").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentSums` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentSums").toString())); - } - // ensure the json data is an array - if (jsonObj.get("fragmentNullCounts") != null && !jsonObj.get("fragmentNullCounts").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentNullCounts` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentNullCounts").toString())); - } - // ensure the json data is an array - if (jsonObj.get("timestampRange") != null && !jsonObj.get("timestampRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `timestampRange` to be an array in the JSON string but got `%s`", jsonObj.get("timestampRange").toString())); - } - // validate the optional field `nonEmptyDomain` - if (jsonObj.getAsJsonObject("nonEmptyDomain") != null) { - NonEmptyDomainList.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); - } - // validate the optional field `gtOffsets` - if (jsonObj.getAsJsonObject("gtOffsets") != null) { - GenericTileOffsets.validateJsonObject(jsonObj.getAsJsonObject("gtOffsets")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FragmentMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FragmentMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FragmentMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FragmentMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FragmentMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FragmentMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FragmentMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentMetadata - * @throws IOException if the JSON string is invalid with respect to FragmentMetadata - */ - public static FragmentMetadata fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FragmentMetadata.class); - } - - /** - * Convert an instance of FragmentMetadata to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPInteroperabilityCredential.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPInteroperabilityCredential.java deleted file mode 100644 index 97caf14..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPInteroperabilityCredential.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Credential information to access Google Cloud. using well knows key/secret pair to access storage. - */ -@ApiModel(description = "Credential information to access Google Cloud. using well knows key/secret pair to access storage.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GCPInteroperabilityCredential { - public static final String SERIALIZED_NAME_ACCESS_KEY_ID = "access_key_id"; - @SerializedName(SERIALIZED_NAME_ACCESS_KEY_ID) - private String accessKeyId; - - public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; - @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) - private String secretAccessKey; - - public GCPInteroperabilityCredential() { - } - - public GCPInteroperabilityCredential accessKeyId(String accessKeyId) { - - this.accessKeyId = accessKeyId; - return this; - } - - /** - * The ID of the access key - * @return accessKeyId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The ID of the access key") - - public String getAccessKeyId() { - return accessKeyId; - } - - - public void setAccessKeyId(String accessKeyId) { - this.accessKeyId = accessKeyId; - } - - - public GCPInteroperabilityCredential secretAccessKey(String secretAccessKey) { - - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * The access key's secret. Never returned in responses. - * @return secretAccessKey - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The access key's secret. Never returned in responses.") - - public String getSecretAccessKey() { - return secretAccessKey; - } - - - public void setSecretAccessKey(String secretAccessKey) { - this.secretAccessKey = secretAccessKey; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GCPInteroperabilityCredential putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GCPInteroperabilityCredential gcPInteroperabilityCredential = (GCPInteroperabilityCredential) o; - return Objects.equals(this.accessKeyId, gcPInteroperabilityCredential.accessKeyId) && - Objects.equals(this.secretAccessKey, gcPInteroperabilityCredential.secretAccessKey)&& - Objects.equals(this.additionalProperties, gcPInteroperabilityCredential.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(accessKeyId, secretAccessKey, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GCPInteroperabilityCredential {\n"); - sb.append(" accessKeyId: ").append(toIndentedString(accessKeyId)).append("\n"); - sb.append(" secretAccessKey: ").append(toIndentedString(secretAccessKey)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("access_key_id"); - openapiFields.add("secret_access_key"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GCPInteroperabilityCredential - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GCPInteroperabilityCredential.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GCPInteroperabilityCredential is not found in the empty JSON string", GCPInteroperabilityCredential.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_key_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_key_id").toString())); - } - if (jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `secret_access_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret_access_key").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GCPInteroperabilityCredential.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GCPInteroperabilityCredential' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GCPInteroperabilityCredential.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GCPInteroperabilityCredential value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GCPInteroperabilityCredential read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GCPInteroperabilityCredential instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GCPInteroperabilityCredential given an JSON string - * - * @param jsonString JSON string - * @return An instance of GCPInteroperabilityCredential - * @throws IOException if the JSON string is invalid with respect to GCPInteroperabilityCredential - */ - public static GCPInteroperabilityCredential fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GCPInteroperabilityCredential.class); - } - - /** - * Convert an instance of GCPInteroperabilityCredential to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPServiceAccountKey.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPServiceAccountKey.java deleted file mode 100644 index 0f53d29..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GCPServiceAccountKey.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The key to a Google Cloud Platform service account. - */ -@ApiModel(description = "The key to a Google Cloud Platform service account.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GCPServiceAccountKey { - public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; - @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private String accountId; - - public static final String SERIALIZED_NAME_KEY_ID = "key_id"; - @SerializedName(SERIALIZED_NAME_KEY_ID) - private String keyId; - - public static final String SERIALIZED_NAME_KEY_TEXT = "key_text"; - @SerializedName(SERIALIZED_NAME_KEY_TEXT) - private String keyText; - - public GCPServiceAccountKey() { - } - - public GCPServiceAccountKey accountId(String accountId) { - - this.accountId = accountId; - return this; - } - - /** - * The ID of the service account (i.e., its email address). This is ignored when uploading key information, and is only provided by the server when downloading metadata about an existing key. - * @return accountId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "identity-data-reader@cinco-research.iam.gserviceaccount.com", value = "The ID of the service account (i.e., its email address). This is ignored when uploading key information, and is only provided by the server when downloading metadata about an existing key. ") - - public String getAccountId() { - return accountId; - } - - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - - public GCPServiceAccountKey keyId(String keyId) { - - this.keyId = keyId; - return this; - } - - /** - * The ID of the particular key. This identifies it among other keys issued for this service account. This is ignored when uploading key information, and is only provided by the server when downloading metadata about an existing key. - * @return keyId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "b85b7bac16fabf44fd9cd6885d4d1b444f07e9ab", value = "The ID of the particular key. This identifies it among other keys issued for this service account. This is ignored when uploading key information, and is only provided by the server when downloading metadata about an existing key. ") - - public String getKeyId() { - return keyId; - } - - - public void setKeyId(String keyId) { - this.keyId = keyId; - } - - - public GCPServiceAccountKey keyText(String keyText) { - - this.keyText = keyText; - return this; - } - - /** - * The full file provided by Google Cloud. This is usually in the form of a JSON document, but TileDB Cloud treats it as opaque (except to attempt to extract the service account ID and the key ID). - * @return keyText - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{ \"type\": \"service_account\", \"project_id\": \"cinco-research\", \"private_key_id\": \"b85b7bac16fabf44fd9cd6885d4d1b444f07e9ab\", \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n[lots of data goes here]\\n-----END PRIVATE KEY-----\\n\", \"client_email\": \"identity-data-reader@cinco-research.iam.gserviceaccount.com\", \"client_id\": \"105800434159734259879\", \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\", \"token_uri\": \"https://oauth2.googleapis.com/token\", \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\", \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/identity-data-reader%40cinco-research.iam.gserviceaccount.com\", \"universe_domain\": \"googleapis.com\" } ", value = "The full file provided by Google Cloud. This is usually in the form of a JSON document, but TileDB Cloud treats it as opaque (except to attempt to extract the service account ID and the key ID). ") - - public String getKeyText() { - return keyText; - } - - - public void setKeyText(String keyText) { - this.keyText = keyText; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GCPServiceAccountKey putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GCPServiceAccountKey gcPServiceAccountKey = (GCPServiceAccountKey) o; - return Objects.equals(this.accountId, gcPServiceAccountKey.accountId) && - Objects.equals(this.keyId, gcPServiceAccountKey.keyId) && - Objects.equals(this.keyText, gcPServiceAccountKey.keyText)&& - Objects.equals(this.additionalProperties, gcPServiceAccountKey.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, keyId, keyText, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GCPServiceAccountKey {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); - sb.append(" keyText: ").append(toIndentedString(keyText)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("account_id"); - openapiFields.add("key_id"); - openapiFields.add("key_text"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GCPServiceAccountKey - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GCPServiceAccountKey.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GCPServiceAccountKey is not found in the empty JSON string", GCPServiceAccountKey.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("account_id") != null && !jsonObj.get("account_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `account_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("account_id").toString())); - } - if (jsonObj.get("key_id") != null && !jsonObj.get("key_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key_id").toString())); - } - if (jsonObj.get("key_text") != null && !jsonObj.get("key_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key_text").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GCPServiceAccountKey.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GCPServiceAccountKey' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GCPServiceAccountKey.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GCPServiceAccountKey value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GCPServiceAccountKey read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GCPServiceAccountKey instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GCPServiceAccountKey given an JSON string - * - * @param jsonString JSON string - * @return An instance of GCPServiceAccountKey - * @throws IOException if the JSON string is invalid with respect to GCPServiceAccountKey - */ - public static GCPServiceAccountKey fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GCPServiceAccountKey.class); - } - - /** - * Convert an instance of GCPServiceAccountKey to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GenericTileOffsets.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GenericTileOffsets.java deleted file mode 100644 index 06734f2..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GenericTileOffsets.java +++ /dev/null @@ -1,661 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Array directory (for reads) - */ -@ApiModel(description = "Array directory (for reads)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GenericTileOffsets { - public static final String SERIALIZED_NAME_RTREE = "rtree"; - @SerializedName(SERIALIZED_NAME_RTREE) - private BigDecimal rtree; - - public static final String SERIALIZED_NAME_TILE_OFFSETS = "tileOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_OFFSETS) - private List tileOffsets = null; - - public static final String SERIALIZED_NAME_TILE_VAR_OFFSETS = "tileVarOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_VAR_OFFSETS) - private List tileVarOffsets = null; - - public static final String SERIALIZED_NAME_TILE_VAR_SIZES = "tileVarSizes"; - @SerializedName(SERIALIZED_NAME_TILE_VAR_SIZES) - private List tileVarSizes = null; - - public static final String SERIALIZED_NAME_TILE_VALIDITY_OFFSETS = "tileValidityOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_VALIDITY_OFFSETS) - private List tileValidityOffsets = null; - - public static final String SERIALIZED_NAME_TILE_MIN_OFFSETS = "tileMinOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_MIN_OFFSETS) - private List tileMinOffsets = null; - - public static final String SERIALIZED_NAME_TILE_MAX_OFFSETS = "tileMaxOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_MAX_OFFSETS) - private List tileMaxOffsets = null; - - public static final String SERIALIZED_NAME_TILE_SUM_OFFSETS = "tileSumOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_SUM_OFFSETS) - private List tileSumOffsets = null; - - public static final String SERIALIZED_NAME_TILE_NULL_COUNT_OFFSETS = "tileNullCountOffsets"; - @SerializedName(SERIALIZED_NAME_TILE_NULL_COUNT_OFFSETS) - private List tileNullCountOffsets = null; - - public static final String SERIALIZED_NAME_FRAGMENT_MIN_MAX_SUM_NULL_COUNT_OFFSET = "fragmentMinMaxSumNullCountOffset"; - @SerializedName(SERIALIZED_NAME_FRAGMENT_MIN_MAX_SUM_NULL_COUNT_OFFSET) - private BigDecimal fragmentMinMaxSumNullCountOffset; - - public static final String SERIALIZED_NAME_PROCESSED_CONDITIONS_OFFSETS = "processedConditionsOffsets"; - @SerializedName(SERIALIZED_NAME_PROCESSED_CONDITIONS_OFFSETS) - private BigDecimal processedConditionsOffsets; - - public GenericTileOffsets() { - } - - public GenericTileOffsets rtree(BigDecimal rtree) { - - this.rtree = rtree; - return this; - } - - /** - * RTree serialized as a blob - * @return rtree - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "RTree serialized as a blob") - - public BigDecimal getRtree() { - return rtree; - } - - - public void setRtree(BigDecimal rtree) { - this.rtree = rtree; - } - - - public GenericTileOffsets tileOffsets(List tileOffsets) { - - this.tileOffsets = tileOffsets; - return this; - } - - public GenericTileOffsets addTileOffsetsItem(BigDecimal tileOffsetsItem) { - if (this.tileOffsets == null) { - this.tileOffsets = new ArrayList<>(); - } - this.tileOffsets.add(tileOffsetsItem); - return this; - } - - /** - * tile offsets - * @return tileOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile offsets") - - public List getTileOffsets() { - return tileOffsets; - } - - - public void setTileOffsets(List tileOffsets) { - this.tileOffsets = tileOffsets; - } - - - public GenericTileOffsets tileVarOffsets(List tileVarOffsets) { - - this.tileVarOffsets = tileVarOffsets; - return this; - } - - public GenericTileOffsets addTileVarOffsetsItem(BigDecimal tileVarOffsetsItem) { - if (this.tileVarOffsets == null) { - this.tileVarOffsets = new ArrayList<>(); - } - this.tileVarOffsets.add(tileVarOffsetsItem); - return this; - } - - /** - * variable tile offsets - * @return tileVarOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "variable tile offsets") - - public List getTileVarOffsets() { - return tileVarOffsets; - } - - - public void setTileVarOffsets(List tileVarOffsets) { - this.tileVarOffsets = tileVarOffsets; - } - - - public GenericTileOffsets tileVarSizes(List tileVarSizes) { - - this.tileVarSizes = tileVarSizes; - return this; - } - - public GenericTileOffsets addTileVarSizesItem(BigDecimal tileVarSizesItem) { - if (this.tileVarSizes == null) { - this.tileVarSizes = new ArrayList<>(); - } - this.tileVarSizes.add(tileVarSizesItem); - return this; - } - - /** - * sizes of the uncompressed variable tiles offsets - * @return tileVarSizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "sizes of the uncompressed variable tiles offsets") - - public List getTileVarSizes() { - return tileVarSizes; - } - - - public void setTileVarSizes(List tileVarSizes) { - this.tileVarSizes = tileVarSizes; - } - - - public GenericTileOffsets tileValidityOffsets(List tileValidityOffsets) { - - this.tileValidityOffsets = tileValidityOffsets; - return this; - } - - public GenericTileOffsets addTileValidityOffsetsItem(BigDecimal tileValidityOffsetsItem) { - if (this.tileValidityOffsets == null) { - this.tileValidityOffsets = new ArrayList<>(); - } - this.tileValidityOffsets.add(tileValidityOffsetsItem); - return this; - } - - /** - * tile validity offsets - * @return tileValidityOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile validity offsets") - - public List getTileValidityOffsets() { - return tileValidityOffsets; - } - - - public void setTileValidityOffsets(List tileValidityOffsets) { - this.tileValidityOffsets = tileValidityOffsets; - } - - - public GenericTileOffsets tileMinOffsets(List tileMinOffsets) { - - this.tileMinOffsets = tileMinOffsets; - return this; - } - - public GenericTileOffsets addTileMinOffsetsItem(BigDecimal tileMinOffsetsItem) { - if (this.tileMinOffsets == null) { - this.tileMinOffsets = new ArrayList<>(); - } - this.tileMinOffsets.add(tileMinOffsetsItem); - return this; - } - - /** - * min tile offsets - * @return tileMinOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "min tile offsets") - - public List getTileMinOffsets() { - return tileMinOffsets; - } - - - public void setTileMinOffsets(List tileMinOffsets) { - this.tileMinOffsets = tileMinOffsets; - } - - - public GenericTileOffsets tileMaxOffsets(List tileMaxOffsets) { - - this.tileMaxOffsets = tileMaxOffsets; - return this; - } - - public GenericTileOffsets addTileMaxOffsetsItem(BigDecimal tileMaxOffsetsItem) { - if (this.tileMaxOffsets == null) { - this.tileMaxOffsets = new ArrayList<>(); - } - this.tileMaxOffsets.add(tileMaxOffsetsItem); - return this; - } - - /** - * max tile offsets - * @return tileMaxOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "max tile offsets") - - public List getTileMaxOffsets() { - return tileMaxOffsets; - } - - - public void setTileMaxOffsets(List tileMaxOffsets) { - this.tileMaxOffsets = tileMaxOffsets; - } - - - public GenericTileOffsets tileSumOffsets(List tileSumOffsets) { - - this.tileSumOffsets = tileSumOffsets; - return this; - } - - public GenericTileOffsets addTileSumOffsetsItem(BigDecimal tileSumOffsetsItem) { - if (this.tileSumOffsets == null) { - this.tileSumOffsets = new ArrayList<>(); - } - this.tileSumOffsets.add(tileSumOffsetsItem); - return this; - } - - /** - * tile sum offsets - * @return tileSumOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tile sum offsets") - - public List getTileSumOffsets() { - return tileSumOffsets; - } - - - public void setTileSumOffsets(List tileSumOffsets) { - this.tileSumOffsets = tileSumOffsets; - } - - - public GenericTileOffsets tileNullCountOffsets(List tileNullCountOffsets) { - - this.tileNullCountOffsets = tileNullCountOffsets; - return this; - } - - public GenericTileOffsets addTileNullCountOffsetsItem(BigDecimal tileNullCountOffsetsItem) { - if (this.tileNullCountOffsets == null) { - this.tileNullCountOffsets = new ArrayList<>(); - } - this.tileNullCountOffsets.add(tileNullCountOffsetsItem); - return this; - } - - /** - * null count offsets - * @return tileNullCountOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "null count offsets") - - public List getTileNullCountOffsets() { - return tileNullCountOffsets; - } - - - public void setTileNullCountOffsets(List tileNullCountOffsets) { - this.tileNullCountOffsets = tileNullCountOffsets; - } - - - public GenericTileOffsets fragmentMinMaxSumNullCountOffset(BigDecimal fragmentMinMaxSumNullCountOffset) { - - this.fragmentMinMaxSumNullCountOffset = fragmentMinMaxSumNullCountOffset; - return this; - } - - /** - * fragment min/max/sum/nullcount offsets - * @return fragmentMinMaxSumNullCountOffset - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fragment min/max/sum/nullcount offsets") - - public BigDecimal getFragmentMinMaxSumNullCountOffset() { - return fragmentMinMaxSumNullCountOffset; - } - - - public void setFragmentMinMaxSumNullCountOffset(BigDecimal fragmentMinMaxSumNullCountOffset) { - this.fragmentMinMaxSumNullCountOffset = fragmentMinMaxSumNullCountOffset; - } - - - public GenericTileOffsets processedConditionsOffsets(BigDecimal processedConditionsOffsets) { - - this.processedConditionsOffsets = processedConditionsOffsets; - return this; - } - - /** - * processed conditions offsets - * @return processedConditionsOffsets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "processed conditions offsets") - - public BigDecimal getProcessedConditionsOffsets() { - return processedConditionsOffsets; - } - - - public void setProcessedConditionsOffsets(BigDecimal processedConditionsOffsets) { - this.processedConditionsOffsets = processedConditionsOffsets; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GenericTileOffsets putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GenericTileOffsets genericTileOffsets = (GenericTileOffsets) o; - return Objects.equals(this.rtree, genericTileOffsets.rtree) && - Objects.equals(this.tileOffsets, genericTileOffsets.tileOffsets) && - Objects.equals(this.tileVarOffsets, genericTileOffsets.tileVarOffsets) && - Objects.equals(this.tileVarSizes, genericTileOffsets.tileVarSizes) && - Objects.equals(this.tileValidityOffsets, genericTileOffsets.tileValidityOffsets) && - Objects.equals(this.tileMinOffsets, genericTileOffsets.tileMinOffsets) && - Objects.equals(this.tileMaxOffsets, genericTileOffsets.tileMaxOffsets) && - Objects.equals(this.tileSumOffsets, genericTileOffsets.tileSumOffsets) && - Objects.equals(this.tileNullCountOffsets, genericTileOffsets.tileNullCountOffsets) && - Objects.equals(this.fragmentMinMaxSumNullCountOffset, genericTileOffsets.fragmentMinMaxSumNullCountOffset) && - Objects.equals(this.processedConditionsOffsets, genericTileOffsets.processedConditionsOffsets)&& - Objects.equals(this.additionalProperties, genericTileOffsets.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(rtree, tileOffsets, tileVarOffsets, tileVarSizes, tileValidityOffsets, tileMinOffsets, tileMaxOffsets, tileSumOffsets, tileNullCountOffsets, fragmentMinMaxSumNullCountOffset, processedConditionsOffsets, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GenericTileOffsets {\n"); - sb.append(" rtree: ").append(toIndentedString(rtree)).append("\n"); - sb.append(" tileOffsets: ").append(toIndentedString(tileOffsets)).append("\n"); - sb.append(" tileVarOffsets: ").append(toIndentedString(tileVarOffsets)).append("\n"); - sb.append(" tileVarSizes: ").append(toIndentedString(tileVarSizes)).append("\n"); - sb.append(" tileValidityOffsets: ").append(toIndentedString(tileValidityOffsets)).append("\n"); - sb.append(" tileMinOffsets: ").append(toIndentedString(tileMinOffsets)).append("\n"); - sb.append(" tileMaxOffsets: ").append(toIndentedString(tileMaxOffsets)).append("\n"); - sb.append(" tileSumOffsets: ").append(toIndentedString(tileSumOffsets)).append("\n"); - sb.append(" tileNullCountOffsets: ").append(toIndentedString(tileNullCountOffsets)).append("\n"); - sb.append(" fragmentMinMaxSumNullCountOffset: ").append(toIndentedString(fragmentMinMaxSumNullCountOffset)).append("\n"); - sb.append(" processedConditionsOffsets: ").append(toIndentedString(processedConditionsOffsets)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rtree"); - openapiFields.add("tileOffsets"); - openapiFields.add("tileVarOffsets"); - openapiFields.add("tileVarSizes"); - openapiFields.add("tileValidityOffsets"); - openapiFields.add("tileMinOffsets"); - openapiFields.add("tileMaxOffsets"); - openapiFields.add("tileSumOffsets"); - openapiFields.add("tileNullCountOffsets"); - openapiFields.add("fragmentMinMaxSumNullCountOffset"); - openapiFields.add("processedConditionsOffsets"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GenericTileOffsets - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GenericTileOffsets.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GenericTileOffsets is not found in the empty JSON string", GenericTileOffsets.openapiRequiredFields.toString())); - } - } - // ensure the json data is an array - if (jsonObj.get("tileOffsets") != null && !jsonObj.get("tileOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileVarOffsets") != null && !jsonObj.get("tileVarOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileVarOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileVarSizes") != null && !jsonObj.get("tileVarSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarSizes").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileValidityOffsets") != null && !jsonObj.get("tileValidityOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileValidityOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileValidityOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileMinOffsets") != null && !jsonObj.get("tileMinOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileMinOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileMaxOffsets") != null && !jsonObj.get("tileMaxOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileMaxOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileSumOffsets") != null && !jsonObj.get("tileSumOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileSumOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileSumOffsets").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tileNullCountOffsets") != null && !jsonObj.get("tileNullCountOffsets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tileNullCountOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileNullCountOffsets").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GenericTileOffsets.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GenericTileOffsets' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GenericTileOffsets.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GenericTileOffsets value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GenericTileOffsets read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GenericTileOffsets instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GenericTileOffsets given an JSON string - * - * @param jsonString JSON string - * @return An instance of GenericTileOffsets - * @throws IOException if the JSON string is invalid with respect to GenericTileOffsets - */ - public static GenericTileOffsets fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GenericTileOffsets.class); - } - - /** - * Convert an instance of GenericTileOffsets to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupActivityEventType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupActivityEventType.java deleted file mode 100644 index bfeaddd..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupActivityEventType.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Event type of Group activity - */ -@JsonAdapter(GroupActivityEventType.Adapter.class) -public enum GroupActivityEventType { - - CREATE("create"), - - UPDATE("update"), - - DELETE("delete"), - - REGISTER("register"), - - DEREGISTER("deregister"), - - GROUP_MEMBER_ADD("group_member_add"), - - GROUP_MEMBER_GET("group_member_get"), - - GROUP_MEMBER_REMOVE("group_member_remove"), - - GROUP_METADATA_GET("group_metadata_get"), - - GROUP_METADATA_UPDATE("group_metadata_update"), - - GROUP_METADATA_DELETE("group_metadata_delete"), - - GROUP_METADATA_SERIALIZE("group_metadata_serialize"), - - GROUP_METADATA_DESERIALIZE("group_metadata_deserialize"), - - GROUP_METADATA_CONSOLIDATE("group_metadata_consolidate"), - - GROUP_METADATA_VACUUM("group_metadata_vacuum"), - - CONFIG_SET("config_set"), - - CONFIG_GET("config_get"); - - private String value; - - GroupActivityEventType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static GroupActivityEventType fromValue(String value) { - for (GroupActivityEventType b : GroupActivityEventType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final GroupActivityEventType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public GroupActivityEventType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return GroupActivityEventType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivity.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivity.java deleted file mode 100644 index ae9af89..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivity.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Object containing activity of an asset of a group - */ -@ApiModel(description = "Object containing activity of an asset of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentActivity { - public static final String SERIALIZED_NAME_ASSET = "asset"; - @SerializedName(SERIALIZED_NAME_ASSET) - private GroupContentActivityAsset asset; - - public static final String SERIALIZED_NAME_ACTIVITY_LOG = "activity_log"; - @SerializedName(SERIALIZED_NAME_ACTIVITY_LOG) - private ArrayActivityLog activityLog; - - public GroupContentActivity() { - } - - public GroupContentActivity asset(GroupContentActivityAsset asset) { - - this.asset = asset; - return this; - } - - /** - * Get asset - * @return asset - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GroupContentActivityAsset getAsset() { - return asset; - } - - - public void setAsset(GroupContentActivityAsset asset) { - this.asset = asset; - } - - - public GroupContentActivity activityLog(ArrayActivityLog activityLog) { - - this.activityLog = activityLog; - return this; - } - - /** - * Get activityLog - * @return activityLog - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ArrayActivityLog getActivityLog() { - return activityLog; - } - - - public void setActivityLog(ArrayActivityLog activityLog) { - this.activityLog = activityLog; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentActivity putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentActivity groupContentActivity = (GroupContentActivity) o; - return Objects.equals(this.asset, groupContentActivity.asset) && - Objects.equals(this.activityLog, groupContentActivity.activityLog)&& - Objects.equals(this.additionalProperties, groupContentActivity.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(asset, activityLog, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentActivity {\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" activityLog: ").append(toIndentedString(activityLog)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("asset"); - openapiFields.add("activity_log"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentActivity - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentActivity.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivity is not found in the empty JSON string", GroupContentActivity.openapiRequiredFields.toString())); - } - } - // validate the optional field `asset` - if (jsonObj.getAsJsonObject("asset") != null) { - GroupContentActivityAsset.validateJsonObject(jsonObj.getAsJsonObject("asset")); - } - // validate the optional field `activity_log` - if (jsonObj.getAsJsonObject("activity_log") != null) { - ArrayActivityLog.validateJsonObject(jsonObj.getAsJsonObject("activity_log")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentActivity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentActivity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentActivity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentActivity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentActivity read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentActivity instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentActivity given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentActivity - * @throws IOException if the JSON string is invalid with respect to GroupContentActivity - */ - public static GroupContentActivity fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentActivity.class); - } - - /** - * Convert an instance of GroupContentActivity to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityAsset.java deleted file mode 100644 index 2f0a85d..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityAsset.java +++ /dev/null @@ -1,361 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The asset details - */ -@ApiModel(description = "The asset details") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentActivityAsset { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; - @SerializedName(SERIALIZED_NAME_NAMESPACE) - private String namespace; - - public static final String SERIALIZED_NAME_ASSET_TYPE = "asset_type"; - @SerializedName(SERIALIZED_NAME_ASSET_TYPE) - private AssetType assetType; - - public GroupContentActivityAsset() { - } - - public GroupContentActivityAsset id(String id) { - - this.id = id; - return this; - } - - /** - * The asset ID - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The asset ID") - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public GroupContentActivityAsset name(String name) { - - this.name = name; - return this; - } - - /** - * The asset name - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The asset name") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public GroupContentActivityAsset namespace(String namespace) { - - this.namespace = namespace; - return this; - } - - /** - * The namespace that the asset belongs to - * @return namespace - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace that the asset belongs to") - - public String getNamespace() { - return namespace; - } - - - public void setNamespace(String namespace) { - this.namespace = namespace; - } - - - public GroupContentActivityAsset assetType(AssetType assetType) { - - this.assetType = assetType; - return this; - } - - /** - * Get assetType - * @return assetType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public AssetType getAssetType() { - return assetType; - } - - - public void setAssetType(AssetType assetType) { - this.assetType = assetType; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentActivityAsset putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentActivityAsset groupContentActivityAsset = (GroupContentActivityAsset) o; - return Objects.equals(this.id, groupContentActivityAsset.id) && - Objects.equals(this.name, groupContentActivityAsset.name) && - Objects.equals(this.namespace, groupContentActivityAsset.namespace) && - Objects.equals(this.assetType, groupContentActivityAsset.assetType)&& - Objects.equals(this.additionalProperties, groupContentActivityAsset.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, namespace, assetType, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentActivityAsset {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("namespace"); - openapiFields.add("asset_type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentActivityAsset - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentActivityAsset.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityAsset is not found in the empty JSON string", GroupContentActivityAsset.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentActivityAsset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentActivityAsset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentActivityAsset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentActivityAsset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentActivityAsset read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentActivityAsset instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentActivityAsset given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentActivityAsset - * @throws IOException if the JSON string is invalid with respect to GroupContentActivityAsset - */ - public static GroupContentActivityAsset fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentActivityAsset.class); - } - - /** - * Convert an instance of GroupContentActivityAsset to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityResponse.java deleted file mode 100644 index f28f6e0..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentActivityResponse.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Object containing activity logs of group content along with the pagination metadata - */ -@ApiModel(description = "Object containing activity logs of group content along with the pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentActivityResponse { - public static final String SERIALIZED_NAME_ACTIVITY = "activity"; - @SerializedName(SERIALIZED_NAME_ACTIVITY) - private List activity = null; - - public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; - @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) - private PaginationMetadata paginationMetadata; - - public GroupContentActivityResponse() { - } - - public GroupContentActivityResponse activity(List activity) { - - this.activity = activity; - return this; - } - - public GroupContentActivityResponse addActivityItem(GroupContentActivity activityItem) { - if (this.activity == null) { - this.activity = new ArrayList<>(); - } - this.activity.add(activityItem); - return this; - } - - /** - * Activity of a group's content - * @return activity - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Activity of a group's content") - - public List getActivity() { - return activity; - } - - - public void setActivity(List activity) { - this.activity = activity; - } - - - public GroupContentActivityResponse paginationMetadata(PaginationMetadata paginationMetadata) { - - this.paginationMetadata = paginationMetadata; - return this; - } - - /** - * Get paginationMetadata - * @return paginationMetadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public PaginationMetadata getPaginationMetadata() { - return paginationMetadata; - } - - - public void setPaginationMetadata(PaginationMetadata paginationMetadata) { - this.paginationMetadata = paginationMetadata; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentActivityResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentActivityResponse groupContentActivityResponse = (GroupContentActivityResponse) o; - return Objects.equals(this.activity, groupContentActivityResponse.activity) && - Objects.equals(this.paginationMetadata, groupContentActivityResponse.paginationMetadata)&& - Objects.equals(this.additionalProperties, groupContentActivityResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(activity, paginationMetadata, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentActivityResponse {\n"); - sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); - sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("activity"); - openapiFields.add("pagination_metadata"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentActivityResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentActivityResponse.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityResponse is not found in the empty JSON string", GroupContentActivityResponse.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - GroupContentActivity.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); - }; - } - // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentActivityResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentActivityResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentActivityResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentActivityResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentActivityResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentActivityResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentActivityResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentActivityResponse - * @throws IOException if the JSON string is invalid with respect to GroupContentActivityResponse - */ - public static GroupContentActivityResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentActivityResponse.class); - } - - /** - * Convert an instance of GroupContentActivityResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequest.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequest.java deleted file mode 100644 index 1b7e424..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequest.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Updates the contents group - */ -@ApiModel(description = "Updates the contents group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentsChangesRequest { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public static final String SERIALIZED_NAME_GROUP_CHANGES = "group_changes"; - @SerializedName(SERIALIZED_NAME_GROUP_CHANGES) - private GroupContentsChangesRequestGroupChanges groupChanges; - - public GroupContentsChangesRequest() { - } - - public GroupContentsChangesRequest config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - - public GroupContentsChangesRequest groupChanges(GroupContentsChangesRequestGroupChanges groupChanges) { - - this.groupChanges = groupChanges; - return this; - } - - /** - * Get groupChanges - * @return groupChanges - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GroupContentsChangesRequestGroupChanges getGroupChanges() { - return groupChanges; - } - - - public void setGroupChanges(GroupContentsChangesRequestGroupChanges groupChanges) { - this.groupChanges = groupChanges; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentsChangesRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentsChangesRequest groupContentsChangesRequest = (GroupContentsChangesRequest) o; - return Objects.equals(this.config, groupContentsChangesRequest.config) && - Objects.equals(this.groupChanges, groupContentsChangesRequest.groupChanges)&& - Objects.equals(this.additionalProperties, groupContentsChangesRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, groupChanges, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentsChangesRequest {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" groupChanges: ").append(toIndentedString(groupChanges)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("group_changes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentsChangesRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentsChangesRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsChangesRequest is not found in the empty JSON string", GroupContentsChangesRequest.openapiRequiredFields.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - // validate the optional field `group_changes` - if (jsonObj.getAsJsonObject("group_changes") != null) { - GroupContentsChangesRequestGroupChanges.validateJsonObject(jsonObj.getAsJsonObject("group_changes")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentsChangesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentsChangesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentsChangesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentsChangesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentsChangesRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentsChangesRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentsChangesRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentsChangesRequest - * @throws IOException if the JSON string is invalid with respect to GroupContentsChangesRequest - */ - public static GroupContentsChangesRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentsChangesRequest.class); - } - - /** - * Convert an instance of GroupContentsChangesRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequestGroupChanges.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequestGroupChanges.java deleted file mode 100644 index 3c24827..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsChangesRequestGroupChanges.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * GroupContentsChangesRequestGroupChanges - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentsChangesRequestGroupChanges { - public static final String SERIALIZED_NAME_MEMBERS_TO_REMOVE = "members_to_remove"; - @SerializedName(SERIALIZED_NAME_MEMBERS_TO_REMOVE) - private List membersToRemove = null; - - public static final String SERIALIZED_NAME_MEMBERS_TO_ADD = "members_to_add"; - @SerializedName(SERIALIZED_NAME_MEMBERS_TO_ADD) - private List membersToAdd = null; - - public GroupContentsChangesRequestGroupChanges() { - } - - public GroupContentsChangesRequestGroupChanges membersToRemove(List membersToRemove) { - - this.membersToRemove = membersToRemove; - return this; - } - - public GroupContentsChangesRequestGroupChanges addMembersToRemoveItem(String membersToRemoveItem) { - if (this.membersToRemove == null) { - this.membersToRemove = new ArrayList<>(); - } - this.membersToRemove.add(membersToRemoveItem); - return this; - } - - /** - * optional series of members to remove - * @return membersToRemove - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional series of members to remove") - - public List getMembersToRemove() { - return membersToRemove; - } - - - public void setMembersToRemove(List membersToRemove) { - this.membersToRemove = membersToRemove; - } - - - public GroupContentsChangesRequestGroupChanges membersToAdd(List membersToAdd) { - - this.membersToAdd = membersToAdd; - return this; - } - - public GroupContentsChangesRequestGroupChanges addMembersToAddItem(GroupMember membersToAddItem) { - if (this.membersToAdd == null) { - this.membersToAdd = new ArrayList<>(); - } - this.membersToAdd.add(membersToAddItem); - return this; - } - - /** - * optional series of members to add - * @return membersToAdd - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional series of members to add") - - public List getMembersToAdd() { - return membersToAdd; - } - - - public void setMembersToAdd(List membersToAdd) { - this.membersToAdd = membersToAdd; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentsChangesRequestGroupChanges putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentsChangesRequestGroupChanges groupContentsChangesRequestGroupChanges = (GroupContentsChangesRequestGroupChanges) o; - return Objects.equals(this.membersToRemove, groupContentsChangesRequestGroupChanges.membersToRemove) && - Objects.equals(this.membersToAdd, groupContentsChangesRequestGroupChanges.membersToAdd)&& - Objects.equals(this.additionalProperties, groupContentsChangesRequestGroupChanges.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(membersToRemove, membersToAdd, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentsChangesRequestGroupChanges {\n"); - sb.append(" membersToRemove: ").append(toIndentedString(membersToRemove)).append("\n"); - sb.append(" membersToAdd: ").append(toIndentedString(membersToAdd)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("members_to_remove"); - openapiFields.add("members_to_add"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentsChangesRequestGroupChanges - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentsChangesRequestGroupChanges.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsChangesRequestGroupChanges is not found in the empty JSON string", GroupContentsChangesRequestGroupChanges.openapiRequiredFields.toString())); - } - } - // ensure the json data is an array - if (jsonObj.get("members_to_remove") != null && !jsonObj.get("members_to_remove").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `members_to_remove` to be an array in the JSON string but got `%s`", jsonObj.get("members_to_remove").toString())); - } - JsonArray jsonArraymembersToAdd = jsonObj.getAsJsonArray("members_to_add"); - if (jsonArraymembersToAdd != null) { - // ensure the json data is an array - if (!jsonObj.get("members_to_add").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `members_to_add` to be an array in the JSON string but got `%s`", jsonObj.get("members_to_add").toString())); - } - - // validate the optional field `members_to_add` (array) - for (int i = 0; i < jsonArraymembersToAdd.size(); i++) { - GroupMember.validateJsonObject(jsonArraymembersToAdd.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentsChangesRequestGroupChanges.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentsChangesRequestGroupChanges' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentsChangesRequestGroupChanges.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentsChangesRequestGroupChanges value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentsChangesRequestGroupChanges read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentsChangesRequestGroupChanges instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentsChangesRequestGroupChanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentsChangesRequestGroupChanges - * @throws IOException if the JSON string is invalid with respect to GroupContentsChangesRequestGroupChanges - */ - public static GroupContentsChangesRequestGroupChanges fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentsChangesRequestGroupChanges.class); - } - - /** - * Convert an instance of GroupContentsChangesRequestGroupChanges to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalRequest.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalRequest.java deleted file mode 100644 index 455cbfd..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalRequest.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Request the contents of a group - */ -@ApiModel(description = "Request the contents of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentsRetrievalRequest { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public GroupContentsRetrievalRequest() { - } - - public GroupContentsRetrievalRequest config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentsRetrievalRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentsRetrievalRequest groupContentsRetrievalRequest = (GroupContentsRetrievalRequest) o; - return Objects.equals(this.config, groupContentsRetrievalRequest.config)&& - Objects.equals(this.additionalProperties, groupContentsRetrievalRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentsRetrievalRequest {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentsRetrievalRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentsRetrievalRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsRetrievalRequest is not found in the empty JSON string", GroupContentsRetrievalRequest.openapiRequiredFields.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentsRetrievalRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentsRetrievalRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentsRetrievalRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentsRetrievalRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentsRetrievalRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentsRetrievalRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentsRetrievalRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentsRetrievalRequest - * @throws IOException if the JSON string is invalid with respect to GroupContentsRetrievalRequest - */ - public static GroupContentsRetrievalRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentsRetrievalRequest.class); - } - - /** - * Convert an instance of GroupContentsRetrievalRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalResponse.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalResponse.java deleted file mode 100644 index 99162be..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupContentsRetrievalResponse.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Object including a page of members of a group and pagination metadata - */ -@ApiModel(description = "Object including a page of members of a group and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupContentsRetrievalResponse { - public static final String SERIALIZED_NAME_MEMBERS = "members"; - @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private Metadata metadata; - - public GroupContentsRetrievalResponse() { - } - - public GroupContentsRetrievalResponse members(List members) { - - this.members = members; - return this; - } - - public GroupContentsRetrievalResponse addMembersItem(GroupMember membersItem) { - if (this.members == null) { - this.members = new ArrayList<>(); - } - this.members.add(membersItem); - return this; - } - - /** - * Groups members - * @return members - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Groups members") - - public List getMembers() { - return members; - } - - - public void setMembers(List members) { - this.members = members; - } - - - public GroupContentsRetrievalResponse metadata(Metadata metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Metadata getMetadata() { - return metadata; - } - - - public void setMetadata(Metadata metadata) { - this.metadata = metadata; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupContentsRetrievalResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupContentsRetrievalResponse groupContentsRetrievalResponse = (GroupContentsRetrievalResponse) o; - return Objects.equals(this.members, groupContentsRetrievalResponse.members) && - Objects.equals(this.metadata, groupContentsRetrievalResponse.metadata)&& - Objects.equals(this.additionalProperties, groupContentsRetrievalResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(members, metadata, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupContentsRetrievalResponse {\n"); - sb.append(" members: ").append(toIndentedString(members)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("members"); - openapiFields.add("metadata"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupContentsRetrievalResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentsRetrievalResponse.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsRetrievalResponse is not found in the empty JSON string", GroupContentsRetrievalResponse.openapiRequiredFields.toString())); - } - } - JsonArray jsonArraymembers = jsonObj.getAsJsonArray("members"); - if (jsonArraymembers != null) { - // ensure the json data is an array - if (!jsonObj.get("members").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `members` to be an array in the JSON string but got `%s`", jsonObj.get("members").toString())); - } - - // validate the optional field `members` (array) - for (int i = 0; i < jsonArraymembers.size(); i++) { - GroupMember.validateJsonObject(jsonArraymembers.get(i).getAsJsonObject()); - }; - } - // validate the optional field `metadata` - if (jsonObj.getAsJsonObject("metadata") != null) { - Metadata.validateJsonObject(jsonObj.getAsJsonObject("metadata")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupContentsRetrievalResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupContentsRetrievalResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupContentsRetrievalResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupContentsRetrievalResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupContentsRetrievalResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupContentsRetrievalResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupContentsRetrievalResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentsRetrievalResponse - * @throws IOException if the JSON string is invalid with respect to GroupContentsRetrievalResponse - */ - public static GroupContentsRetrievalResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupContentsRetrievalResponse.class); - } - - /** - * Convert an instance of GroupContentsRetrievalResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequest.java deleted file mode 100644 index a633f83..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequest.java +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * information for creating a new group with the passed configuration - */ -@ApiModel(description = "information for creating a new group with the passed configuration") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupCreationRequest { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public static final String SERIALIZED_NAME_GROUP_DETAILS = "group_details"; - @SerializedName(SERIALIZED_NAME_GROUP_DETAILS) - private GroupCreationRequestGroupDetails groupDetails; - - public GroupCreationRequest() { - } - - public GroupCreationRequest config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - - public GroupCreationRequest groupDetails(GroupCreationRequestGroupDetails groupDetails) { - - this.groupDetails = groupDetails; - return this; - } - - /** - * Get groupDetails - * @return groupDetails - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public GroupCreationRequestGroupDetails getGroupDetails() { - return groupDetails; - } - - - public void setGroupDetails(GroupCreationRequestGroupDetails groupDetails) { - this.groupDetails = groupDetails; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupCreationRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupCreationRequest groupCreationRequest = (GroupCreationRequest) o; - return Objects.equals(this.config, groupCreationRequest.config) && - Objects.equals(this.groupDetails, groupCreationRequest.groupDetails)&& - Objects.equals(this.additionalProperties, groupCreationRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, groupDetails, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupCreationRequest {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" groupDetails: ").append(toIndentedString(groupDetails)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("group_details"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("group_details"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupCreationRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupCreationRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreationRequest is not found in the empty JSON string", GroupCreationRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GroupCreationRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - // validate the optional field `group_details` - if (jsonObj.getAsJsonObject("group_details") != null) { - GroupCreationRequestGroupDetails.validateJsonObject(jsonObj.getAsJsonObject("group_details")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupCreationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupCreationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupCreationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupCreationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupCreationRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupCreationRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupCreationRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupCreationRequest - * @throws IOException if the JSON string is invalid with respect to GroupCreationRequest - */ - public static GroupCreationRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupCreationRequest.class); - } - - /** - * Convert an instance of GroupCreationRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequestGroupDetails.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequestGroupDetails.java deleted file mode 100644 index 4f16f04..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationRequestGroupDetails.java +++ /dev/null @@ -1,474 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Initial attributes for the creation of a group. - */ -@ApiModel(description = "Initial attributes for the creation of a group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupCreationRequestGroupDetails { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_LOGO = "logo"; - @SerializedName(SERIALIZED_NAME_LOGO) - private String logo; - - public static final String SERIALIZED_NAME_TAGS = "tags"; - @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; - - public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; - @SerializedName(SERIALIZED_NAME_LICENSE_ID) - private String licenseId; - - public static final String SERIALIZED_NAME_LICENSE_TEXT = "license_text"; - @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) - private String licenseText; - - public GroupCreationRequestGroupDetails() { - } - - public GroupCreationRequestGroupDetails description(String description) { - - this.description = description; - return this; - } - - /** - * A human readable description of the contents of the group. - * @return description - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable description of the contents of the group.") - - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public GroupCreationRequestGroupDetails name(String name) { - - this.name = name; - return this; - } - - /** - * The name of the group. If must be unique within the group. - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the group. If must be unique within the group.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public GroupCreationRequestGroupDetails uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * uri of group. - * @return uri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "uri of group.") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public GroupCreationRequestGroupDetails logo(String logo) { - - this.logo = logo; - return this; - } - - /** - * logo (base64 encoded) for the group. Optional - * @return logo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") - - public String getLogo() { - return logo; - } - - - public void setLogo(String logo) { - this.logo = logo; - } - - - public GroupCreationRequestGroupDetails tags(List tags) { - - this.tags = tags; - return this; - } - - public GroupCreationRequestGroupDetails addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - /** - * optional tags for groups. - * @return tags - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for groups.") - - public List getTags() { - return tags; - } - - - public void setTags(List tags) { - this.tags = tags; - } - - - public GroupCreationRequestGroupDetails licenseId(String licenseId) { - - this.licenseId = licenseId; - return this; - } - - /** - * License identifier from SPDX License List or Custom. - * @return licenseId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom.") - - public String getLicenseId() { - return licenseId; - } - - - public void setLicenseId(String licenseId) { - this.licenseId = licenseId; - } - - - public GroupCreationRequestGroupDetails licenseText(String licenseText) { - - this.licenseText = licenseText; - return this; - } - - /** - * License text - * @return licenseText - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - - public String getLicenseText() { - return licenseText; - } - - - public void setLicenseText(String licenseText) { - this.licenseText = licenseText; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupCreationRequestGroupDetails putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupCreationRequestGroupDetails groupCreationRequestGroupDetails = (GroupCreationRequestGroupDetails) o; - return Objects.equals(this.description, groupCreationRequestGroupDetails.description) && - Objects.equals(this.name, groupCreationRequestGroupDetails.name) && - Objects.equals(this.uri, groupCreationRequestGroupDetails.uri) && - Objects.equals(this.logo, groupCreationRequestGroupDetails.logo) && - Objects.equals(this.tags, groupCreationRequestGroupDetails.tags) && - Objects.equals(this.licenseId, groupCreationRequestGroupDetails.licenseId) && - Objects.equals(this.licenseText, groupCreationRequestGroupDetails.licenseText)&& - Objects.equals(this.additionalProperties, groupCreationRequestGroupDetails.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(description, name, uri, logo, tags, licenseId, licenseText, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupCreationRequestGroupDetails {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); - sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("name"); - openapiFields.add("uri"); - openapiFields.add("logo"); - openapiFields.add("tags"); - openapiFields.add("license_id"); - openapiFields.add("license_text"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupCreationRequestGroupDetails - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupCreationRequestGroupDetails.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreationRequestGroupDetails is not found in the empty JSON string", GroupCreationRequestGroupDetails.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupCreationRequestGroupDetails.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupCreationRequestGroupDetails' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupCreationRequestGroupDetails.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupCreationRequestGroupDetails value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupCreationRequestGroupDetails read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupCreationRequestGroupDetails instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupCreationRequestGroupDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupCreationRequestGroupDetails - * @throws IOException if the JSON string is invalid with respect to GroupCreationRequestGroupDetails - */ - public static GroupCreationRequestGroupDetails fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupCreationRequestGroupDetails.class); - } - - /** - * Convert an instance of GroupCreationRequestGroupDetails to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationResponse.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationResponse.java deleted file mode 100644 index 8e588df..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupCreationResponse.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Information of the created group - */ -@ApiModel(description = "Information of the created group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupCreationResponse { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TILEDB_URI = "tiledb_uri"; - @SerializedName(SERIALIZED_NAME_TILEDB_URI) - private String tiledbUri; - - public GroupCreationResponse() { - } - - public GroupCreationResponse id(String id) { - - this.id = id; - return this; - } - - /** - * The UUID of the created Group - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The UUID of the created Group") - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public GroupCreationResponse name(String name) { - - this.name = name; - return this; - } - - /** - * The name of the created Group - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the created Group") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public GroupCreationResponse tiledbUri(String tiledbUri) { - - this.tiledbUri = tiledbUri; - return this; - } - - /** - * TileDB URI for access - * @return tiledbUri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "TileDB URI for access") - - public String getTiledbUri() { - return tiledbUri; - } - - - public void setTiledbUri(String tiledbUri) { - this.tiledbUri = tiledbUri; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupCreationResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupCreationResponse groupCreationResponse = (GroupCreationResponse) o; - return Objects.equals(this.id, groupCreationResponse.id) && - Objects.equals(this.name, groupCreationResponse.name) && - Objects.equals(this.tiledbUri, groupCreationResponse.tiledbUri)&& - Objects.equals(this.additionalProperties, groupCreationResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, tiledbUri, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupCreationResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" tiledbUri: ").append(toIndentedString(tiledbUri)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("tiledb_uri"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupCreationResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupCreationResponse.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreationResponse is not found in the empty JSON string", GroupCreationResponse.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupCreationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupCreationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupCreationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupCreationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupCreationResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupCreationResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupCreationResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupCreationResponse - * @throws IOException if the JSON string is invalid with respect to GroupCreationResponse - */ - public static GroupCreationResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupCreationResponse.class); - } - - /** - * Convert an instance of GroupCreationResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMember.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMember.java deleted file mode 100644 index 48b6ce6..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMember.java +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * A groups member, array or another groups, to add or remove from an existing group. - */ -@ApiModel(description = "A groups member, array or another groups, to add or remove from an existing group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupMember { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private GroupMemberType type; - - public GroupMember() { - } - - public GroupMember name(String name) { - - this.name = name; - return this; - } - - /** - * The name of the member - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the member") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public GroupMember uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * The uri of the member - * @return uri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The uri of the member") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public GroupMember type(GroupMemberType type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public GroupMemberType getType() { - return type; - } - - - public void setType(GroupMemberType type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupMember putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupMember groupMember = (GroupMember) o; - return Objects.equals(this.name, groupMember.name) && - Objects.equals(this.uri, groupMember.uri) && - Objects.equals(this.type, groupMember.type)&& - Objects.equals(this.additionalProperties, groupMember.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, uri, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupMember {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("uri"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupMember - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupMember.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMember is not found in the empty JSON string", GroupMember.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupMember.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupMember' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupMember.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupMember value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupMember read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupMember instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupMember - * @throws IOException if the JSON string is invalid with respect to GroupMember - */ - public static GroupMember fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupMember.class); - } - - /** - * Convert an instance of GroupMember to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberAssetType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberAssetType.java deleted file mode 100644 index 137cdf6..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberAssetType.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Specific file types of group members - */ -@JsonAdapter(GroupMemberAssetType.Adapter.class) -public enum GroupMemberAssetType { - - GROUP("group"), - - ARRAY("array"), - - NOTEBOOK("notebook"), - - DASHBOARD("dashboard"), - - USER_DEFINED_FUNCTION("user_defined_function"), - - ML_MODEL("ml_model"), - - FILE("file"), - - BIOIMG("bioimg"), - - SOMA("soma"), - - VCF("vcf"), - - POINTCLOUD("pointcloud"), - - RASTER("raster"), - - GEOMETRY("geometry"), - - VECTOR_SEARCH("vector_search"); - - private String value; - - GroupMemberAssetType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static GroupMemberAssetType fromValue(String value) { - for (GroupMemberAssetType b : GroupMemberAssetType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final GroupMemberAssetType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public GroupMemberAssetType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return GroupMemberAssetType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberType.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberType.java deleted file mode 100644 index f898f21..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMemberType.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * File types that can be included in groups - */ -@JsonAdapter(GroupMemberType.Adapter.class) -public enum GroupMemberType { - - GROUP("GROUP"), - - ARRAY("ARRAY"); - - private String value; - - GroupMemberType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static GroupMemberType fromValue(String value) { - for (GroupMemberType b : GroupMemberType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final GroupMemberType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public GroupMemberType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return GroupMemberType.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataRetrievalRequest.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataRetrievalRequest.java deleted file mode 100644 index 028efa4..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataRetrievalRequest.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Retrieves the metadata of a group - */ -@ApiModel(description = "Retrieves the metadata of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupMetadataRetrievalRequest { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public GroupMetadataRetrievalRequest() { - } - - public GroupMetadataRetrievalRequest config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupMetadataRetrievalRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupMetadataRetrievalRequest groupMetadataRetrievalRequest = (GroupMetadataRetrievalRequest) o; - return Objects.equals(this.config, groupMetadataRetrievalRequest.config)&& - Objects.equals(this.additionalProperties, groupMetadataRetrievalRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupMetadataRetrievalRequest {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupMetadataRetrievalRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupMetadataRetrievalRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMetadataRetrievalRequest is not found in the empty JSON string", GroupMetadataRetrievalRequest.openapiRequiredFields.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupMetadataRetrievalRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupMetadataRetrievalRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupMetadataRetrievalRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupMetadataRetrievalRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupMetadataRetrievalRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupMetadataRetrievalRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupMetadataRetrievalRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupMetadataRetrievalRequest - * @throws IOException if the JSON string is invalid with respect to GroupMetadataRetrievalRequest - */ - public static GroupMetadataRetrievalRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupMetadataRetrievalRequest.class); - } - - /** - * Convert an instance of GroupMetadataRetrievalRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataUpdateRequest.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataUpdateRequest.java deleted file mode 100644 index fde35e5..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupMetadataUpdateRequest.java +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Updates the metadata of a group - */ -@ApiModel(description = "Updates the metadata of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupMetadataUpdateRequest { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private Metadata metadata; - - public GroupMetadataUpdateRequest() { - } - - public GroupMetadataUpdateRequest config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - - public GroupMetadataUpdateRequest metadata(Metadata metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Metadata getMetadata() { - return metadata; - } - - - public void setMetadata(Metadata metadata) { - this.metadata = metadata; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupMetadataUpdateRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupMetadataUpdateRequest groupMetadataUpdateRequest = (GroupMetadataUpdateRequest) o; - return Objects.equals(this.config, groupMetadataUpdateRequest.config) && - Objects.equals(this.metadata, groupMetadataUpdateRequest.metadata)&& - Objects.equals(this.additionalProperties, groupMetadataUpdateRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, metadata, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupMetadataUpdateRequest {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("metadata"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("metadata"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupMetadataUpdateRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupMetadataUpdateRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMetadataUpdateRequest is not found in the empty JSON string", GroupMetadataUpdateRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GroupMetadataUpdateRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - // validate the optional field `metadata` - if (jsonObj.getAsJsonObject("metadata") != null) { - Metadata.validateJsonObject(jsonObj.getAsJsonObject("metadata")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupMetadataUpdateRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupMetadataUpdateRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupMetadataUpdateRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupMetadataUpdateRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupMetadataUpdateRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupMetadataUpdateRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupMetadataUpdateRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupMetadataUpdateRequest - * @throws IOException if the JSON string is invalid with respect to GroupMetadataUpdateRequest - */ - public static GroupMetadataUpdateRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupMetadataUpdateRequest.class); - } - - /** - * Convert an instance of GroupMetadataUpdateRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequest.java deleted file mode 100644 index f5c38b0..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequest.java +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * information for creating a new group with the passed configuration - */ -@ApiModel(description = "information for creating a new group with the passed configuration") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupRegistrationRequest { - public static final String SERIALIZED_NAME_CONFIG = "config"; - @SerializedName(SERIALIZED_NAME_CONFIG) - private TileDBConfig config; - - public static final String SERIALIZED_NAME_GROUP_DETAILS = "group_details"; - @SerializedName(SERIALIZED_NAME_GROUP_DETAILS) - private GroupRegistrationRequestGroupDetails groupDetails; - - public GroupRegistrationRequest() { - } - - public GroupRegistrationRequest config(TileDBConfig config) { - - this.config = config; - return this; - } - - /** - * Get config - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public TileDBConfig getConfig() { - return config; - } - - - public void setConfig(TileDBConfig config) { - this.config = config; - } - - - public GroupRegistrationRequest groupDetails(GroupRegistrationRequestGroupDetails groupDetails) { - - this.groupDetails = groupDetails; - return this; - } - - /** - * Get groupDetails - * @return groupDetails - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public GroupRegistrationRequestGroupDetails getGroupDetails() { - return groupDetails; - } - - - public void setGroupDetails(GroupRegistrationRequestGroupDetails groupDetails) { - this.groupDetails = groupDetails; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupRegistrationRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupRegistrationRequest groupRegistrationRequest = (GroupRegistrationRequest) o; - return Objects.equals(this.config, groupRegistrationRequest.config) && - Objects.equals(this.groupDetails, groupRegistrationRequest.groupDetails)&& - Objects.equals(this.additionalProperties, groupRegistrationRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, groupDetails, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupRegistrationRequest {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" groupDetails: ").append(toIndentedString(groupDetails)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("group_details"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("group_details"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupRegistrationRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupRegistrationRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegistrationRequest is not found in the empty JSON string", GroupRegistrationRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GroupRegistrationRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the optional field `config` - if (jsonObj.getAsJsonObject("config") != null) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); - } - // validate the optional field `group_details` - if (jsonObj.getAsJsonObject("group_details") != null) { - GroupRegistrationRequestGroupDetails.validateJsonObject(jsonObj.getAsJsonObject("group_details")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupRegistrationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupRegistrationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupRegistrationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupRegistrationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupRegistrationRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupRegistrationRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupRegistrationRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupRegistrationRequest - * @throws IOException if the JSON string is invalid with respect to GroupRegistrationRequest - */ - public static GroupRegistrationRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupRegistrationRequest.class); - } - - /** - * Convert an instance of GroupRegistrationRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequestGroupDetails.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequestGroupDetails.java deleted file mode 100644 index e19ae5b..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/GroupRegistrationRequestGroupDetails.java +++ /dev/null @@ -1,573 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Initial attributes for the creation of a group. - */ -@ApiModel(description = "Initial attributes for the creation of a group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class GroupRegistrationRequestGroupDetails { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PARENT = "parent"; - @SerializedName(SERIALIZED_NAME_PARENT) - private String parent; - - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_LOGO = "logo"; - @SerializedName(SERIALIZED_NAME_LOGO) - private String logo; - - public static final String SERIALIZED_NAME_TAGS = "tags"; - @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; - - public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; - @SerializedName(SERIALIZED_NAME_LICENSE_ID) - private String licenseId; - - public static final String SERIALIZED_NAME_LICENSE_TEXT = "license_text"; - @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) - private String licenseText; - - public static final String SERIALIZED_NAME_REGION = "region"; - @SerializedName(SERIALIZED_NAME_REGION) - private String region; - - public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME = "access_credentials_name"; - @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME) - private String accessCredentialsName; - - public GroupRegistrationRequestGroupDetails() { - } - - public GroupRegistrationRequestGroupDetails description(String description) { - - this.description = description; - return this; - } - - /** - * A human readable description of the contents of the group. - * @return description - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable description of the contents of the group.") - - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public GroupRegistrationRequestGroupDetails name(String name) { - - this.name = name; - return this; - } - - /** - * The name of the group. If must be unique within the group. - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the group. If must be unique within the group.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public GroupRegistrationRequestGroupDetails parent(String parent) { - - this.parent = parent; - return this; - } - - /** - * The unique name or id of the parent of the group. If empty, then the new group will be a top level group. - * @return parent - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The unique name or id of the parent of the group. If empty, then the new group will be a top level group.") - - public String getParent() { - return parent; - } - - - public void setParent(String parent) { - this.parent = parent; - } - - - public GroupRegistrationRequestGroupDetails uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * uri of group. - * @return uri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "uri of group.") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public GroupRegistrationRequestGroupDetails logo(String logo) { - - this.logo = logo; - return this; - } - - /** - * logo (base64 encoded) for the group. Optional - * @return logo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") - - public String getLogo() { - return logo; - } - - - public void setLogo(String logo) { - this.logo = logo; - } - - - public GroupRegistrationRequestGroupDetails tags(List tags) { - - this.tags = tags; - return this; - } - - public GroupRegistrationRequestGroupDetails addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - /** - * optional tags for groups. - * @return tags - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for groups.") - - public List getTags() { - return tags; - } - - - public void setTags(List tags) { - this.tags = tags; - } - - - public GroupRegistrationRequestGroupDetails licenseId(String licenseId) { - - this.licenseId = licenseId; - return this; - } - - /** - * License identifier from SPDX License List or Custom. - * @return licenseId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom.") - - public String getLicenseId() { - return licenseId; - } - - - public void setLicenseId(String licenseId) { - this.licenseId = licenseId; - } - - - public GroupRegistrationRequestGroupDetails licenseText(String licenseText) { - - this.licenseText = licenseText; - return this; - } - - /** - * License text - * @return licenseText - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - - public String getLicenseText() { - return licenseText; - } - - - public void setLicenseText(String licenseText) { - this.licenseText = licenseText; - } - - - public GroupRegistrationRequestGroupDetails region(String region) { - - this.region = region; - return this; - } - - /** - * region of the group - * @return region - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "region of the group") - - public String getRegion() { - return region; - } - - - public void setRegion(String region) { - this.region = region; - } - - - public GroupRegistrationRequestGroupDetails accessCredentialsName(String accessCredentialsName) { - - this.accessCredentialsName = accessCredentialsName; - return this; - } - - /** - * the name of the access credentials to use. if unset, the default credentials will be used. - * @return accessCredentialsName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used.") - - public String getAccessCredentialsName() { - return accessCredentialsName; - } - - - public void setAccessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public GroupRegistrationRequestGroupDetails putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GroupRegistrationRequestGroupDetails groupRegistrationRequestGroupDetails = (GroupRegistrationRequestGroupDetails) o; - return Objects.equals(this.description, groupRegistrationRequestGroupDetails.description) && - Objects.equals(this.name, groupRegistrationRequestGroupDetails.name) && - Objects.equals(this.parent, groupRegistrationRequestGroupDetails.parent) && - Objects.equals(this.uri, groupRegistrationRequestGroupDetails.uri) && - Objects.equals(this.logo, groupRegistrationRequestGroupDetails.logo) && - Objects.equals(this.tags, groupRegistrationRequestGroupDetails.tags) && - Objects.equals(this.licenseId, groupRegistrationRequestGroupDetails.licenseId) && - Objects.equals(this.licenseText, groupRegistrationRequestGroupDetails.licenseText) && - Objects.equals(this.region, groupRegistrationRequestGroupDetails.region) && - Objects.equals(this.accessCredentialsName, groupRegistrationRequestGroupDetails.accessCredentialsName)&& - Objects.equals(this.additionalProperties, groupRegistrationRequestGroupDetails.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(description, name, parent, uri, logo, tags, licenseId, licenseText, region, accessCredentialsName, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GroupRegistrationRequestGroupDetails {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" parent: ").append(toIndentedString(parent)).append("\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); - sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); - sb.append(" region: ").append(toIndentedString(region)).append("\n"); - sb.append(" accessCredentialsName: ").append(toIndentedString(accessCredentialsName)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("name"); - openapiFields.add("parent"); - openapiFields.add("uri"); - openapiFields.add("logo"); - openapiFields.add("tags"); - openapiFields.add("license_id"); - openapiFields.add("license_text"); - openapiFields.add("region"); - openapiFields.add("access_credentials_name"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GroupRegistrationRequestGroupDetails - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupRegistrationRequestGroupDetails.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegistrationRequestGroupDetails is not found in the empty JSON string", GroupRegistrationRequestGroupDetails.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - // ensure the json data is an array - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } - if (jsonObj.get("region") != null && !jsonObj.get("region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); - } - if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GroupRegistrationRequestGroupDetails.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GroupRegistrationRequestGroupDetails' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GroupRegistrationRequestGroupDetails.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GroupRegistrationRequestGroupDetails value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GroupRegistrationRequestGroupDetails read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GroupRegistrationRequestGroupDetails instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GroupRegistrationRequestGroupDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupRegistrationRequestGroupDetails - * @throws IOException if the JSON string is invalid with respect to GroupRegistrationRequestGroupDetails - */ - public static GroupRegistrationRequestGroupDetails fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GroupRegistrationRequestGroupDetails.class); - } - - /** - * Convert an instance of GroupRegistrationRequestGroupDetails to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Layout.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Layout.java deleted file mode 100644 index 9705aec..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Layout.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Layout of array - */ -@JsonAdapter(Layout.Adapter.class) -public enum Layout { - - ROW_MAJOR("row-major"), - - COL_MAJOR("col-major"), - - GLOBAL_ORDER("global-order"), - - UNORDERED("unordered"); - - private String value; - - Layout(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static Layout fromValue(String value) { - for (Layout b : Layout.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final Layout enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public Layout read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return Layout.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Metadata.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Metadata.java deleted file mode 100644 index a02d8d5..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Metadata.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * user's TileDB metadata - */ -@ApiModel(description = "user's TileDB metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Metadata { - public static final String SERIALIZED_NAME_ENTRIES = "entries"; - @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; - - public Metadata() { - } - - public Metadata entries(List entries) { - - this.entries = entries; - return this; - } - - public Metadata addEntriesItem(MetadataEntry entriesItem) { - if (this.entries == null) { - this.entries = new ArrayList<>(); - } - this.entries.add(entriesItem); - return this; - } - - /** - * List of metadata entries - * @return entries - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of metadata entries") - - public List getEntries() { - return entries; - } - - - public void setEntries(List entries) { - this.entries = entries; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Metadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Metadata metadata = (Metadata) o; - return Objects.equals(this.entries, metadata.entries)&& - Objects.equals(this.additionalProperties, metadata.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(entries, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Metadata {\n"); - sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("entries"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Metadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Metadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Metadata is not found in the empty JSON string", Metadata.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - MetadataEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Metadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Metadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Metadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Metadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Metadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Metadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Metadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of Metadata - * @throws IOException if the JSON string is invalid with respect to Metadata - */ - public static Metadata fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Metadata.class); - } - - /** - * Convert an instance of Metadata to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/MetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/MetadataEntry.java deleted file mode 100644 index c300a81..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/MetadataEntry.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * key/value pair representing a group metadata map entry - */ -@ApiModel(description = "key/value pair representing a group metadata map entry") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class MetadataEntry { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_VALUE_NUM = "valueNum"; - @SerializedName(SERIALIZED_NAME_VALUE_NUM) - private Integer valueNum; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private Object value; - - public static final String SERIALIZED_NAME_DEL = "del"; - @SerializedName(SERIALIZED_NAME_DEL) - private Boolean del; - - public MetadataEntry() { - } - - public MetadataEntry key(String key) { - - this.key = key; - return this; - } - - /** - * Get key - * @return key - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getKey() { - return key; - } - - - public void setKey(String key) { - this.key = key; - } - - - public MetadataEntry type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public MetadataEntry valueNum(Integer valueNum) { - - this.valueNum = valueNum; - return this; - } - - /** - * Get valueNum - * @return valueNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Integer getValueNum() { - return valueNum; - } - - - public void setValueNum(Integer valueNum) { - this.valueNum = valueNum; - } - - - public MetadataEntry value(Object value) { - - this.value = value; - return this; - } - - /** - * Get value - * @return value - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Object getValue() { - return value; - } - - - public void setValue(Object value) { - this.value = value; - } - - - public MetadataEntry del(Boolean del) { - - this.del = del; - return this; - } - - /** - * Get del - * @return del - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getDel() { - return del; - } - - - public void setDel(Boolean del) { - this.del = del; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public MetadataEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MetadataEntry metadataEntry = (MetadataEntry) o; - return Objects.equals(this.key, metadataEntry.key) && - Objects.equals(this.type, metadataEntry.type) && - Objects.equals(this.valueNum, metadataEntry.valueNum) && - Objects.equals(this.value, metadataEntry.value) && - Objects.equals(this.del, metadataEntry.del)&& - Objects.equals(this.additionalProperties, metadataEntry.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(key, type, valueNum, value, del, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MetadataEntry {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" valueNum: ").append(toIndentedString(valueNum)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" del: ").append(toIndentedString(del)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("type"); - openapiFields.add("valueNum"); - openapiFields.add("value"); - openapiFields.add("del"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MetadataEntry - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (MetadataEntry.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataEntry is not found in the empty JSON string", MetadataEntry.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MetadataEntry.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MetadataEntry' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MetadataEntry.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MetadataEntry value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MetadataEntry read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MetadataEntry instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MetadataEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of MetadataEntry - * @throws IOException if the JSON string is invalid with respect to MetadataEntry - */ - public static MetadataEntry fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MetadataEntry.class); - } - - /** - * Convert an instance of MetadataEntry to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomainList.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomainList.java deleted file mode 100644 index 8217e81..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/NonEmptyDomainList.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * object containing non empty domains - */ -@ApiModel(description = "object containing non empty domains") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class NonEmptyDomainList { - public static final String SERIALIZED_NAME_NON_EMPTY_DOMAINS = "nonEmptyDomains"; - @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAINS) - private List nonEmptyDomains = null; - - public NonEmptyDomainList() { - } - - public NonEmptyDomainList nonEmptyDomains(List nonEmptyDomains) { - - this.nonEmptyDomains = nonEmptyDomains; - return this; - } - - public NonEmptyDomainList addNonEmptyDomainsItem(NonEmptyDomain nonEmptyDomainsItem) { - if (this.nonEmptyDomains == null) { - this.nonEmptyDomains = new ArrayList<>(); - } - this.nonEmptyDomains.add(nonEmptyDomainsItem); - return this; - } - - /** - * Array's non empty domain - * @return nonEmptyDomains - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Array's non empty domain") - - public List getNonEmptyDomains() { - return nonEmptyDomains; - } - - - public void setNonEmptyDomains(List nonEmptyDomains) { - this.nonEmptyDomains = nonEmptyDomains; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public NonEmptyDomainList putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NonEmptyDomainList nonEmptyDomainList = (NonEmptyDomainList) o; - return Objects.equals(this.nonEmptyDomains, nonEmptyDomainList.nonEmptyDomains)&& - Objects.equals(this.additionalProperties, nonEmptyDomainList.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(nonEmptyDomains, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NonEmptyDomainList {\n"); - sb.append(" nonEmptyDomains: ").append(toIndentedString(nonEmptyDomains)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nonEmptyDomains"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NonEmptyDomainList - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NonEmptyDomainList.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in NonEmptyDomainList is not found in the empty JSON string", NonEmptyDomainList.openapiRequiredFields.toString())); - } - } - JsonArray jsonArraynonEmptyDomains = jsonObj.getAsJsonArray("nonEmptyDomains"); - if (jsonArraynonEmptyDomains != null) { - // ensure the json data is an array - if (!jsonObj.get("nonEmptyDomains").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nonEmptyDomains` to be an array in the JSON string but got `%s`", jsonObj.get("nonEmptyDomains").toString())); - } - - // validate the optional field `nonEmptyDomains` (array) - for (int i = 0; i < jsonArraynonEmptyDomains.size(); i++) { - NonEmptyDomain.validateJsonObject(jsonArraynonEmptyDomains.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!NonEmptyDomainList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NonEmptyDomainList' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NonEmptyDomainList.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, NonEmptyDomainList value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public NonEmptyDomainList read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - NonEmptyDomainList instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of NonEmptyDomainList given an JSON string - * - * @param jsonString JSON string - * @return An instance of NonEmptyDomainList - * @throws IOException if the JSON string is invalid with respect to NonEmptyDomainList - */ - public static NonEmptyDomainList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NonEmptyDomainList.class); - } - - /** - * Convert an instance of NonEmptyDomainList to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/NotebookUploaded.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/NotebookUploaded.java deleted file mode 100644 index 0a54cb0..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/NotebookUploaded.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Uploaded notebook name and information - */ -@ApiModel(description = "Uploaded notebook name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class NotebookUploaded { - public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; - @SerializedName(SERIALIZED_NAME_OUTPUT_URI) - private String outputUri; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public NotebookUploaded() { - } - - public NotebookUploaded outputUri(String outputUri) { - - this.outputUri = outputUri; - return this; - } - - /** - * output location of the TileDB Notebook - * @return outputUri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB Notebook") - - public String getOutputUri() { - return outputUri; - } - - - public void setOutputUri(String outputUri) { - this.outputUri = outputUri; - } - - - public NotebookUploaded name(String name) { - - this.name = name; - return this; - } - - /** - * name of the notebook uploaded - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "name of the notebook uploaded") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public NotebookUploaded id(String id) { - - this.id = id; - return this; - } - - /** - * unique ID of the uploaded notebook - * @return id - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the uploaded notebook") - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public NotebookUploaded putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NotebookUploaded notebookUploaded = (NotebookUploaded) o; - return Objects.equals(this.outputUri, notebookUploaded.outputUri) && - Objects.equals(this.name, notebookUploaded.name) && - Objects.equals(this.id, notebookUploaded.id)&& - Objects.equals(this.additionalProperties, notebookUploaded.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(outputUri, name, id, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NotebookUploaded {\n"); - sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("output_uri"); - openapiFields.add("name"); - openapiFields.add("id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NotebookUploaded - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NotebookUploaded.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookUploaded is not found in the empty JSON string", NotebookUploaded.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NotebookUploaded.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!NotebookUploaded.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NotebookUploaded' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NotebookUploaded.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, NotebookUploaded value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public NotebookUploaded read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - NotebookUploaded instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of NotebookUploaded given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookUploaded - * @throws IOException if the JSON string is invalid with respect to NotebookUploaded - */ - public static NotebookUploaded fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NotebookUploaded.class); - } - - /** - * Convert an instance of NotebookUploaded to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/PaginationMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/PaginationMetadata.java deleted file mode 100644 index 68e194e..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/PaginationMetadata.java +++ /dev/null @@ -1,351 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * PaginationMetadata - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class PaginationMetadata { - public static final String SERIALIZED_NAME_PAGE = "page"; - @SerializedName(SERIALIZED_NAME_PAGE) - private BigDecimal page; - - public static final String SERIALIZED_NAME_PER_PAGE = "per_page"; - @SerializedName(SERIALIZED_NAME_PER_PAGE) - private BigDecimal perPage; - - public static final String SERIALIZED_NAME_TOTAL_PAGES = "total_pages"; - @SerializedName(SERIALIZED_NAME_TOTAL_PAGES) - private BigDecimal totalPages; - - public static final String SERIALIZED_NAME_TOTAL_ITEMS = "total_items"; - @SerializedName(SERIALIZED_NAME_TOTAL_ITEMS) - private BigDecimal totalItems; - - public PaginationMetadata() { - } - - public PaginationMetadata page(BigDecimal page) { - - this.page = page; - return this; - } - - /** - * pagination offset. Use it to skip the first ((page - 1) * per_page) items - * @return page - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1.0", value = "pagination offset. Use it to skip the first ((page - 1) * per_page) items") - - public BigDecimal getPage() { - return page; - } - - - public void setPage(BigDecimal page) { - this.page = page; - } - - - public PaginationMetadata perPage(BigDecimal perPage) { - - this.perPage = perPage; - return this; - } - - /** - * pagination limit (page size) - * @return perPage - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "10.0", value = "pagination limit (page size)") - - public BigDecimal getPerPage() { - return perPage; - } - - - public void setPerPage(BigDecimal perPage) { - this.perPage = perPage; - } - - - public PaginationMetadata totalPages(BigDecimal totalPages) { - - this.totalPages = totalPages; - return this; - } - - /** - * number of total pages with current limit - * @return totalPages - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "14.0", value = "number of total pages with current limit") - - public BigDecimal getTotalPages() { - return totalPages; - } - - - public void setTotalPages(BigDecimal totalPages) { - this.totalPages = totalPages; - } - - - public PaginationMetadata totalItems(BigDecimal totalItems) { - - this.totalItems = totalItems; - return this; - } - - /** - * number of total available items - * @return totalItems - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "138.0", value = "number of total available items") - - public BigDecimal getTotalItems() { - return totalItems; - } - - - public void setTotalItems(BigDecimal totalItems) { - this.totalItems = totalItems; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public PaginationMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaginationMetadata paginationMetadata = (PaginationMetadata) o; - return Objects.equals(this.page, paginationMetadata.page) && - Objects.equals(this.perPage, paginationMetadata.perPage) && - Objects.equals(this.totalPages, paginationMetadata.totalPages) && - Objects.equals(this.totalItems, paginationMetadata.totalItems)&& - Objects.equals(this.additionalProperties, paginationMetadata.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(page, perPage, totalPages, totalItems, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PaginationMetadata {\n"); - sb.append(" page: ").append(toIndentedString(page)).append("\n"); - sb.append(" perPage: ").append(toIndentedString(perPage)).append("\n"); - sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); - sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("page"); - openapiFields.add("per_page"); - openapiFields.add("total_pages"); - openapiFields.add("total_items"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PaginationMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (PaginationMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", PaginationMetadata.openapiRequiredFields.toString())); - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PaginationMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PaginationMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PaginationMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PaginationMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public PaginationMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - PaginationMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of PaginationMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaginationMetadata - * @throws IOException if the JSON string is invalid with respect to PaginationMetadata - */ - public static PaginationMetadata fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PaginationMetadata.class); - } - - /** - * Convert an instance of PaginationMetadata to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Query.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Query.java deleted file mode 100644 index 4423f9f..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Query.java +++ /dev/null @@ -1,576 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Query - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Query { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Querytype type; - - public static final String SERIALIZED_NAME_LAYOUT = "layout"; - @SerializedName(SERIALIZED_NAME_LAYOUT) - private Layout layout; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private Querystatus status; - - public static final String SERIALIZED_NAME_ATTRIBUTE_BUFFER_HEADERS = "attributeBufferHeaders"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BUFFER_HEADERS) - private List attributeBufferHeaders = new ArrayList<>(); - - public static final String SERIALIZED_NAME_WRITER = "writer"; - @SerializedName(SERIALIZED_NAME_WRITER) - private Writer writer; - - public static final String SERIALIZED_NAME_READER = "reader"; - @SerializedName(SERIALIZED_NAME_READER) - private QueryReader reader; - - public static final String SERIALIZED_NAME_ARRAY = "array"; - @SerializedName(SERIALIZED_NAME_ARRAY) - private Array array; - - public static final String SERIALIZED_NAME_TOTAL_FIXED_LENGTH_BUFFER_BYTES = "totalFixedLengthBufferBytes"; - @SerializedName(SERIALIZED_NAME_TOTAL_FIXED_LENGTH_BUFFER_BYTES) - private Integer totalFixedLengthBufferBytes; - - public static final String SERIALIZED_NAME_TOTAL_VAR_LEN_BUFFER_BYTES = "totalVarLenBufferBytes"; - @SerializedName(SERIALIZED_NAME_TOTAL_VAR_LEN_BUFFER_BYTES) - private Integer totalVarLenBufferBytes; - - public static final String SERIALIZED_NAME_TOTAL_VALIDITY_BUFFER_BYTES = "totalValidityBufferBytes"; - @SerializedName(SERIALIZED_NAME_TOTAL_VALIDITY_BUFFER_BYTES) - private Integer totalValidityBufferBytes; - - public Query() { - } - - public Query type(Querytype type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Querytype getType() { - return type; - } - - - public void setType(Querytype type) { - this.type = type; - } - - - public Query layout(Layout layout) { - - this.layout = layout; - return this; - } - - /** - * Get layout - * @return layout - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Layout getLayout() { - return layout; - } - - - public void setLayout(Layout layout) { - this.layout = layout; - } - - - public Query status(Querystatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Querystatus getStatus() { - return status; - } - - - public void setStatus(Querystatus status) { - this.status = status; - } - - - public Query attributeBufferHeaders(List attributeBufferHeaders) { - - this.attributeBufferHeaders = attributeBufferHeaders; - return this; - } - - public Query addAttributeBufferHeadersItem(AttributeBufferHeader attributeBufferHeadersItem) { - this.attributeBufferHeaders.add(attributeBufferHeadersItem); - return this; - } - - /** - * List of attribute buffer headers - * @return attributeBufferHeaders - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "List of attribute buffer headers") - - public List getAttributeBufferHeaders() { - return attributeBufferHeaders; - } - - - public void setAttributeBufferHeaders(List attributeBufferHeaders) { - this.attributeBufferHeaders = attributeBufferHeaders; - } - - - public Query writer(Writer writer) { - - this.writer = writer; - return this; - } - - /** - * Get writer - * @return writer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Writer getWriter() { - return writer; - } - - - public void setWriter(Writer writer) { - this.writer = writer; - } - - - public Query reader(QueryReader reader) { - - this.reader = reader; - return this; - } - - /** - * Get reader - * @return reader - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public QueryReader getReader() { - return reader; - } - - - public void setReader(QueryReader reader) { - this.reader = reader; - } - - - public Query array(Array array) { - - this.array = array; - return this; - } - - /** - * Get array - * @return array - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Array getArray() { - return array; - } - - - public void setArray(Array array) { - this.array = array; - } - - - public Query totalFixedLengthBufferBytes(Integer totalFixedLengthBufferBytes) { - - this.totalFixedLengthBufferBytes = totalFixedLengthBufferBytes; - return this; - } - - /** - * Total number of bytes in fixed size attribute buffers. - * @return totalFixedLengthBufferBytes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Total number of bytes in fixed size attribute buffers.") - - public Integer getTotalFixedLengthBufferBytes() { - return totalFixedLengthBufferBytes; - } - - - public void setTotalFixedLengthBufferBytes(Integer totalFixedLengthBufferBytes) { - this.totalFixedLengthBufferBytes = totalFixedLengthBufferBytes; - } - - - public Query totalVarLenBufferBytes(Integer totalVarLenBufferBytes) { - - this.totalVarLenBufferBytes = totalVarLenBufferBytes; - return this; - } - - /** - * Total number of bytes in variable size attribute buffers. - * @return totalVarLenBufferBytes - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Total number of bytes in variable size attribute buffers.") - - public Integer getTotalVarLenBufferBytes() { - return totalVarLenBufferBytes; - } - - - public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { - this.totalVarLenBufferBytes = totalVarLenBufferBytes; - } - - - public Query totalValidityBufferBytes(Integer totalValidityBufferBytes) { - - this.totalValidityBufferBytes = totalValidityBufferBytes; - return this; - } - - /** - * Total number of bytes in validity buffers - * @return totalValidityBufferBytes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of bytes in validity buffers") - - public Integer getTotalValidityBufferBytes() { - return totalValidityBufferBytes; - } - - - public void setTotalValidityBufferBytes(Integer totalValidityBufferBytes) { - this.totalValidityBufferBytes = totalValidityBufferBytes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Query putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Query query = (Query) o; - return Objects.equals(this.type, query.type) && - Objects.equals(this.layout, query.layout) && - Objects.equals(this.status, query.status) && - Objects.equals(this.attributeBufferHeaders, query.attributeBufferHeaders) && - Objects.equals(this.writer, query.writer) && - Objects.equals(this.reader, query.reader) && - Objects.equals(this.array, query.array) && - Objects.equals(this.totalFixedLengthBufferBytes, query.totalFixedLengthBufferBytes) && - Objects.equals(this.totalVarLenBufferBytes, query.totalVarLenBufferBytes) && - Objects.equals(this.totalValidityBufferBytes, query.totalValidityBufferBytes)&& - Objects.equals(this.additionalProperties, query.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, layout, status, attributeBufferHeaders, writer, reader, array, totalFixedLengthBufferBytes, totalVarLenBufferBytes, totalValidityBufferBytes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Query {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" attributeBufferHeaders: ").append(toIndentedString(attributeBufferHeaders)).append("\n"); - sb.append(" writer: ").append(toIndentedString(writer)).append("\n"); - sb.append(" reader: ").append(toIndentedString(reader)).append("\n"); - sb.append(" array: ").append(toIndentedString(array)).append("\n"); - sb.append(" totalFixedLengthBufferBytes: ").append(toIndentedString(totalFixedLengthBufferBytes)).append("\n"); - sb.append(" totalVarLenBufferBytes: ").append(toIndentedString(totalVarLenBufferBytes)).append("\n"); - sb.append(" totalValidityBufferBytes: ").append(toIndentedString(totalValidityBufferBytes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("layout"); - openapiFields.add("status"); - openapiFields.add("attributeBufferHeaders"); - openapiFields.add("writer"); - openapiFields.add("reader"); - openapiFields.add("array"); - openapiFields.add("totalFixedLengthBufferBytes"); - openapiFields.add("totalVarLenBufferBytes"); - openapiFields.add("totalValidityBufferBytes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("layout"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("attributeBufferHeaders"); - openapiRequiredFields.add("array"); - openapiRequiredFields.add("totalFixedLengthBufferBytes"); - openapiRequiredFields.add("totalVarLenBufferBytes"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Query - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Query.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Query is not found in the empty JSON string", Query.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Query.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - JsonArray jsonArrayattributeBufferHeaders = jsonObj.getAsJsonArray("attributeBufferHeaders"); - if (jsonArrayattributeBufferHeaders != null) { - // ensure the json data is an array - if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); - } - - // validate the optional field `attributeBufferHeaders` (array) - for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { - AttributeBufferHeader.validateJsonObject(jsonArrayattributeBufferHeaders.get(i).getAsJsonObject()); - }; - } - // validate the optional field `writer` - if (jsonObj.getAsJsonObject("writer") != null) { - Writer.validateJsonObject(jsonObj.getAsJsonObject("writer")); - } - // validate the optional field `reader` - if (jsonObj.getAsJsonObject("reader") != null) { - QueryReader.validateJsonObject(jsonObj.getAsJsonObject("reader")); - } - // validate the optional field `array` - if (jsonObj.getAsJsonObject("array") != null) { - Array.validateJsonObject(jsonObj.getAsJsonObject("array")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Query.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Query' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Query.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Query value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Query read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Query instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Query given an JSON string - * - * @param jsonString JSON string - * @return An instance of Query - * @throws IOException if the JSON string is invalid with respect to Query - */ - public static Query fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Query.class); - } - - /** - * Convert an instance of Query to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/QueryReader.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/QueryReader.java deleted file mode 100644 index 32f5603..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/QueryReader.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Read struct (can't be called reader due to class name conflict) - */ -@ApiModel(description = "Read struct (can't be called reader due to class name conflict)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class QueryReader { - public static final String SERIALIZED_NAME_LAYOUT = "layout"; - @SerializedName(SERIALIZED_NAME_LAYOUT) - private Layout layout; - - public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; - @SerializedName(SERIALIZED_NAME_SUBARRAY) - private Subarray subarray; - - public static final String SERIALIZED_NAME_READ_STATE = "readState"; - @SerializedName(SERIALIZED_NAME_READ_STATE) - private ReadState readState; - - public QueryReader() { - } - - public QueryReader layout(Layout layout) { - - this.layout = layout; - return this; - } - - /** - * Get layout - * @return layout - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Layout getLayout() { - return layout; - } - - - public void setLayout(Layout layout) { - this.layout = layout; - } - - - public QueryReader subarray(Subarray subarray) { - - this.subarray = subarray; - return this; - } - - /** - * Get subarray - * @return subarray - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Subarray getSubarray() { - return subarray; - } - - - public void setSubarray(Subarray subarray) { - this.subarray = subarray; - } - - - public QueryReader readState(ReadState readState) { - - this.readState = readState; - return this; - } - - /** - * Get readState - * @return readState - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ReadState getReadState() { - return readState; - } - - - public void setReadState(ReadState readState) { - this.readState = readState; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public QueryReader putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QueryReader queryReader = (QueryReader) o; - return Objects.equals(this.layout, queryReader.layout) && - Objects.equals(this.subarray, queryReader.subarray) && - Objects.equals(this.readState, queryReader.readState)&& - Objects.equals(this.additionalProperties, queryReader.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(layout, subarray, readState, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QueryReader {\n"); - sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); - sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); - sb.append(" readState: ").append(toIndentedString(readState)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("layout"); - openapiFields.add("subarray"); - openapiFields.add("readState"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to QueryReader - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (QueryReader.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in QueryReader is not found in the empty JSON string", QueryReader.openapiRequiredFields.toString())); - } - } - // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); - } - // validate the optional field `readState` - if (jsonObj.getAsJsonObject("readState") != null) { - ReadState.validateJsonObject(jsonObj.getAsJsonObject("readState")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!QueryReader.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'QueryReader' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(QueryReader.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, QueryReader value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public QueryReader read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - QueryReader instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of QueryReader given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryReader - * @throws IOException if the JSON string is invalid with respect to QueryReader - */ - public static QueryReader fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, QueryReader.class); - } - - /** - * Convert an instance of QueryReader to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Querystatus.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Querystatus.java deleted file mode 100644 index af0cabd..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Querystatus.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Status of query - */ -@JsonAdapter(Querystatus.Adapter.class) -public enum Querystatus { - - FAILED("FAILED"), - - COMPLETED("COMPLETED"), - - INPROGRESS("INPROGRESS"), - - INCOMPLETE("INCOMPLETE"), - - UNINITIALIZED("UNINITIALIZED"); - - private String value; - - Querystatus(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static Querystatus fromValue(String value) { - for (Querystatus b : Querystatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final Querystatus enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public Querystatus read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return Querystatus.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Querytype.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Querytype.java deleted file mode 100644 index dddabf3..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Querytype.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Type of query - */ -@JsonAdapter(Querytype.Adapter.class) -public enum Querytype { - - READ("READ"), - - WRITE("WRITE"); - - private String value; - - Querytype(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static Querytype fromValue(String value) { - for (Querytype b : Querytype.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final Querytype enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public Querytype read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return Querytype.fromValue(value); - } - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ReadState.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/ReadState.java deleted file mode 100644 index 98a52d5..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/ReadState.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * state for reads - */ -@ApiModel(description = "state for reads") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class ReadState { - public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; - @SerializedName(SERIALIZED_NAME_INITIALIZED) - private Boolean initialized; - - public static final String SERIALIZED_NAME_OVERFLOWED = "overflowed"; - @SerializedName(SERIALIZED_NAME_OVERFLOWED) - private Boolean overflowed; - - public static final String SERIALIZED_NAME_UNSPLITTABLE = "unsplittable"; - @SerializedName(SERIALIZED_NAME_UNSPLITTABLE) - private Boolean unsplittable; - - public static final String SERIALIZED_NAME_SUBARRAY_PARTITIONER = "subarrayPartitioner"; - @SerializedName(SERIALIZED_NAME_SUBARRAY_PARTITIONER) - private SubarrayPartitioner subarrayPartitioner; - - public ReadState() { - } - - public ReadState initialized(Boolean initialized) { - - this.initialized = initialized; - return this; - } - - /** - * True if the reader has been initialized. - * @return initialized - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the reader has been initialized.") - - public Boolean getInitialized() { - return initialized; - } - - - public void setInitialized(Boolean initialized) { - this.initialized = initialized; - } - - - public ReadState overflowed(Boolean overflowed) { - - this.overflowed = overflowed; - return this; - } - - /** - * True if the query produced results that could not fit in some buffer. - * @return overflowed - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the query produced results that could not fit in some buffer.") - - public Boolean getOverflowed() { - return overflowed; - } - - - public void setOverflowed(Boolean overflowed) { - this.overflowed = overflowed; - } - - - public ReadState unsplittable(Boolean unsplittable) { - - this.unsplittable = unsplittable; - return this; - } - - /** - * True if the current subarray partition is unsplittable. - * @return unsplittable - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the current subarray partition is unsplittable.") - - public Boolean getUnsplittable() { - return unsplittable; - } - - - public void setUnsplittable(Boolean unsplittable) { - this.unsplittable = unsplittable; - } - - - public ReadState subarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { - - this.subarrayPartitioner = subarrayPartitioner; - return this; - } - - /** - * Get subarrayPartitioner - * @return subarrayPartitioner - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public SubarrayPartitioner getSubarrayPartitioner() { - return subarrayPartitioner; - } - - - public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { - this.subarrayPartitioner = subarrayPartitioner; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public ReadState putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadState readState = (ReadState) o; - return Objects.equals(this.initialized, readState.initialized) && - Objects.equals(this.overflowed, readState.overflowed) && - Objects.equals(this.unsplittable, readState.unsplittable) && - Objects.equals(this.subarrayPartitioner, readState.subarrayPartitioner)&& - Objects.equals(this.additionalProperties, readState.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(initialized, overflowed, unsplittable, subarrayPartitioner, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReadState {\n"); - sb.append(" initialized: ").append(toIndentedString(initialized)).append("\n"); - sb.append(" overflowed: ").append(toIndentedString(overflowed)).append("\n"); - sb.append(" unsplittable: ").append(toIndentedString(unsplittable)).append("\n"); - sb.append(" subarrayPartitioner: ").append(toIndentedString(subarrayPartitioner)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("initialized"); - openapiFields.add("overflowed"); - openapiFields.add("unsplittable"); - openapiFields.add("subarrayPartitioner"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReadState - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ReadState.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ReadState is not found in the empty JSON string", ReadState.openapiRequiredFields.toString())); - } - } - // validate the optional field `subarrayPartitioner` - if (jsonObj.getAsJsonObject("subarrayPartitioner") != null) { - SubarrayPartitioner.validateJsonObject(jsonObj.getAsJsonObject("subarrayPartitioner")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReadState.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReadState' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReadState.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ReadState value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ReadState read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ReadState instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ReadState given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReadState - * @throws IOException if the JSON string is invalid with respect to ReadState - */ - public static ReadState fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReadState.class); - } - - /** - * Convert an instance of ReadState to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Subarray.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Subarray.java deleted file mode 100644 index 0311585..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Subarray.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * A Subarray - */ -@ApiModel(description = "A Subarray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Subarray { - public static final String SERIALIZED_NAME_LAYOUT = "layout"; - @SerializedName(SERIALIZED_NAME_LAYOUT) - private Layout layout; - - public static final String SERIALIZED_NAME_RANGES = "ranges"; - @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; - - public Subarray() { - } - - public Subarray layout(Layout layout) { - - this.layout = layout; - return this; - } - - /** - * Get layout - * @return layout - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Layout getLayout() { - return layout; - } - - - public void setLayout(Layout layout) { - this.layout = layout; - } - - - public Subarray ranges(List ranges) { - - this.ranges = ranges; - return this; - } - - public Subarray addRangesItem(SubarrayRanges rangesItem) { - if (this.ranges == null) { - this.ranges = new ArrayList<>(); - } - this.ranges.add(rangesItem); - return this; - } - - /** - * List of 1D ranges, one per dimension - * @return ranges - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of 1D ranges, one per dimension") - - public List getRanges() { - return ranges; - } - - - public void setRanges(List ranges) { - this.ranges = ranges; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Subarray putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Subarray subarray = (Subarray) o; - return Objects.equals(this.layout, subarray.layout) && - Objects.equals(this.ranges, subarray.ranges)&& - Objects.equals(this.additionalProperties, subarray.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(layout, ranges, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Subarray {\n"); - sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("layout"); - openapiFields.add("ranges"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Subarray - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Subarray.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Subarray is not found in the empty JSON string", Subarray.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); - if (jsonArrayranges != null) { - // ensure the json data is an array - if (!jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); - } - - // validate the optional field `ranges` (array) - for (int i = 0; i < jsonArrayranges.size(); i++) { - SubarrayRanges.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Subarray.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Subarray' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Subarray.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Subarray value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Subarray read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Subarray instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Subarray given an JSON string - * - * @param jsonString JSON string - * @return An instance of Subarray - * @throws IOException if the JSON string is invalid with respect to Subarray - */ - public static Subarray fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Subarray.class); - } - - /** - * Convert an instance of Subarray to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitioner.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitioner.java deleted file mode 100644 index 321b38f..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitioner.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The subarray partitioner - */ -@ApiModel(description = "The subarray partitioner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class SubarrayPartitioner { - public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; - @SerializedName(SERIALIZED_NAME_SUBARRAY) - private Subarray subarray; - - public static final String SERIALIZED_NAME_BUDGET = "budget"; - @SerializedName(SERIALIZED_NAME_BUDGET) - private List budget = null; - - public static final String SERIALIZED_NAME_CURRENT = "current"; - @SerializedName(SERIALIZED_NAME_CURRENT) - private SubarrayPartitionerCurrent current; - - public static final String SERIALIZED_NAME_STATE = "state"; - @SerializedName(SERIALIZED_NAME_STATE) - private SubarrayPartitionerState state; - - public static final String SERIALIZED_NAME_MEMORY_BUDGET = "memoryBudget"; - @SerializedName(SERIALIZED_NAME_MEMORY_BUDGET) - private Integer memoryBudget; - - public static final String SERIALIZED_NAME_MEMORY_BUDGET_VAR = "memoryBudgetVar"; - @SerializedName(SERIALIZED_NAME_MEMORY_BUDGET_VAR) - private Integer memoryBudgetVar; - - public SubarrayPartitioner() { - } - - public SubarrayPartitioner subarray(Subarray subarray) { - - this.subarray = subarray; - return this; - } - - /** - * Get subarray - * @return subarray - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Subarray getSubarray() { - return subarray; - } - - - public void setSubarray(Subarray subarray) { - this.subarray = subarray; - } - - - public SubarrayPartitioner budget(List budget) { - - this.budget = budget; - return this; - } - - public SubarrayPartitioner addBudgetItem(AttributeBufferSize budgetItem) { - if (this.budget == null) { - this.budget = new ArrayList<>(); - } - this.budget.add(budgetItem); - return this; - } - - /** - * Result size budget (in bytes) for all attributes. - * @return budget - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Result size budget (in bytes) for all attributes.") - - public List getBudget() { - return budget; - } - - - public void setBudget(List budget) { - this.budget = budget; - } - - - public SubarrayPartitioner current(SubarrayPartitionerCurrent current) { - - this.current = current; - return this; - } - - /** - * Get current - * @return current - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public SubarrayPartitionerCurrent getCurrent() { - return current; - } - - - public void setCurrent(SubarrayPartitionerCurrent current) { - this.current = current; - } - - - public SubarrayPartitioner state(SubarrayPartitionerState state) { - - this.state = state; - return this; - } - - /** - * Get state - * @return state - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public SubarrayPartitionerState getState() { - return state; - } - - - public void setState(SubarrayPartitionerState state) { - this.state = state; - } - - - public SubarrayPartitioner memoryBudget(Integer memoryBudget) { - - this.memoryBudget = memoryBudget; - return this; - } - - /** - * The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes - * @return memoryBudget - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes") - - public Integer getMemoryBudget() { - return memoryBudget; - } - - - public void setMemoryBudget(Integer memoryBudget) { - this.memoryBudget = memoryBudget; - } - - - public SubarrayPartitioner memoryBudgetVar(Integer memoryBudgetVar) { - - this.memoryBudgetVar = memoryBudgetVar; - return this; - } - - /** - * The memory budget for the var-sized attributes - * @return memoryBudgetVar - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The memory budget for the var-sized attributes") - - public Integer getMemoryBudgetVar() { - return memoryBudgetVar; - } - - - public void setMemoryBudgetVar(Integer memoryBudgetVar) { - this.memoryBudgetVar = memoryBudgetVar; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public SubarrayPartitioner putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SubarrayPartitioner subarrayPartitioner = (SubarrayPartitioner) o; - return Objects.equals(this.subarray, subarrayPartitioner.subarray) && - Objects.equals(this.budget, subarrayPartitioner.budget) && - Objects.equals(this.current, subarrayPartitioner.current) && - Objects.equals(this.state, subarrayPartitioner.state) && - Objects.equals(this.memoryBudget, subarrayPartitioner.memoryBudget) && - Objects.equals(this.memoryBudgetVar, subarrayPartitioner.memoryBudgetVar)&& - Objects.equals(this.additionalProperties, subarrayPartitioner.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(subarray, budget, current, state, memoryBudget, memoryBudgetVar, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SubarrayPartitioner {\n"); - sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); - sb.append(" budget: ").append(toIndentedString(budget)).append("\n"); - sb.append(" current: ").append(toIndentedString(current)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); - sb.append(" memoryBudget: ").append(toIndentedString(memoryBudget)).append("\n"); - sb.append(" memoryBudgetVar: ").append(toIndentedString(memoryBudgetVar)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("subarray"); - openapiFields.add("budget"); - openapiFields.add("current"); - openapiFields.add("state"); - openapiFields.add("memoryBudget"); - openapiFields.add("memoryBudgetVar"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SubarrayPartitioner - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayPartitioner.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitioner is not found in the empty JSON string", SubarrayPartitioner.openapiRequiredFields.toString())); - } - } - // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); - } - JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); - if (jsonArraybudget != null) { - // ensure the json data is an array - if (!jsonObj.get("budget").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); - } - - // validate the optional field `budget` (array) - for (int i = 0; i < jsonArraybudget.size(); i++) { - AttributeBufferSize.validateJsonObject(jsonArraybudget.get(i).getAsJsonObject()); - }; - } - // validate the optional field `current` - if (jsonObj.getAsJsonObject("current") != null) { - SubarrayPartitionerCurrent.validateJsonObject(jsonObj.getAsJsonObject("current")); - } - // validate the optional field `state` - if (jsonObj.getAsJsonObject("state") != null) { - SubarrayPartitionerState.validateJsonObject(jsonObj.getAsJsonObject("state")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SubarrayPartitioner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SubarrayPartitioner' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SubarrayPartitioner.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SubarrayPartitioner value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public SubarrayPartitioner read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - SubarrayPartitioner instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SubarrayPartitioner given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitioner - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitioner - */ - public static SubarrayPartitioner fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SubarrayPartitioner.class); - } - - /** - * Convert an instance of SubarrayPartitioner to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerCurrent.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerCurrent.java deleted file mode 100644 index 380d1af..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerCurrent.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The current partition info - */ -@ApiModel(description = "The current partition info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class SubarrayPartitionerCurrent { - public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; - @SerializedName(SERIALIZED_NAME_SUBARRAY) - private Subarray subarray; - - public static final String SERIALIZED_NAME_START = "start"; - @SerializedName(SERIALIZED_NAME_START) - private Integer start; - - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) - private Integer end; - - public static final String SERIALIZED_NAME_SPLIT_MULTI_RANGE = "splitMultiRange"; - @SerializedName(SERIALIZED_NAME_SPLIT_MULTI_RANGE) - private Boolean splitMultiRange; - - public SubarrayPartitionerCurrent() { - } - - public SubarrayPartitionerCurrent subarray(Subarray subarray) { - - this.subarray = subarray; - return this; - } - - /** - * Get subarray - * @return subarray - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Subarray getSubarray() { - return subarray; - } - - - public void setSubarray(Subarray subarray) { - this.subarray = subarray; - } - - - public SubarrayPartitionerCurrent start(Integer start) { - - this.start = start; - return this; - } - - /** - * PartitionInfo start - * @return start - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PartitionInfo start") - - public Integer getStart() { - return start; - } - - - public void setStart(Integer start) { - this.start = start; - } - - - public SubarrayPartitionerCurrent end(Integer end) { - - this.end = end; - return this; - } - - /** - * PartitionInfo end - * @return end - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PartitionInfo end") - - public Integer getEnd() { - return end; - } - - - public void setEnd(Integer end) { - this.end = end; - } - - - public SubarrayPartitionerCurrent splitMultiRange(Boolean splitMultiRange) { - - this.splitMultiRange = splitMultiRange; - return this; - } - - /** - * PartitionInfo splitMultiRange - * @return splitMultiRange - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PartitionInfo splitMultiRange") - - public Boolean getSplitMultiRange() { - return splitMultiRange; - } - - - public void setSplitMultiRange(Boolean splitMultiRange) { - this.splitMultiRange = splitMultiRange; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SubarrayPartitionerCurrent subarrayPartitionerCurrent = (SubarrayPartitionerCurrent) o; - return Objects.equals(this.subarray, subarrayPartitionerCurrent.subarray) && - Objects.equals(this.start, subarrayPartitionerCurrent.start) && - Objects.equals(this.end, subarrayPartitionerCurrent.end) && - Objects.equals(this.splitMultiRange, subarrayPartitionerCurrent.splitMultiRange)&& - Objects.equals(this.additionalProperties, subarrayPartitionerCurrent.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(subarray, start, end, splitMultiRange, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SubarrayPartitionerCurrent {\n"); - sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); - sb.append(" start: ").append(toIndentedString(start)).append("\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); - sb.append(" splitMultiRange: ").append(toIndentedString(splitMultiRange)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("subarray"); - openapiFields.add("start"); - openapiFields.add("end"); - openapiFields.add("splitMultiRange"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SubarrayPartitionerCurrent - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayPartitionerCurrent.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerCurrent is not found in the empty JSON string", SubarrayPartitionerCurrent.openapiRequiredFields.toString())); - } - } - // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SubarrayPartitionerCurrent.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SubarrayPartitionerCurrent' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SubarrayPartitionerCurrent.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public SubarrayPartitionerCurrent read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - SubarrayPartitionerCurrent instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SubarrayPartitionerCurrent given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitionerCurrent - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerCurrent - */ - public static SubarrayPartitionerCurrent fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SubarrayPartitionerCurrent.class); - } - - /** - * Convert an instance of SubarrayPartitionerCurrent to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerState.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerState.java deleted file mode 100644 index d6e4bf3..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayPartitionerState.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * The state information for the remaining partitions to be produced - */ -@ApiModel(description = "The state information for the remaining partitions to be produced") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class SubarrayPartitionerState { - public static final String SERIALIZED_NAME_START = "start"; - @SerializedName(SERIALIZED_NAME_START) - private Integer start; - - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) - private Integer end; - - public static final String SERIALIZED_NAME_SINGLE_RANGE = "singleRange"; - @SerializedName(SERIALIZED_NAME_SINGLE_RANGE) - private List singleRange = null; - - public static final String SERIALIZED_NAME_MULTI_RANGE = "multiRange"; - @SerializedName(SERIALIZED_NAME_MULTI_RANGE) - private List multiRange = null; - - public SubarrayPartitionerState() { - } - - public SubarrayPartitionerState start(Integer start) { - - this.start = start; - return this; - } - - /** - * State start - * @return start - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "State start") - - public Integer getStart() { - return start; - } - - - public void setStart(Integer start) { - this.start = start; - } - - - public SubarrayPartitionerState end(Integer end) { - - this.end = end; - return this; - } - - /** - * State end - * @return end - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "State end") - - public Integer getEnd() { - return end; - } - - - public void setEnd(Integer end) { - this.end = end; - } - - - public SubarrayPartitionerState singleRange(List singleRange) { - - this.singleRange = singleRange; - return this; - } - - public SubarrayPartitionerState addSingleRangeItem(Subarray singleRangeItem) { - if (this.singleRange == null) { - this.singleRange = new ArrayList<>(); - } - this.singleRange.add(singleRangeItem); - return this; - } - - /** - * State singleRange - * @return singleRange - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "State singleRange") - - public List getSingleRange() { - return singleRange; - } - - - public void setSingleRange(List singleRange) { - this.singleRange = singleRange; - } - - - public SubarrayPartitionerState multiRange(List multiRange) { - - this.multiRange = multiRange; - return this; - } - - public SubarrayPartitionerState addMultiRangeItem(Subarray multiRangeItem) { - if (this.multiRange == null) { - this.multiRange = new ArrayList<>(); - } - this.multiRange.add(multiRangeItem); - return this; - } - - /** - * State multiRange - * @return multiRange - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "State multiRange") - - public List getMultiRange() { - return multiRange; - } - - - public void setMultiRange(List multiRange) { - this.multiRange = multiRange; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public SubarrayPartitionerState putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SubarrayPartitionerState subarrayPartitionerState = (SubarrayPartitionerState) o; - return Objects.equals(this.start, subarrayPartitionerState.start) && - Objects.equals(this.end, subarrayPartitionerState.end) && - Objects.equals(this.singleRange, subarrayPartitionerState.singleRange) && - Objects.equals(this.multiRange, subarrayPartitionerState.multiRange)&& - Objects.equals(this.additionalProperties, subarrayPartitionerState.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(start, end, singleRange, multiRange, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SubarrayPartitionerState {\n"); - sb.append(" start: ").append(toIndentedString(start)).append("\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); - sb.append(" singleRange: ").append(toIndentedString(singleRange)).append("\n"); - sb.append(" multiRange: ").append(toIndentedString(multiRange)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("start"); - openapiFields.add("end"); - openapiFields.add("singleRange"); - openapiFields.add("multiRange"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SubarrayPartitionerState - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayPartitionerState.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerState is not found in the empty JSON string", SubarrayPartitionerState.openapiRequiredFields.toString())); - } - } - JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); - if (jsonArraysingleRange != null) { - // ensure the json data is an array - if (!jsonObj.get("singleRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); - } - - // validate the optional field `singleRange` (array) - for (int i = 0; i < jsonArraysingleRange.size(); i++) { - Subarray.validateJsonObject(jsonArraysingleRange.get(i).getAsJsonObject()); - }; - } - JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); - if (jsonArraymultiRange != null) { - // ensure the json data is an array - if (!jsonObj.get("multiRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); - } - - // validate the optional field `multiRange` (array) - for (int i = 0; i < jsonArraymultiRange.size(); i++) { - Subarray.validateJsonObject(jsonArraymultiRange.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SubarrayPartitionerState.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SubarrayPartitionerState' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SubarrayPartitionerState.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SubarrayPartitionerState value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public SubarrayPartitionerState read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - SubarrayPartitionerState instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SubarrayPartitionerState given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitionerState - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerState - */ - public static SubarrayPartitionerState fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SubarrayPartitionerState.class); - } - - /** - * Convert an instance of SubarrayPartitionerState to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayRanges.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayRanges.java deleted file mode 100644 index 3fc8a66..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/SubarrayRanges.java +++ /dev/null @@ -1,420 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * A set of 1D ranges for a subarray - */ -@ApiModel(description = "A set of 1D ranges for a subarray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class SubarrayRanges { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Datatype type; - - public static final String SERIALIZED_NAME_HAS_DEFAULT_RANGE = "hasDefaultRange"; - @SerializedName(SERIALIZED_NAME_HAS_DEFAULT_RANGE) - private Boolean hasDefaultRange; - - public static final String SERIALIZED_NAME_BUFFER = "buffer"; - @SerializedName(SERIALIZED_NAME_BUFFER) - private List buffer = null; - - public static final String SERIALIZED_NAME_BUFFER_SIZES = "bufferSizes"; - @SerializedName(SERIALIZED_NAME_BUFFER_SIZES) - private List bufferSizes = null; - - public static final String SERIALIZED_NAME_BUFFER_START_SIZES = "bufferStartSizes"; - @SerializedName(SERIALIZED_NAME_BUFFER_START_SIZES) - private List bufferStartSizes = null; - - public SubarrayRanges() { - } - - public SubarrayRanges type(Datatype type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Datatype getType() { - return type; - } - - - public void setType(Datatype type) { - this.type = type; - } - - - public SubarrayRanges hasDefaultRange(Boolean hasDefaultRange) { - - this.hasDefaultRange = hasDefaultRange; - return this; - } - - /** - * True if the range is the default range - * @return hasDefaultRange - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "True if the range is the default range") - - public Boolean getHasDefaultRange() { - return hasDefaultRange; - } - - - public void setHasDefaultRange(Boolean hasDefaultRange) { - this.hasDefaultRange = hasDefaultRange; - } - - - public SubarrayRanges buffer(List buffer) { - - this.buffer = buffer; - return this; - } - - public SubarrayRanges addBufferItem(Integer bufferItem) { - if (this.buffer == null) { - this.buffer = new ArrayList<>(); - } - this.buffer.add(bufferItem); - return this; - } - - /** - * The bytes of the ranges - * @return buffer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The bytes of the ranges") - - public List getBuffer() { - return buffer; - } - - - public void setBuffer(List buffer) { - this.buffer = buffer; - } - - - public SubarrayRanges bufferSizes(List bufferSizes) { - - this.bufferSizes = bufferSizes; - return this; - } - - public SubarrayRanges addBufferSizesItem(Integer bufferSizesItem) { - if (this.bufferSizes == null) { - this.bufferSizes = new ArrayList<>(); - } - this.bufferSizes.add(bufferSizesItem); - return this; - } - - /** - * The list of sizes per range - * @return bufferSizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The list of sizes per range") - - public List getBufferSizes() { - return bufferSizes; - } - - - public void setBufferSizes(List bufferSizes) { - this.bufferSizes = bufferSizes; - } - - - public SubarrayRanges bufferStartSizes(List bufferStartSizes) { - - this.bufferStartSizes = bufferStartSizes; - return this; - } - - public SubarrayRanges addBufferStartSizesItem(Integer bufferStartSizesItem) { - if (this.bufferStartSizes == null) { - this.bufferStartSizes = new ArrayList<>(); - } - this.bufferStartSizes.add(bufferStartSizesItem); - return this; - } - - /** - * The list of start sizes per range - * @return bufferStartSizes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The list of start sizes per range") - - public List getBufferStartSizes() { - return bufferStartSizes; - } - - - public void setBufferStartSizes(List bufferStartSizes) { - this.bufferStartSizes = bufferStartSizes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public SubarrayRanges putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SubarrayRanges subarrayRanges = (SubarrayRanges) o; - return Objects.equals(this.type, subarrayRanges.type) && - Objects.equals(this.hasDefaultRange, subarrayRanges.hasDefaultRange) && - Objects.equals(this.buffer, subarrayRanges.buffer) && - Objects.equals(this.bufferSizes, subarrayRanges.bufferSizes) && - Objects.equals(this.bufferStartSizes, subarrayRanges.bufferStartSizes)&& - Objects.equals(this.additionalProperties, subarrayRanges.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, hasDefaultRange, buffer, bufferSizes, bufferStartSizes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SubarrayRanges {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" hasDefaultRange: ").append(toIndentedString(hasDefaultRange)).append("\n"); - sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); - sb.append(" bufferSizes: ").append(toIndentedString(bufferSizes)).append("\n"); - sb.append(" bufferStartSizes: ").append(toIndentedString(bufferStartSizes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("hasDefaultRange"); - openapiFields.add("buffer"); - openapiFields.add("bufferSizes"); - openapiFields.add("bufferStartSizes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SubarrayRanges - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayRanges.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayRanges is not found in the empty JSON string", SubarrayRanges.openapiRequiredFields.toString())); - } - } - // ensure the json data is an array - if (jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `buffer` to be an array in the JSON string but got `%s`", jsonObj.get("buffer").toString())); - } - // ensure the json data is an array - if (jsonObj.get("bufferSizes") != null && !jsonObj.get("bufferSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bufferSizes` to be an array in the JSON string but got `%s`", jsonObj.get("bufferSizes").toString())); - } - // ensure the json data is an array - if (jsonObj.get("bufferStartSizes") != null && !jsonObj.get("bufferStartSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bufferStartSizes` to be an array in the JSON string but got `%s`", jsonObj.get("bufferStartSizes").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SubarrayRanges.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SubarrayRanges' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SubarrayRanges.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SubarrayRanges value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public SubarrayRanges read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - SubarrayRanges instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SubarrayRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayRanges - * @throws IOException if the JSON string is invalid with respect to SubarrayRanges - */ - public static SubarrayRanges fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SubarrayRanges.class); - } - - /** - * Convert an instance of SubarrayRanges to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfig.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfig.java deleted file mode 100644 index 118ab4a..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfig.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * TileDB config used for interaction with the embedded library - */ -@ApiModel(description = "TileDB config used for interaction with the embedded library") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class TileDBConfig { - public static final String SERIALIZED_NAME_ENTRIES = "entries"; - @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; - - public TileDBConfig() { - } - - public TileDBConfig entries(List entries) { - - this.entries = entries; - return this; - } - - public TileDBConfig addEntriesItem(TileDBConfigEntriesInner entriesItem) { - if (this.entries == null) { - this.entries = new ArrayList<>(); - } - this.entries.add(entriesItem); - return this; - } - - /** - * Get entries - * @return entries - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getEntries() { - return entries; - } - - - public void setEntries(List entries) { - this.entries = entries; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public TileDBConfig putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TileDBConfig tileDBConfig = (TileDBConfig) o; - return Objects.equals(this.entries, tileDBConfig.entries)&& - Objects.equals(this.additionalProperties, tileDBConfig.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(entries, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TileDBConfig {\n"); - sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("entries"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to TileDBConfig - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TileDBConfig.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfig is not found in the empty JSON string", TileDBConfig.openapiRequiredFields.toString())); - } - } - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - TileDBConfigEntriesInner.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); - }; - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!TileDBConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'TileDBConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(TileDBConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, TileDBConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public TileDBConfig read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - TileDBConfig instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of TileDBConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of TileDBConfig - * @throws IOException if the JSON string is invalid with respect to TileDBConfig - */ - public static TileDBConfig fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, TileDBConfig.class); - } - - /** - * Convert an instance of TileDBConfig to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfigEntriesInner.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfigEntriesInner.java deleted file mode 100644 index 1ec40fe..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/TileDBConfigEntriesInner.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * TileDBConfigEntriesInner - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class TileDBConfigEntriesInner { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private String value; - - public TileDBConfigEntriesInner() { - } - - public TileDBConfigEntriesInner key(String key) { - - this.key = key; - return this; - } - - /** - * Get key - * @return key - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getKey() { - return key; - } - - - public void setKey(String key) { - this.key = key; - } - - - public TileDBConfigEntriesInner value(String value) { - - this.value = value; - return this; - } - - /** - * Get value - * @return value - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getValue() { - return value; - } - - - public void setValue(String value) { - this.value = value; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TileDBConfigEntriesInner tileDBConfigEntriesInner = (TileDBConfigEntriesInner) o; - return Objects.equals(this.key, tileDBConfigEntriesInner.key) && - Objects.equals(this.value, tileDBConfigEntriesInner.value)&& - Objects.equals(this.additionalProperties, tileDBConfigEntriesInner.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(key, value, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TileDBConfigEntriesInner {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("value"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to TileDBConfigEntriesInner - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TileDBConfigEntriesInner.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfigEntriesInner is not found in the empty JSON string", TileDBConfigEntriesInner.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!TileDBConfigEntriesInner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'TileDBConfigEntriesInner' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(TileDBConfigEntriesInner.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, TileDBConfigEntriesInner value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public TileDBConfigEntriesInner read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - TileDBConfigEntriesInner instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of TileDBConfigEntriesInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TileDBConfigEntriesInner - * @throws IOException if the JSON string is invalid with respect to TileDBConfigEntriesInner - */ - public static TileDBConfigEntriesInner fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, TileDBConfigEntriesInner.class); - } - - /** - * Convert an instance of TileDBConfigEntriesInner to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/TimestampedURI.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/TimestampedURI.java deleted file mode 100644 index a41a168..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/TimestampedURI.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * the timestamped filtered array metadata URIs, after removing the ones that need to be vacuumed and those that do not fall within - */ -@ApiModel(description = "the timestamped filtered array metadata URIs, after removing the ones that need to be vacuumed and those that do not fall within") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class TimestampedURI { - public static final String SERIALIZED_NAME_URI = "uri"; - @SerializedName(SERIALIZED_NAME_URI) - private String uri; - - public static final String SERIALIZED_NAME_TIMESTAMP_START = "timestampStart"; - @SerializedName(SERIALIZED_NAME_TIMESTAMP_START) - private BigDecimal timestampStart; - - public static final String SERIALIZED_NAME_TIMESTAMP_END = "timestampEnd"; - @SerializedName(SERIALIZED_NAME_TIMESTAMP_END) - private BigDecimal timestampEnd; - - public TimestampedURI() { - } - - public TimestampedURI uri(String uri) { - - this.uri = uri; - return this; - } - - /** - * the uri - * @return uri - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "the uri") - - public String getUri() { - return uri; - } - - - public void setUri(String uri) { - this.uri = uri; - } - - - public TimestampedURI timestampStart(BigDecimal timestampStart) { - - this.timestampStart = timestampStart; - return this; - } - - /** - * start of timestamp - * @return timestampStart - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "start of timestamp") - - public BigDecimal getTimestampStart() { - return timestampStart; - } - - - public void setTimestampStart(BigDecimal timestampStart) { - this.timestampStart = timestampStart; - } - - - public TimestampedURI timestampEnd(BigDecimal timestampEnd) { - - this.timestampEnd = timestampEnd; - return this; - } - - /** - * end of timestamp - * @return timestampEnd - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "end of timestamp") - - public BigDecimal getTimestampEnd() { - return timestampEnd; - } - - - public void setTimestampEnd(BigDecimal timestampEnd) { - this.timestampEnd = timestampEnd; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public TimestampedURI putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TimestampedURI timestampedURI = (TimestampedURI) o; - return Objects.equals(this.uri, timestampedURI.uri) && - Objects.equals(this.timestampStart, timestampedURI.timestampStart) && - Objects.equals(this.timestampEnd, timestampedURI.timestampEnd)&& - Objects.equals(this.additionalProperties, timestampedURI.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(uri, timestampStart, timestampEnd, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TimestampedURI {\n"); - sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" timestampStart: ").append(toIndentedString(timestampStart)).append("\n"); - sb.append(" timestampEnd: ").append(toIndentedString(timestampEnd)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("uri"); - openapiFields.add("timestampStart"); - openapiFields.add("timestampEnd"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to TimestampedURI - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TimestampedURI.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in TimestampedURI is not found in the empty JSON string", TimestampedURI.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!TimestampedURI.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'TimestampedURI' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(TimestampedURI.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, TimestampedURI value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public TimestampedURI read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - TimestampedURI instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of TimestampedURI given an JSON string - * - * @param jsonString JSON string - * @return An instance of TimestampedURI - * @throws IOException if the JSON string is invalid with respect to TimestampedURI - */ - public static TimestampedURI fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, TimestampedURI.class); - } - - /** - * Convert an instance of TimestampedURI to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Writer.java b/src/main/java/io/tiledb/cloud/rest_api/v2/model/Writer.java deleted file mode 100644 index d9b8d43..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/model/Writer.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Tiledb Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 1.4.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.v2.model; - -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; - -import io.tiledb.cloud.rest_api.v2.JSON; - -/** - * Writer - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-02T18:54:48.746612+03:00[Europe/Athens]") -public class Writer { - public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; - @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) - private Boolean checkCoordDups; - - public static final String SERIALIZED_NAME_CHECK_COORD_O_O_B = "checkCoordOOB"; - @SerializedName(SERIALIZED_NAME_CHECK_COORD_O_O_B) - private Boolean checkCoordOOB; - - public static final String SERIALIZED_NAME_DEDUP_COORDS = "dedupCoords"; - @SerializedName(SERIALIZED_NAME_DEDUP_COORDS) - private Boolean dedupCoords; - - public static final String SERIALIZED_NAME_SUBARRAY_RANGES = "subarrayRanges"; - @SerializedName(SERIALIZED_NAME_SUBARRAY_RANGES) - private Subarray subarrayRanges; - - public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; - @SerializedName(SERIALIZED_NAME_SUBARRAY) - private DomainArray subarray; - - public Writer() { - } - - public Writer checkCoordDups(Boolean checkCoordDups) { - - this.checkCoordDups = checkCoordDups; - return this; - } - - /** - * Get checkCoordDups - * @return checkCoordDups - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getCheckCoordDups() { - return checkCoordDups; - } - - - public void setCheckCoordDups(Boolean checkCoordDups) { - this.checkCoordDups = checkCoordDups; - } - - - public Writer checkCoordOOB(Boolean checkCoordOOB) { - - this.checkCoordOOB = checkCoordOOB; - return this; - } - - /** - * Get checkCoordOOB - * @return checkCoordOOB - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getCheckCoordOOB() { - return checkCoordOOB; - } - - - public void setCheckCoordOOB(Boolean checkCoordOOB) { - this.checkCoordOOB = checkCoordOOB; - } - - - public Writer dedupCoords(Boolean dedupCoords) { - - this.dedupCoords = dedupCoords; - return this; - } - - /** - * Get dedupCoords - * @return dedupCoords - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getDedupCoords() { - return dedupCoords; - } - - - public void setDedupCoords(Boolean dedupCoords) { - this.dedupCoords = dedupCoords; - } - - - public Writer subarrayRanges(Subarray subarrayRanges) { - - this.subarrayRanges = subarrayRanges; - return this; - } - - /** - * Get subarrayRanges - * @return subarrayRanges - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Subarray getSubarrayRanges() { - return subarrayRanges; - } - - - public void setSubarrayRanges(Subarray subarrayRanges) { - this.subarrayRanges = subarrayRanges; - } - - - public Writer subarray(DomainArray subarray) { - - this.subarray = subarray; - return this; - } - - /** - * Get subarray - * @return subarray - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public DomainArray getSubarray() { - return subarray; - } - - - public void setSubarray(DomainArray subarray) { - this.subarray = subarray; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - */ - public Writer putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Writer writer = (Writer) o; - return Objects.equals(this.checkCoordDups, writer.checkCoordDups) && - Objects.equals(this.checkCoordOOB, writer.checkCoordOOB) && - Objects.equals(this.dedupCoords, writer.dedupCoords) && - Objects.equals(this.subarrayRanges, writer.subarrayRanges) && - Objects.equals(this.subarray, writer.subarray)&& - Objects.equals(this.additionalProperties, writer.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(checkCoordDups, checkCoordOOB, dedupCoords, subarrayRanges, subarray, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Writer {\n"); - sb.append(" checkCoordDups: ").append(toIndentedString(checkCoordDups)).append("\n"); - sb.append(" checkCoordOOB: ").append(toIndentedString(checkCoordOOB)).append("\n"); - sb.append(" dedupCoords: ").append(toIndentedString(dedupCoords)).append("\n"); - sb.append(" subarrayRanges: ").append(toIndentedString(subarrayRanges)).append("\n"); - sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("checkCoordDups"); - openapiFields.add("checkCoordOOB"); - openapiFields.add("dedupCoords"); - openapiFields.add("subarrayRanges"); - openapiFields.add("subarray"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Writer - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Writer.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in Writer is not found in the empty JSON string", Writer.openapiRequiredFields.toString())); - } - } - // validate the optional field `subarrayRanges` - if (jsonObj.getAsJsonObject("subarrayRanges") != null) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarrayRanges")); - } - // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Writer.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Writer' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Writer.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Writer value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Writer read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Writer instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else { // non-primitive type - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Writer given an JSON string - * - * @param jsonString JSON string - * @return An instance of Writer - * @throws IOException if the JSON string is invalid with respect to Writer - */ - public static Writer fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Writer.class); - } - - /** - * Convert an instance of Writer to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java deleted file mode 100644 index 2b0ff77..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java +++ /dev/null @@ -1,560 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.ArrayBrowserData; -import io.tiledb.cloud.rest_api.model.ArrayBrowserSidebar; -import io.tiledb.cloud.rest_api.model.ArrayConsolidationRequest; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; -import io.tiledb.cloud.rest_api.model.ArrayMetadata; -import io.tiledb.cloud.rest_api.model.ArraySample; -import io.tiledb.cloud.rest_api.model.ArraySchema; -import io.tiledb.cloud.rest_api.model.ArraySharing; -import io.tiledb.cloud.rest_api.model.ArrayVacuumRequest; -import java.math.BigDecimal; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.FragmentInfo; -import io.tiledb.cloud.rest_api.model.FragmentInfoRequest; -import io.tiledb.cloud.rest_api.model.LastAccessedArray; -import io.tiledb.cloud.rest_api.model.LoadArraySchemaRequest; -import io.tiledb.cloud.rest_api.model.LoadArraySchemaResponse; -import io.tiledb.cloud.rest_api.model.LoadEnumerationsRequest; -import io.tiledb.cloud.rest_api.model.LoadEnumerationsResponse; -import io.tiledb.cloud.rest_api.model.MaxBufferSizes; -import io.tiledb.cloud.rest_api.model.NonEmptyDomain; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for ArrayApi - */ -@Disabled -public class ArrayApiTest { - - private final ArrayApi api = new ArrayApi(); - - /** - * get array activity logs - * - * @throws ApiException if the Api call fails - */ - @Test - public void arrayActivityLogTest() throws ApiException { - String namespace = null; - String array = null; - Integer start = null; - Integer end = null; - String eventTypes = null; - String taskId = null; - Boolean hasTaskId = null; - List response = api.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); - // TODO: test validations - } - - /** - * Fetch a list of all arrays that are owned directly by user or user's organizations - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysBrowserOwnedGetTest() throws ApiException { - Integer page = null; - Integer perPage = null; - String search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - List fileType = null; - List excludeFileType = null; - List fileProperty = null; - Boolean withMetadata = null; - ArrayBrowserData response = api.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); - // TODO: test validations - } - - /** - * Fetch a sidebar for arrays that are owned directly by user or user's organizations - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysBrowserOwnedSidebarGetTest() throws ApiException { - List fileType = null; - List excludeFileType = null; - List fileProperty = null; - ArrayBrowserSidebar response = api.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); - // TODO: test validations - } - - /** - * Fetch a list of all arrays that have been shared publically - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysBrowserPublicGetTest() throws ApiException { - Integer page = null; - Integer perPage = null; - String search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - List fileType = null; - List excludeFileType = null; - List fileProperty = null; - Boolean withMetadata = null; - ArrayBrowserData response = api.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); - // TODO: test validations - } - - /** - * Fetch a sidebar of all arrays that have been shared publically - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysBrowserPublicSidebarGetTest() throws ApiException { - List fileType = null; - List excludeFileType = null; - List fileProperty = null; - ArrayBrowserSidebar response = api.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); - // TODO: test validations - } - - /** - * Fetch a list of all arrays that have been shared with the user - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysBrowserSharedGetTest() throws ApiException { - Integer page = null; - Integer perPage = null; - String search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - List fileType = null; - List excludeFileType = null; - List fileProperty = null; - List sharedTo = null; - Boolean withMetadata = null; - ArrayBrowserData response = api.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata); - // TODO: test validations - } - - /** - * Fetch a list of all arrays that have been shared with the user - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysBrowserSharedSidebarGetTest() throws ApiException { - List fileType = null; - List excludeFileType = null; - List fileProperty = null; - List sharedTo = null; - ArrayBrowserSidebar response = api.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); - // TODO: test validations - } - - /** - * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * - * @throws ApiException if the Api call fails - */ - @Test - public void arraysNamespaceArrayEndTimestampsGetTest() throws ApiException { - String namespace = null; - String array = null; - Integer page = null; - Integer perPage = null; - ArrayEndTimestampData response = api.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - // TODO: test validations - } - - /** - * consolidate an array at a specified URI - * - * @throws ApiException if the Api call fails - */ - @Test - public void consolidateArrayTest() throws ApiException { - String namespace = null; - String array = null; - ArrayConsolidationRequest consolidateRequest = null; - api.consolidateArray(namespace, array, consolidateRequest); - // TODO: test validations - } - - /** - * create a array schema at a specified URI registered to a group/project - * - * @throws ApiException if the Api call fails - */ - @Test - public void createArrayTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - ArraySchema arraySchema = null; - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - api.createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - // TODO: test validations - } - - /** - * delete a array - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteArrayTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - api.deleteArray(namespace, array, contentType); - // TODO: test validations - } - - /** - * deregister a array - * - * @throws ApiException if the Api call fails - */ - @Test - public void deregisterArrayTest() throws ApiException { - String namespace = null; - String array = null; - api.deregisterArray(namespace, array); - // TODO: test validations - } - - /** - * fetch an array's fragment info - * - * @throws ApiException if the Api call fails - */ - @Test - public void fragmentInfoTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - FragmentInfoRequest fragmentInfoRequest = null; - FragmentInfo response = api.fragmentInfo(namespace, array, contentType, fragmentInfoRequest); - // TODO: test validations - } - - /** - * get activity log by ID - * - * @throws ApiException if the Api call fails - */ - @Test - public void getActivityLogByIdTest() throws ApiException { - String namespace = null; - String array = null; - String id = null; - ArrayActivityLog response = api.getActivityLogById(namespace, array, id); - // TODO: test validations - } - - /** - * get all array metadata user has access to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAllArrayMetadataTest() throws ApiException { - String publicShare = null; - List response = api.getAllArrayMetadata(publicShare); - // TODO: test validations - } - - /** - * get an ArraySchema using a url encoded uri - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - ArraySchema response = api.getArray(namespace, array, contentType); - // TODO: test validations - } - - /** - * get the max buffer sizes of an array for a subarray - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayMaxBufferSizesTest() throws ApiException { - String namespace = null; - String array = null; - String subarray = null; - String contentType = null; - String xPayer = null; - MaxBufferSizes response = api.getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer); - // TODO: test validations - } - - /** - * get metadata from the array in JSON format - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayMetaDataJsonTest() throws ApiException { - String namespace = null; - String array = null; - Integer length = null; - Integer endTimestamp = null; - Map response = api.getArrayMetaDataJson(namespace, array, length, endTimestamp); - // TODO: test validations - } - - /** - * get metadata on an array - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayMetadataTest() throws ApiException { - String namespace = null; - String array = null; - ArrayInfo response = api.getArrayMetadata(namespace, array); - // TODO: test validations - } - - /** - * get metadata on an array - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayMetadataCapnpTest() throws ApiException { - String namespace = null; - String array = null; - ArrayMetadata response = api.getArrayMetadataCapnp(namespace, array); - // TODO: test validations - } - - /** - * get the non empty domain of an array - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayNonEmptyDomainTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - String xPayer = null; - NonEmptyDomain response = api.getArrayNonEmptyDomain(namespace, array, contentType, xPayer); - // TODO: test validations - } - - /** - * get non-empty domain from the array in json format - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayNonEmptyDomainJsonTest() throws ApiException { - String namespace = null; - String array = null; - Map response = api.getArrayNonEmptyDomainJson(namespace, array); - // TODO: test validations - } - - /** - * get an sample set of data from the array - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArraySampleDataTest() throws ApiException { - String namespace = null; - String array = null; - BigDecimal samples = null; - ArraySample response = api.getArraySampleData(namespace, array, samples); - // TODO: test validations - } - - /** - * Get all sharing details of the array - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArraySharingPoliciesTest() throws ApiException { - String namespace = null; - String array = null; - List response = api.getArraySharingPolicies(namespace, array); - // TODO: test validations - } - - /** - * get metadata on all arrays in a namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArraysInNamespaceTest() throws ApiException { - String namespace = null; - Boolean withMetadata = null; - List response = api.getArraysInNamespace(namespace, withMetadata); - // TODO: test validations - } - - /** - * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * - * @throws ApiException if the Api call fails - */ - @Test - public void getFragmentEndTimestampTest() throws ApiException { - String namespace = null; - String array = null; - Integer endTimestamp = null; - Integer response = api.getFragmentEndTimestamp(namespace, array, endTimestamp); - // TODO: test validations - } - - /** - * @throws ApiException if the Api call fails - */ - @Test - public void getLastAccessedArraysTest() throws ApiException { - List response = api.getLastAccessedArrays(); - // TODO: test validations - } - - /** - * request to get the array schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void loadArraySchemaTest() throws ApiException { - String namespace = null; - String array = null; - LoadArraySchemaRequest loadArraySchemaRequest = null; - LoadArraySchemaResponse response = api.loadArraySchema(namespace, array, loadArraySchemaRequest); - // TODO: test validations - } - - /** - * request to get the enumerations of the arrays' attributes - * - * @throws ApiException if the Api call fails - */ - @Test - public void loadEnumerationsTest() throws ApiException { - String namespace = null; - String array = null; - LoadEnumerationsRequest loadEnumerationsRequest = null; - LoadEnumerationsResponse response = api.loadEnumerations(namespace, array, loadEnumerationsRequest); - // TODO: test validations - } - - /** - * register an array at a specified URI registered to the given namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void registerArrayTest() throws ApiException { - String namespace = null; - String array = null; - ArrayInfoUpdate arrayMetadata = null; - ArrayInfo response = api.registerArray(namespace, array, arrayMetadata); - // TODO: test validations - } - - /** - * Share an array with a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void shareArrayTest() throws ApiException { - String namespace = null; - String array = null; - ArraySharing arraySharing = null; - api.shareArray(namespace, array, arraySharing); - // TODO: test validations - } - - /** - * update metadata on an array - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateArrayMetadataTest() throws ApiException { - String namespace = null; - String array = null; - ArrayInfoUpdate arrayMetadata = null; - api.updateArrayMetadata(namespace, array, arrayMetadata); - // TODO: test validations - } - - /** - * update metadata on an array - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateArrayMetadataCapnpTest() throws ApiException { - String namespace = null; - String array = null; - ArrayMetadata arrayMetadataEntries = null; - api.updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries); - // TODO: test validations - } - - /** - * vacuum an array at a specified URI - * - * @throws ApiException if the Api call fails - */ - @Test - public void vacuumArrayTest() throws ApiException { - String namespace = null; - String array = null; - ArrayVacuumRequest vaccumRequest = null; - api.vacuumArray(namespace, array, vaccumRequest); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java deleted file mode 100644 index 9312613..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; -import io.tiledb.cloud.rest_api.model.Error; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for ArrayTasksApi - */ -@Disabled -public class ArrayTasksApiTest { - - private final ArrayTasksApi api = new ArrayTasksApi(); - - /** - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayTasksSidebarTest() throws ApiException { - Integer start = null; - Integer end = null; - ArrayTaskBrowserSidebar response = api.getArrayTasksSidebar(start, end); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java deleted file mode 100644 index 51aa6f1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.AssetListResponse; -import io.tiledb.cloud.rest_api.model.Error; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for AssetsApi - */ -@Disabled -public class AssetsApiTest { - - private final AssetsApi api = new AssetsApi(); - - /** - * List assets in a namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void listAssetsTest() throws ApiException { - String namespace = null; - String assetType = null; - String ownershipLevel = null; - String depth = null; - String search = null; - Integer page = null; - Integer perPage = null; - String orderBy = null; - String expand = null; - AssetListResponse response = api.listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); - // TODO: test validations - } - - /** - * List public assets - * - * @throws ApiException if the Api call fails - */ - @Test - public void listPublicAssetsTest() throws ApiException { - String assetType = null; - String depth = null; - String search = null; - Integer page = null; - Integer perPage = null; - String orderBy = null; - AssetListResponse response = api.listPublicAssets(assetType, depth, search, page, perPage, orderBy); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java deleted file mode 100644 index 495eefa..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayFavorite; -import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.MLModelFavorite; -import io.tiledb.cloud.rest_api.model.MLModelFavoritesData; -import io.tiledb.cloud.rest_api.model.NotebookFavorite; -import io.tiledb.cloud.rest_api.model.NotebookFavoritesData; -import io.tiledb.cloud.rest_api.model.UDFFavorite; -import io.tiledb.cloud.rest_api.model.UDFFavoritesData; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for FavoritesApi - */ -@Disabled -public class FavoritesApiTest { - - private final FavoritesApi api = new FavoritesApi(); - - /** - * Add a new array favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void addArrayFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.addArrayFavorite(namespace, name); - // TODO: test validations - } - - /** - * Add a new ML model favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void addMLModelFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.addMLModelFavorite(namespace, name); - // TODO: test validations - } - - /** - * Add a new notebook favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void addNotebookFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.addNotebookFavorite(namespace, name); - // TODO: test validations - } - - /** - * Add a new UDF favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUDFFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.addUDFFavorite(namespace, name); - // TODO: test validations - } - - /** - * Delete specific array favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteArrayFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteArrayFavorite(namespace, name); - // TODO: test validations - } - - /** - * Delete specific ML model favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteMLModelFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteMLModelFavorite(namespace, name); - // TODO: test validations - } - - /** - * Delete specific notebook favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteNotebookFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteNotebookFavorite(namespace, name); - // TODO: test validations - } - - /** - * Delete specific UDF favorite - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUDFFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteUDFFavorite(namespace, name); - // TODO: test validations - } - - /** - * Fetch array favorite of a specific array - * - * @throws ApiException if the Api call fails - */ - @Test - public void getArrayFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - ArrayFavorite response = api.getArrayFavorite(namespace, name); - // TODO: test validations - } - - /** - * Fetch ML model favorite of a specific ML model - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMLModelFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - MLModelFavorite response = api.getMLModelFavorite(namespace, name); - // TODO: test validations - } - - /** - * Fetch notebook favorite of a specific notebook - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNotebookFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - NotebookFavorite response = api.getNotebookFavorite(namespace, name); - // TODO: test validations - } - - /** - * Fetch UDF favorite of a specific UDF - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUDFFavoriteTest() throws ApiException { - String namespace = null; - String name = null; - UDFFavorite response = api.getUDFFavorite(namespace, name); - // TODO: test validations - } - - /** - * Fetch a page of array favorites of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listArrayFavoritesTest() throws ApiException { - Integer page = null; - Integer perPage = null; - ArrayFavoritesData response = api.listArrayFavorites(page, perPage); - // TODO: test validations - } - - /** - * Fetch all favorite array uuids of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listArrayFavoritesUUIDsTest() throws ApiException { - List response = api.listArrayFavoritesUUIDs(); - // TODO: test validations - } - - /** - * Fetch a page of ML models favorites of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listMLModelFavoritesTest() throws ApiException { - Integer page = null; - Integer perPage = null; - MLModelFavoritesData response = api.listMLModelFavorites(page, perPage); - // TODO: test validations - } - - /** - * Fetch all favorite ML models uuids of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listMLModelFavoritesUUIDsTest() throws ApiException { - List response = api.listMLModelFavoritesUUIDs(); - // TODO: test validations - } - - /** - * Fetch a page of notebook favorites of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listNotebookFavoritesTest() throws ApiException { - Boolean isDashboard = null; - Integer page = null; - Integer perPage = null; - NotebookFavoritesData response = api.listNotebookFavorites(isDashboard, page, perPage); - // TODO: test validations - } - - /** - * Fetch all favorite notebook uuids of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listNotebookFavoritesUUIDsTest() throws ApiException { - List response = api.listNotebookFavoritesUUIDs(); - // TODO: test validations - } - - /** - * Fetch a page of UDF favorites of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listUDFFavoritesTest() throws ApiException { - Integer page = null; - Integer perPage = null; - UDFFavoritesData response = api.listUDFFavorites(page, perPage); - // TODO: test validations - } - - /** - * Fetch all favorite UDF uuids of connected user - * - * @throws ApiException if the Api call fails - */ - @Test - public void listUDFFavoritesUUIDsTest() throws ApiException { - List response = api.listUDFFavoritesUUIDs(); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java deleted file mode 100644 index 8978371..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import java.io.File; -import io.tiledb.cloud.rest_api.model.FileCreate; -import io.tiledb.cloud.rest_api.model.FileCreated; -import io.tiledb.cloud.rest_api.model.FileExport; -import io.tiledb.cloud.rest_api.model.FileExported; -import io.tiledb.cloud.rest_api.model.FileUploaded; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for FilesApi - */ -@Disabled -public class FilesApiTest { - - private final FilesApi api = new FilesApi(); - - /** - * Create a tiledb file at the specified location - * - * @throws ApiException if the Api call fails - */ - @Test - public void handleCreateFileTest() throws ApiException { - String namespace = null; - FileCreate fileCreate = null; - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - FileCreated response = api.handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - // TODO: test validations - } - - /** - * Export a TileDB File back to its original file format - * - * @throws ApiException if the Api call fails - */ - @Test - public void handleExportFileTest() throws ApiException { - String namespace = null; - String _file = null; - FileExport fileExport = null; - FileExported response = api.handleExportFile(namespace, _file, fileExport); - // TODO: test validations - } - - /** - * Upload a tiledb file at the specified location - * - * @throws ApiException if the Api call fails - */ - @Test - public void handleUploadFileTest() throws ApiException { - String namespace = null; - File inputFile = null; - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - String outputUri = null; - String name = null; - FileUploaded response = api.handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java deleted file mode 100644 index 87baa46..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.GroupBrowserData; -import io.tiledb.cloud.rest_api.model.GroupBrowserFilterData; -import io.tiledb.cloud.rest_api.model.GroupChanges; -import io.tiledb.cloud.rest_api.model.GroupContentActivityResponse; -import io.tiledb.cloud.rest_api.model.GroupContents; -import io.tiledb.cloud.rest_api.model.GroupContentsFilterData; -import io.tiledb.cloud.rest_api.model.GroupCreate; -import io.tiledb.cloud.rest_api.model.GroupInfo; -import io.tiledb.cloud.rest_api.model.GroupRegister; -import io.tiledb.cloud.rest_api.model.GroupSharing; -import io.tiledb.cloud.rest_api.model.GroupSharingRequest; -import io.tiledb.cloud.rest_api.model.GroupUpdate; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for GroupsApi - */ -@Disabled -public class GroupsApiTest { - - private final GroupsApi api = new GroupsApi(); - - /** - * Changes the contents of the group by adding/removing members. - * - * @throws ApiException if the Api call fails - */ - @Test - public void changeGroupContentsTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - GroupChanges groupChanges = null; - api.changeGroupContents(groupNamespace, groupName, groupChanges); - // TODO: test validations - } - - /** - * Creates a new group in the namespace. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createGroupTest() throws ApiException { - String namespace = null; - GroupCreate groupCreate = null; - api.createGroup(namespace, groupCreate); - // TODO: test validations - } - - /** - * Deletes the group. The assets are not deleted nor are not relocated to any other group - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteGroupTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - api.deleteGroup(groupNamespace, groupName); - // TODO: test validations - } - - /** - * Returns the the group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - GroupInfo response = api.getGroup(groupNamespace, groupName); - // TODO: test validations - } - - /** - * Returns the activity of group content - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupActivityTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - Integer page = null; - Integer perPage = null; - GroupContentActivityResponse response = api.getGroupActivity(groupNamespace, groupName, page, perPage); - // TODO: test validations - } - - /** - * Returns the contents of the group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupContentsTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - Integer page = null; - Integer perPage = null; - String namespace = null; - String search = null; - String orderby = null; - List tag = null; - List excludeTag = null; - List memberType = null; - List excludeMemberType = null; - GroupContents response = api.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); - // TODO: test validations - } - - /** - * Get all sharing details of the group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupSharingPoliciesTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - List response = api.getGroupSharingPolicies(groupNamespace, groupName); - // TODO: test validations - } - - /** - * Fetch data to initialize filters for the groups browser - * - * @throws ApiException if the Api call fails - */ - @Test - public void groupsBrowserOwnedFiltersGetTest() throws ApiException { - String namespace = null; - GroupBrowserFilterData response = api.groupsBrowserOwnedFiltersGet(namespace); - // TODO: test validations - } - - /** - * Fetch data to initialize filters for the groups browser - * - * @throws ApiException if the Api call fails - */ - @Test - public void groupsBrowserPublicFiltersGetTest() throws ApiException { - GroupBrowserFilterData response = api.groupsBrowserPublicFiltersGet(); - // TODO: test validations - } - - /** - * Fetch data to initialize filters for the groups browser - * - * @throws ApiException if the Api call fails - */ - @Test - public void groupsBrowserSharedFiltersGetTest() throws ApiException { - String namespace = null; - GroupBrowserFilterData response = api.groupsBrowserSharedFiltersGet(namespace); - // TODO: test validations - } - - /** - * Fetch data to initialize filters for the group contents - * - * @throws ApiException if the Api call fails - */ - @Test - public void groupsGroupNamespaceGroupNameContentsFiltersGetTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - GroupContentsFilterData response = api.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); - // TODO: test validations - } - - /** - * Returns one page of owned groups. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listOwnedGroupsTest() throws ApiException { - Integer page = null; - Integer perPage = null; - String groupType = null; - String search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - Boolean flat = null; - String parent = null; - Boolean withMetadata = null; - GroupBrowserData response = api.listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); - // TODO: test validations - } - - /** - * Returns one page of public groups. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listPublicGroupsTest() throws ApiException { - Integer page = null; - Integer perPage = null; - String groupType = null; - String search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - Boolean flat = null; - String parent = null; - Boolean withMetadata = null; - GroupBrowserData response = api.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); - // TODO: test validations - } - - /** - * Returns one page of shared groups. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listSharedGroupsTest() throws ApiException { - Integer page = null; - Integer perPage = null; - String groupType = null; - String search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - Boolean flat = null; - String parent = null; - List sharedTo = null; - Boolean withMetadata = null; - GroupBrowserData response = api.listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata); - // TODO: test validations - } - - /** - * Registers an existing group in the namespace. - * - * @throws ApiException if the Api call fails - */ - @Test - public void registerGroupTest() throws ApiException { - String namespace = null; - String array = null; - GroupRegister groupRegister = null; - api.registerGroup(namespace, array, groupRegister); - // TODO: test validations - } - - /** - * Share a group with a namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void shareGroupTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - GroupSharingRequest groupSharingRequest = null; - api.shareGroup(groupNamespace, groupName, groupSharingRequest); - // TODO: test validations - } - - /** - * Changes attributes of the group - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateGroupTest() throws ApiException { - String groupNamespace = null; - String groupName = null; - GroupUpdate groupUpdate = null; - api.updateGroup(groupNamespace, groupName, groupUpdate); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java deleted file mode 100644 index a8d4ff7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.InvitationArrayShareEmail; -import io.tiledb.cloud.rest_api.model.InvitationData; -import io.tiledb.cloud.rest_api.model.InvitationFailedRecipients; -import io.tiledb.cloud.rest_api.model.InvitationGroupShareEmail; -import io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail; -import io.tiledb.cloud.rest_api.model.SharePaymentRequest; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for InvitationApi - */ -@Disabled -public class InvitationApiTest { - - private final InvitationApi api = new InvitationApi(); - - /** - * Accepts invitation - * - * @throws ApiException if the Api call fails - */ - @Test - public void acceptInvitationTest() throws ApiException { - String invitation = null; - api.acceptInvitation(invitation); - // TODO: test validations - } - - /** - * Cancels join organization invitation - * - * @throws ApiException if the Api call fails - */ - @Test - public void cancelJoinOrganizationTest() throws ApiException { - String invitation = null; - String organization = null; - api.cancelJoinOrganization(invitation, organization); - // TODO: test validations - } - - /** - * Cancels array sharing invitation - * - * @throws ApiException if the Api call fails - */ - @Test - public void cancelShareArrayByInviteTest() throws ApiException { - String namespace = null; - String invitation = null; - String array = null; - api.cancelShareArrayByInvite(namespace, invitation, array); - // TODO: test validations - } - - /** - * Cancels group sharing invitation - * - * @throws ApiException if the Api call fails - */ - @Test - public void cancelShareGroupByInviteTest() throws ApiException { - String namespace = null; - String invitation = null; - String groupName = null; - api.cancelShareGroupByInvite(namespace, invitation, groupName); - // TODO: test validations - } - - /** - * Revokes invitation from the source namespace to the target. - * - * @throws ApiException if the Api call fails - */ - @Test - public void cancelSharePaymentTest() throws ApiException { - String namespace = null; - String target = null; - api.cancelSharePayment(namespace, target); - // TODO: test validations - } - - /** - * Fetch a list of invitations - * - * @throws ApiException if the Api call fails - */ - @Test - public void fetchInvitationsTest() throws ApiException { - String organization = null; - String array = null; - String group = null; - Integer start = null; - Integer end = null; - Integer page = null; - Integer perPage = null; - String type = null; - String status = null; - String orderby = null; - InvitationData response = api.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); - // TODO: test validations - } - - /** - * Sends email to multiple recipients with joining information regarding an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void joinOrganizationTest() throws ApiException { - String organization = null; - InvitationOrganizationJoinEmail emailInvite = null; - api.joinOrganization(organization, emailInvite); - // TODO: test validations - } - - /** - * Sends email to multiple recipients with sharing information regarding an array - * - * @throws ApiException if the Api call fails - */ - @Test - public void shareArrayByInviteTest() throws ApiException { - String namespace = null; - String array = null; - InvitationArrayShareEmail emailInvite = null; - api.shareArrayByInvite(namespace, array, emailInvite); - // TODO: test validations - } - - /** - * Sends email to multiple recipients with sharing information regarding a group - * - * @throws ApiException if the Api call fails - */ - @Test - public void shareGroupByInviteTest() throws ApiException { - String namespace = null; - String group = null; - InvitationGroupShareEmail emailInvite = null; - api.shareGroupByInvite(namespace, group, emailInvite); - // TODO: test validations - } - - /** - * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * - * @throws ApiException if the Api call fails - */ - @Test - public void sharePaymentTest() throws ApiException { - String namespace = null; - SharePaymentRequest emailInvite = null; - api.sharePayment(namespace, emailInvite); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java deleted file mode 100644 index 46da52d..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; -import io.tiledb.cloud.rest_api.model.Error; -import java.io.File; -import io.tiledb.cloud.rest_api.model.FileUploaded; -import io.tiledb.cloud.rest_api.model.NotebookCopied; -import io.tiledb.cloud.rest_api.model.NotebookCopy; -import io.tiledb.cloud.rest_api.model.NotebookStatus; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for NotebookApi - */ -@Disabled -public class NotebookApiTest { - - private final NotebookApi api = new NotebookApi(); - - /** - * Get status of the notebook server - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNotebookServerStatusTest() throws ApiException { - String namespace = null; - NotebookStatus response = api.getNotebookServerStatus(namespace); - // TODO: test validations - } - - /** - * Copy a tiledb notebook at the specified location - * - * @throws ApiException if the Api call fails - */ - @Test - public void handleCopyNotebookTest() throws ApiException { - String namespace = null; - String array = null; - NotebookCopy notebookCopy = null; - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - Integer endTimestamp = null; - NotebookCopied response = api.handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - // TODO: test validations - } - - /** - * Upload a notebook at the specified location - * - * @throws ApiException if the Api call fails - */ - @Test - public void handleUploadNotebookTest() throws ApiException { - String namespace = null; - File inputFile = null; - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - String outputUri = null; - String name = null; - FileUploaded response = api.handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - // TODO: test validations - } - - /** - * Shutdown a notebook server - * - * @throws ApiException if the Api call fails - */ - @Test - public void shutdownNotebookServerTest() throws ApiException { - String namespace = null; - api.shutdownNotebookServer(namespace); - // TODO: test validations - } - - /** - * update name on a notebok, moving related S3 object to new location - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateNotebookNameTest() throws ApiException { - String namespace = null; - String array = null; - ArrayInfoUpdate notebookMetadata = null; - api.updateNotebookName(namespace, array, notebookMetadata); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java deleted file mode 100644 index f5d9032..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.Error; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for NotebooksApi - */ -@Disabled -public class NotebooksApiTest { - - private final NotebooksApi api = new NotebooksApi(); - - /** - * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * - * @throws ApiException if the Api call fails - */ - @Test - public void notebooksNamespaceArrayEndTimestampsGetTest() throws ApiException { - String namespace = null; - String array = null; - Integer page = null; - Integer perPage = null; - ArrayEndTimestampData response = api.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - // TODO: test validations - } - - /** - * prune fragments of the notebook - * - * @throws ApiException if the Api call fails - */ - @Test - public void notebooksNamespaceArrayPrunePostTest() throws ApiException { - String namespace = null; - String array = null; - Integer keepVersions = null; - api.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java deleted file mode 100644 index e420edb..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java +++ /dev/null @@ -1,297 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; -import io.tiledb.cloud.rest_api.model.DomainCheckResult; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.Organization; -import io.tiledb.cloud.rest_api.model.OrganizationUpdate; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -import io.tiledb.cloud.rest_api.model.SSODomainConfig; -import io.tiledb.cloud.rest_api.model.SSODomainConfigResponse; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for OrganizationApi - */ -@Disabled -public class OrganizationApiTest { - - private final OrganizationApi api = new OrganizationApi(); - - /** - * Add aws keys - * - * @throws ApiException if the Api call fails - */ - @Test - public void addAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - AWSAccessCredentials awsAccessCredentials = null; - api.addAWSAccessCredentials(namespace, awsAccessCredentials); - // TODO: test validations - } - - /** - * add a user to an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUserToOrganizationTest() throws ApiException { - String organization = null; - OrganizationUser user = null; - api.addUserToOrganization(organization, user); - // TODO: test validations - } - - /** - * Check if aws keys are set - * - * @throws ApiException if the Api call fails - */ - @Test - public void checkAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - List response = api.checkAWSAccessCredentials(namespace); - // TODO: test validations - } - - /** - * Check if aws keys are set by name - * - * @throws ApiException if the Api call fails - */ - @Test - public void checkAWSAccessCredentialsByNameTest() throws ApiException { - String namespace = null; - String name = null; - AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(namespace, name); - // TODO: test validations - } - - /** - * Immediately verify ownership of the specified SSO domain ownership claim. - * - * @throws ApiException if the Api call fails - */ - @Test - public void checkSSODomainTest() throws ApiException { - String organization = null; - String uuid = null; - DomainCheckResult response = api.checkSSODomain(organization, uuid); - // TODO: test validations - } - - /** - * create a organization, the user creating will be listed as owner - * - * @throws ApiException if the Api call fails - */ - @Test - public void createOrganizationTest() throws ApiException { - Organization organization = null; - api.createOrganization(organization); - // TODO: test validations - } - - /** - * Create a new SSO connection that connects this organization to this domain. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createSSODomainTest() throws ApiException { - String organization = null; - SSODomainConfig config = null; - SSODomainConfig response = api.createSSODomain(organization, config); - // TODO: test validations - } - - /** - * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteAWSAccessCredentials(namespace, name); - // TODO: test validations - } - - /** - * delete a organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOrganizationTest() throws ApiException { - String organization = null; - api.deleteOrganization(organization); - // TODO: test validations - } - - /** - * Deletes the configuration for the given SSO connection. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteSSODomainTest() throws ApiException { - String organization = null; - String uuid = null; - api.deleteSSODomain(organization, uuid); - // TODO: test validations - } - - /** - * delete a user from an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUserFromOrganizationTest() throws ApiException { - String organization = null; - String username = null; - api.deleteUserFromOrganization(organization, username); - // TODO: test validations - } - - /** - * get all organizations that the user is member of - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAllOrganizationsTest() throws ApiException { - List response = api.getAllOrganizations(); - // TODO: test validations - } - - /** - * get a organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOrganizationTest() throws ApiException { - String organization = null; - Organization response = api.getOrganization(organization); - // TODO: test validations - } - - /** - * get a user from an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOrganizationUserTest() throws ApiException { - String organization = null; - String username = null; - OrganizationUser response = api.getOrganizationUser(organization, username); - // TODO: test validations - } - - /** - * Gets details about the given SSO domain connection. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSSODomainTest() throws ApiException { - String organization = null; - String uuid = null; - SSODomainConfig response = api.getSSODomain(organization, uuid); - // TODO: test validations - } - - /** - * Lists all the SSO connections associated with the given organization. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSSODomainsTest() throws ApiException { - String organization = null; - SSODomainConfigResponse response = api.getSSODomains(organization); - // TODO: test validations - } - - /** - * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - String name = null; - AWSAccessCredentials awsAccessCredentials = null; - api.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); - // TODO: test validations - } - - /** - * update a organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateOrganizationTest() throws ApiException { - String organization = null; - OrganizationUpdate organizationDetails = null; - api.updateOrganization(organization, organizationDetails); - // TODO: test validations - } - - /** - * Updates the configuration for the given SSO connection. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateSSODomainTest() throws ApiException { - String organization = null; - String uuid = null; - SSODomainConfig config = null; - SSODomainConfig response = api.updateSSODomain(organization, uuid, config); - // TODO: test validations - } - - /** - * update a user in an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateUserInOrganizationTest() throws ApiException { - String organization = null; - String username = null; - OrganizationUser user = null; - api.updateUserInOrganization(organization, username, user); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java deleted file mode 100644 index 70d5f4f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import java.io.File; -import io.tiledb.cloud.rest_api.model.Query; -import io.tiledb.cloud.rest_api.model.QueryJson; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for QueryApi - */ -@Disabled -public class QueryApiTest { - - private final QueryApi api = new QueryApi(); - - /** - * send a query to run against a specified array/URI registered to a group/project - * - * @throws ApiException if the Api call fails - */ - @Test - public void finalizeQueryTest() throws ApiException { - String namespace = null; - String array = null; - String type = null; - String contentType = null; - Query query = null; - String xPayer = null; - Integer openAt = null; - Query response = api.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); - // TODO: test validations - } - - /** - * send a query to run against a specified array/URI registered to a group/project - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEstResultSizesTest() throws ApiException { - String namespace = null; - String array = null; - String type = null; - String contentType = null; - Query query = null; - String xPayer = null; - Integer openAt = null; - Query response = api.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); - // TODO: test validations - } - - /** - * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * - * @throws ApiException if the Api call fails - */ - @Test - public void getFileTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - String xPayer = null; - File response = api.getFile(namespace, array, contentType, xPayer); - // TODO: test validations - } - - /** - * send a query to run against a specified array/URI registered to a group/project - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitQueryTest() throws ApiException { - String namespace = null; - String array = null; - String type = null; - String contentType = null; - Query query = null; - String xPayer = null; - Integer openAt = null; - Query response = api.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); - // TODO: test validations - } - - /** - * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitQueryJsonTest() throws ApiException { - String namespace = null; - String array = null; - String contentType = null; - QueryJson queryJson = null; - String xPayer = null; - Object response = api.submitQueryJson(namespace, array, contentType, queryJson, xPayer); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java deleted file mode 100644 index 92537dd..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; -import io.tiledb.cloud.rest_api.model.TaskGraphSharing; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for RegisteredTaskGraphsApi - */ -@Disabled -public class RegisteredTaskGraphsApiTest { - - private final RegisteredTaskGraphsApi api = new RegisteredTaskGraphsApi(); - - /** - * Delete the given registered task graph. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRegisteredTaskGraphTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteRegisteredTaskGraph(namespace, name); - // TODO: test validations - } - - /** - * Fetch the contents of this registered task graph. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRegisteredTaskGraphTest() throws ApiException { - String namespace = null; - String name = null; - RegisteredTaskGraph response = api.getRegisteredTaskGraph(namespace, name); - // TODO: test validations - } - - /** - * Get sharing policies for the task graph. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRegisteredTaskGraphSharingPoliciesTest() throws ApiException { - String namespace = null; - String name = null; - List response = api.getRegisteredTaskGraphSharingPolicies(namespace, name); - // TODO: test validations - } - - /** - * Register a task graph in the given namespace, with the given name. - * - * @throws ApiException if the Api call fails - */ - @Test - public void registerRegisteredTaskGraphTest() throws ApiException { - String namespace = null; - String name = null; - RegisteredTaskGraph graph = null; - api.registerRegisteredTaskGraph(namespace, name, graph); - // TODO: test validations - } - - /** - * Share a task graph. - * - * @throws ApiException if the Api call fails - */ - @Test - public void shareRegisteredTaskGraphTest() throws ApiException { - String namespace = null; - String name = null; - TaskGraphSharing taskGraphSharing = null; - api.shareRegisteredTaskGraph(namespace, name, taskGraphSharing); - // TODO: test validations - } - - /** - * Update the contents of an existing registered task graph. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateRegisteredTaskGraphTest() throws ApiException { - String namespace = null; - String name = null; - RegisteredTaskGraph graph = null; - api.updateRegisteredTaskGraph(namespace, name, graph); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java deleted file mode 100644 index 4c91f3b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for SqlApi - */ -@Disabled -public class SqlApiTest { - - private final SqlApi api = new SqlApi(); - - /** - * Run a sql query - * - * @throws ApiException if the Api call fails - */ - @Test - public void runSQLTest() throws ApiException { - String namespace = null; - SQLParameters sql = null; - String acceptEncoding = null; - List> response = api.runSQL(namespace, sql, acceptEncoding); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java deleted file mode 100644 index 4ddebd1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for StatsApi - */ -@Disabled -public class StatsApiTest { - - private final StatsApi api = new StatsApi(); - - /** - * Fetch libtiledb stat - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTiledbStatsTest() throws ApiException { - GetTiledbStats200Response response = api.getTiledbStats(); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java deleted file mode 100644 index 5e928e0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import java.time.OffsetDateTime; -import io.tiledb.cloud.rest_api.model.TaskGraphClientNodeStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; -import io.tiledb.cloud.rest_api.model.TaskGraphLogsData; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for TaskGraphLogsApi - */ -@Disabled -public class TaskGraphLogsApiTest { - - private final TaskGraphLogsApi api = new TaskGraphLogsApi(); - - /** - * Create a task graph log. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createTaskGraphLogTest() throws ApiException { - String namespace = null; - TaskGraphLog log = null; - TaskGraphLog response = api.createTaskGraphLog(namespace, log); - // TODO: test validations - } - - /** - * Fetch information about a single task graph execution. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTaskGraphLogTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphLog response = api.getTaskGraphLog(namespace, id); - // TODO: test validations - } - - /** - * Fetch the task graph logs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listTaskGraphLogsTest() throws ApiException { - String namespace = null; - String createdBy = null; - String status = null; - String search = null; - OffsetDateTime startTime = null; - OffsetDateTime endTime = null; - Integer page = null; - Integer perPage = null; - TaskGraphLogsData response = api.listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage); - // TODO: test validations - } - - /** - * @throws ApiException if the Api call fails - */ - @Test - public void reportClientNodeTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphClientNodeStatus report = null; - api.reportClientNode(namespace, id, report); - // TODO: test validations - } - - /** - * Resubmits a task graph in the given namespace using the associated execution id. - * - * @throws ApiException if the Api call fails - */ - @Test - public void resubmitTaskGraphExecutionTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphLog response = api.resubmitTaskGraphExecution(namespace, id); - // TODO: test validations - } - - /** - * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * - * @throws ApiException if the Api call fails - */ - @Test - public void retryTaskGraphExecutionTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphLog response = api.retryTaskGraphExecution(namespace, id); - // TODO: test validations - } - - /** - * Stops a task graph execution in the given namespace using the associated associated execution id. - * - * @throws ApiException if the Api call fails - */ - @Test - public void stopTaskGraphExecutionTest() throws ApiException { - String namespace = null; - String id = null; - api.stopTaskGraphExecution(namespace, id); - // TODO: test validations - } - - /** - * Submit a single task graph for execution. - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitTaskGraphTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphLog response = api.submitTaskGraph(namespace, id); - // TODO: test validations - } - - /** - * Update information about a single task graph execution. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTaskGraphLogTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphLog log = null; - api.updateTaskGraphLog(namespace, id, log); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java deleted file mode 100644 index bc63a7b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.TaskGraph; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; -import io.tiledb.cloud.rest_api.model.TaskGraphs; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for TaskGraphsApi - */ -@Disabled -public class TaskGraphsApiTest { - - private final TaskGraphsApi api = new TaskGraphsApi(); - - /** - * Create a single task graph for execution. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createTaskGraphTest() throws ApiException { - String namespace = null; - TaskGraph graph = null; - TaskGraph response = api.createTaskGraph(namespace, graph); - // TODO: test validations - } - - /** - * Fetch information about a single task graph. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTaskGraphTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraph response = api.getTaskGraph(namespace, id); - // TODO: test validations - } - - /** - * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listTaskGraphsTest() throws ApiException { - String namespace = null; - TaskGraphs response = api.listTaskGraphs(namespace); - // TODO: test validations - } - - /** - * Submit a single task graph for execution. - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitTaskGraphTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraphLog response = api.submitTaskGraph(namespace, id); - // TODO: test validations - } - - /** - * Update information about a single task graph execution. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTaskGraphTest() throws ApiException { - String namespace = null; - String id = null; - TaskGraph graph = null; - api.updateTaskGraph(namespace, id, graph); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java deleted file mode 100644 index a50188e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.ArrayTaskData; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for TasksApi - */ -@Disabled -public class TasksApiTest { - - private final TasksApi api = new TasksApi(); - - /** - * Run a sql query - * - * @throws ApiException if the Api call fails - */ - @Test - public void runSQLTest() throws ApiException { - String namespace = null; - SQLParameters sql = null; - String acceptEncoding = null; - List> response = api.runSQL(namespace, sql, acceptEncoding); - // TODO: test validations - } - - /** - * Fetch an array task - * - * @throws ApiException if the Api call fails - */ - @Test - public void taskIdGetTest() throws ApiException { - String id = null; - ArrayTask response = api.taskIdGet(id); - // TODO: test validations - } - - /** - * Retrieve results of an array task - * - * @throws ApiException if the Api call fails - */ - @Test - public void taskIdResultGetTest() throws ApiException { - String id = null; - String acceptEncoding = null; - String response = api.taskIdResultGet(id, acceptEncoding); - // TODO: test validations - } - - /** - * Fetch a list of all array tasks a user has access to - * - * @throws ApiException if the Api call fails - */ - @Test - public void tasksGetTest() throws ApiException { - String namespace = null; - String createdBy = null; - String array = null; - Integer start = null; - Integer end = null; - Integer page = null; - Integer perPage = null; - String type = null; - List excludeType = null; - List fileType = null; - List excludeFileType = null; - String status = null; - String search = null; - String orderby = null; - ArrayTaskData response = api.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java deleted file mode 100644 index 6fbd5f5..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.Error; -import java.io.File; -import io.tiledb.cloud.rest_api.model.GenericUDF; -import io.tiledb.cloud.rest_api.model.MultiArrayUDF; -import io.tiledb.cloud.rest_api.model.UDFCopied; -import io.tiledb.cloud.rest_api.model.UDFCopy; -import io.tiledb.cloud.rest_api.model.UDFInfo; -import io.tiledb.cloud.rest_api.model.UDFInfoUpdate; -import io.tiledb.cloud.rest_api.model.UDFSharing; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for UdfApi - */ -@Disabled -public class UdfApiTest { - - private final UdfApi api = new UdfApi(); - - /** - * delete a registered UDF -- this will remove all sharing and can not be undone - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUDFInfoTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteUDFInfo(namespace, name); - // TODO: test validations - } - - /** - * get a specific UDF in the given namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUDFInfoTest() throws ApiException { - String namespace = null; - String name = null; - UDFInfo response = api.getUDFInfo(namespace, name); - // TODO: test validations - } - - /** - * Get all sharing details of the UDF - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUDFInfoSharingPoliciesTest() throws ApiException { - String namespace = null; - String name = null; - List response = api.getUDFInfoSharingPolicies(namespace, name); - // TODO: test validations - } - - /** - * Copy a tiledb udf at the specified location - * - * @throws ApiException if the Api call fails - */ - @Test - public void handleCopyUDFTest() throws ApiException { - String namespace = null; - String name = null; - UDFCopy udFCopy = null; - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - Integer endTimestamp = null; - UDFCopied response = api.handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - // TODO: test validations - } - - /** - * register a UDF in the given namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void registerUDFInfoTest() throws ApiException { - String namespace = null; - String name = null; - UDFInfoUpdate udf = null; - api.registerUDFInfo(namespace, name, udf); - // TODO: test validations - } - - /** - * Share a UDF with a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void shareUDFInfoTest() throws ApiException { - String namespace = null; - String name = null; - UDFSharing udfSharing = null; - api.shareUDFInfo(namespace, name, udfSharing); - // TODO: test validations - } - - /** - * submit a generic UDF in the given namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitGenericUDFTest() throws ApiException { - String namespace = null; - GenericUDF udf = null; - String acceptEncoding = null; - File response = api.submitGenericUDF(namespace, udf, acceptEncoding); - // TODO: test validations - } - - /** - * submit a multi-array UDF in the given namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitMultiArrayUDFTest() throws ApiException { - String namespace = null; - MultiArrayUDF udf = null; - String acceptEncoding = null; - File response = api.submitMultiArrayUDF(namespace, udf, acceptEncoding); - // TODO: test validations - } - - /** - * send a UDF to run against a specified array/URI registered to a group/project - * - * @throws ApiException if the Api call fails - */ - @Test - public void submitUDFTest() throws ApiException { - String namespace = null; - String array = null; - MultiArrayUDF udf = null; - String xPayer = null; - String acceptEncoding = null; - String v2 = null; - File response = api.submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2); - // TODO: test validations - } - - /** - * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * - * @throws ApiException if the Api call fails - */ - @Test - public void udfNamespaceArrayEndTimestampsGetTest() throws ApiException { - String namespace = null; - String array = null; - Integer page = null; - Integer perPage = null; - ArrayEndTimestampData response = api.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - // TODO: test validations - } - - /** - * update an existing registered UDF in the given namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateUDFInfoTest() throws ApiException { - String namespace = null; - String name = null; - UDFInfoUpdate udf = null; - api.updateUDFInfo(namespace, name, udf); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java deleted file mode 100644 index b84fd7a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java +++ /dev/null @@ -1,311 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.api; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; -import io.tiledb.cloud.rest_api.model.Error; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; -import io.tiledb.cloud.rest_api.model.Token; -import io.tiledb.cloud.rest_api.model.TokenRequest; -import io.tiledb.cloud.rest_api.model.TokenScope; -import io.tiledb.cloud.rest_api.model.User; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for UserApi - */ -@Disabled -public class UserApiTest { - - private final UserApi api = new UserApi(); - - /** - * Add aws keys - * - * @throws ApiException if the Api call fails - */ - @Test - public void addAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - AWSAccessCredentials awsAccessCredentials = null; - api.addAWSAccessCredentials(namespace, awsAccessCredentials); - // TODO: test validations - } - - /** - * add a user to an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUserToOrganizationTest() throws ApiException { - String organization = null; - OrganizationUser user = null; - api.addUserToOrganization(organization, user); - // TODO: test validations - } - - /** - * Check if aws keys are set - * - * @throws ApiException if the Api call fails - */ - @Test - public void checkAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - List response = api.checkAWSAccessCredentials(namespace); - // TODO: test validations - } - - /** - * Check if aws keys are set by name - * - * @throws ApiException if the Api call fails - */ - @Test - public void checkAWSAccessCredentialsByNameTest() throws ApiException { - String namespace = null; - String name = null; - AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(namespace, name); - // TODO: test validations - } - - /** - * confirm user email - * - * @throws ApiException if the Api call fails - */ - @Test - public void confirmEmailTest() throws ApiException { - api.confirmEmail(); - // TODO: test validations - } - - /** - * create a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void createUserTest() throws ApiException { - User user = null; - api.createUser(user); - // TODO: test validations - } - - /** - * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - String name = null; - api.deleteAWSAccessCredentials(namespace, name); - // TODO: test validations - } - - /** - * delete a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUserTest() throws ApiException { - String username = null; - api.deleteUser(username); - // TODO: test validations - } - - /** - * delete a user from an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUserFromOrganizationTest() throws ApiException { - String organization = null; - String username = null; - api.deleteUserFromOrganization(organization, username); - // TODO: test validations - } - - /** - * get a user from an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOrganizationUserTest() throws ApiException { - String organization = null; - String username = null; - OrganizationUser response = api.getOrganizationUser(organization, username); - // TODO: test validations - } - - /** - * Get session token for user - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSessionTest() throws ApiException { - String rememberMe = null; - Token response = api.getSession(rememberMe); - // TODO: test validations - } - - /** - * retrieves available token scopes for a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTokenScopesTest() throws ApiException { - List response = api.getTokenScopes(); - // TODO: test validations - } - - /** - * get a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserTest() throws ApiException { - User response = api.getUser(); - // TODO: test validations - } - - /** - * get a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserWithUsernameTest() throws ApiException { - String username = null; - User response = api.getUserWithUsername(username); - // TODO: test validations - } - - /** - * Request an authorization token, optionally taken a TokenRequest object to set parameters on the token - * - * @throws ApiException if the Api call fails - */ - @Test - public void requestTokenTest() throws ApiException { - TokenRequest tokenRequest = null; - Token response = api.requestToken(tokenRequest); - // TODO: test validations - } - - /** - * reset user password - * - * @throws ApiException if the Api call fails - */ - @Test - public void resetUserPasswordTest() throws ApiException { - ResetUserPasswordRequest user = null; - api.resetUserPassword(user); - // TODO: test validations - } - - /** - * revoke an authorization token - * - * @throws ApiException if the Api call fails - */ - @Test - public void revokeTokenTest() throws ApiException { - String token = null; - api.revokeToken(token); - // TODO: test validations - } - - /** - * Fetch a list of user tokens - * - * @throws ApiException if the Api call fails - */ - @Test - public void tokensGetTest() throws ApiException { - List response = api.tokensGet(); - // TODO: test validations - } - - /** - * Fetch a list of user session tokens - * - * @throws ApiException if the Api call fails - */ - @Test - public void tokensSessionGetTest() throws ApiException { - List response = api.tokensSessionGet(); - // TODO: test validations - } - - /** - * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - String name = null; - AWSAccessCredentials awsAccessCredentials = null; - api.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); - // TODO: test validations - } - - /** - * update a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateUserTest() throws ApiException { - String username = null; - User user = null; - api.updateUser(username, user); - // TODO: test validations - } - - /** - * update a user in an organization - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateUserInOrganizationTest() throws ApiException { - String organization = null; - String username = null; - OrganizationUser user = null; - api.updateUserInOrganization(organization, username, user); - // TODO: test validations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java deleted file mode 100644 index bb3820c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AWSAccessCredentials - */ -public class AWSAccessCredentialsTest { - private final AWSAccessCredentials model = new AWSAccessCredentials(); - - /** - * Model tests for AWSAccessCredentials - */ - @Test - public void testAWSAccessCredentials() { - // TODO: test AWSAccessCredentials - } - - /** - * Test the property 'secretAccessKey' - */ - @Test - public void secretAccessKeyTest() { - // TODO: test secretAccessKey - } - - /** - * Test the property 'accessKeyId' - */ - @Test - public void accessKeyIdTest() { - // TODO: test accessKeyId - } - - /** - * Test the property 'serviceRoleArn' - */ - @Test - public void serviceRoleArnTest() { - // TODO: test serviceRoleArn - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property '_default' - */ - @Test - public void _defaultTest() { - // TODO: test _default - } - - /** - * Test the property 'buckets' - */ - @Test - public void bucketsTest() { - // TODO: test buckets - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'updatedAt' - */ - @Test - public void updatedAtTest() { - // TODO: test updatedAt - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java deleted file mode 100644 index ad9bacb..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ActivityEventType - */ -public class ActivityEventTypeTest { - /** - * Model tests for ActivityEventType - */ - @Test - public void testActivityEventType() { - // TODO: test ActivityEventType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java deleted file mode 100644 index 6eb1923..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayActions - */ -public class ArrayActionsTest { - /** - * Model tests for ArrayActions - */ - @Test - public void testArrayActions() { - // TODO: test ArrayActions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java deleted file mode 100644 index 379bed2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ActivityEventType; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayActivityLog - */ -public class ArrayActivityLogTest { - private final ArrayActivityLog model = new ArrayActivityLog(); - - /** - * Model tests for ArrayActivityLog - */ - @Test - public void testArrayActivityLog() { - // TODO: test ArrayActivityLog - } - - /** - * Test the property 'eventAt' - */ - @Test - public void eventAtTest() { - // TODO: test eventAt - } - - /** - * Test the property 'action' - */ - @Test - public void actionTest() { - // TODO: test action - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'bytesSent' - */ - @Test - public void bytesSentTest() { - // TODO: test bytesSent - } - - /** - * Test the property 'bytesReceived' - */ - @Test - public void bytesReceivedTest() { - // TODO: test bytesReceived - } - - /** - * Test the property 'arrayTaskId' - */ - @Test - public void arrayTaskIdTest() { - // TODO: test arrayTaskId - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'queryRanges' - */ - @Test - public void queryRangesTest() { - // TODO: test queryRanges - } - - /** - * Test the property 'queryStats' - */ - @Test - public void queryStatsTest() { - // TODO: test queryStats - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java deleted file mode 100644 index 7742551..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayBrowserData - */ -public class ArrayBrowserDataTest { - private final ArrayBrowserData model = new ArrayBrowserData(); - - /** - * Model tests for ArrayBrowserData - */ - @Test - public void testArrayBrowserData() { - // TODO: test ArrayBrowserData - } - - /** - * Test the property 'arrays' - */ - @Test - public void arraysTest() { - // TODO: test arrays - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java deleted file mode 100644 index b8520e1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayBrowserSidebar - */ -public class ArrayBrowserSidebarTest { - private final ArrayBrowserSidebar model = new ArrayBrowserSidebar(); - - /** - * Model tests for ArrayBrowserSidebar - */ - @Test - public void testArrayBrowserSidebar() { - // TODO: test ArrayBrowserSidebar - } - - /** - * Test the property 'namespaces' - */ - @Test - public void namespacesTest() { - // TODO: test namespaces - } - - /** - * Test the property 'resultCountForAll' - */ - @Test - public void resultCountForAllTest() { - // TODO: test resultCountForAll - } - - /** - * Test the property 'resultCountByNamespace' - */ - @Test - public void resultCountByNamespaceTest() { - // TODO: test resultCountByNamespace - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java deleted file mode 100644 index 15b87b2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayConsolidationRequest - */ -public class ArrayConsolidationRequestTest { - private final ArrayConsolidationRequest model = new ArrayConsolidationRequest(); - - /** - * Model tests for ArrayConsolidationRequest - */ - @Test - public void testArrayConsolidationRequest() { - // TODO: test ArrayConsolidationRequest - } - - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } - - /** - * Test the property 'fragments' - */ - @Test - public void fragmentsTest() { - // TODO: test fragments - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java deleted file mode 100644 index ae90d8c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayEndTimestampData - */ -public class ArrayEndTimestampDataTest { - private final ArrayEndTimestampData model = new ArrayEndTimestampData(); - - /** - * Model tests for ArrayEndTimestampData - */ - @Test - public void testArrayEndTimestampData() { - // TODO: test ArrayEndTimestampData - } - - /** - * Test the property 'endTimestamps' - */ - @Test - public void endTimestampsTest() { - // TODO: test endTimestamps - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java deleted file mode 100644 index 8a659b0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayFavorite - */ -public class ArrayFavoriteTest { - private final ArrayFavorite model = new ArrayFavorite(); - - /** - * Model tests for ArrayFavorite - */ - @Test - public void testArrayFavorite() { - // TODO: test ArrayFavorite - } - - /** - * Test the property 'arrayUuid' - */ - @Test - public void arrayUuidTest() { - // TODO: test arrayUuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java deleted file mode 100644 index f4c8469..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayFavoritesData - */ -public class ArrayFavoritesDataTest { - private final ArrayFavoritesData model = new ArrayFavoritesData(); - - /** - * Model tests for ArrayFavoritesData - */ - @Test - public void testArrayFavoritesData() { - // TODO: test ArrayFavoritesData - } - - /** - * Test the property 'arrays' - */ - @Test - public void arraysTest() { - // TODO: test arrays - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java deleted file mode 100644 index b532440..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.ArrayType; -import io.tiledb.cloud.rest_api.model.FileType; -import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; -import io.tiledb.cloud.rest_api.model.Pricing; -import io.tiledb.cloud.rest_api.model.Subscription; -import java.io.IOException; -import java.math.BigDecimal; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayInfo - */ -public class ArrayInfoTest { - private final ArrayInfo model = new ArrayInfo(); - - /** - * Model tests for ArrayInfo - */ - @Test - public void testArrayInfo() { - // TODO: test ArrayInfo - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'fileType' - */ - @Test - public void fileTypeTest() { - // TODO: test fileType - } - - /** - * Test the property 'fileProperties' - */ - @Test - public void filePropertiesTest() { - // TODO: test fileProperties - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'size' - */ - @Test - public void sizeTest() { - // TODO: test size - } - - /** - * Test the property 'lastAccessed' - */ - @Test - public void lastAccessedTest() { - // TODO: test lastAccessed - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'allowedActions' - */ - @Test - public void allowedActionsTest() { - // TODO: test allowedActions - } - - /** - * Test the property 'pricing' - */ - @Test - public void pricingTest() { - // TODO: test pricing - } - - /** - * Test the property 'subscriptions' - */ - @Test - public void subscriptionsTest() { - // TODO: test subscriptions - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'shareCount' - */ - @Test - public void shareCountTest() { - // TODO: test shareCount - } - - /** - * Test the property 'publicShare' - */ - @Test - public void publicShareTest() { - // TODO: test publicShare - } - - /** - * Test the property 'namespaceSubscribed' - */ - @Test - public void namespaceSubscribedTest() { - // TODO: test namespaceSubscribed - } - - /** - * Test the property 'tiledbUri' - */ - @Test - public void tiledbUriTest() { - // TODO: test tiledbUri - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - - /** - * Test the property 'readOnly' - */ - @Test - public void readOnlyTest() { - // TODO: test readOnly - } - - /** - * Test the property 'isFavorite' - */ - @Test - public void isFavoriteTest() { - // TODO: test isFavorite - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java deleted file mode 100644 index 79ee001..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.FileType; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayInfoUpdate - */ -public class ArrayInfoUpdateTest { - private final ArrayInfoUpdate model = new ArrayInfoUpdate(); - - /** - * Model tests for ArrayInfoUpdate - */ - @Test - public void testArrayInfoUpdate() { - // TODO: test ArrayInfoUpdate - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'fileType' - */ - @Test - public void fileTypeTest() { - // TODO: test fileType - } - - /** - * Test the property 'fileProperties' - */ - @Test - public void filePropertiesTest() { - // TODO: test fileProperties - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - - /** - * Test the property 'readOnly' - */ - @Test - public void readOnlyTest() { - // TODO: test readOnly - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java deleted file mode 100644 index e39e7f2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayMetadataEntry - */ -public class ArrayMetadataEntryTest { - private final ArrayMetadataEntry model = new ArrayMetadataEntry(); - - /** - * Model tests for ArrayMetadataEntry - */ - @Test - public void testArrayMetadataEntry() { - // TODO: test ArrayMetadataEntry - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'valueNum' - */ - @Test - public void valueNumTest() { - // TODO: test valueNum - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - - /** - * Test the property 'del' - */ - @Test - public void delTest() { - // TODO: test del - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java deleted file mode 100644 index ac1eed3..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayMetadataEntry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayMetadata - */ -public class ArrayMetadataTest { - private final ArrayMetadata model = new ArrayMetadata(); - - /** - * Model tests for ArrayMetadata - */ - @Test - public void testArrayMetadata() { - // TODO: test ArrayMetadata - } - - /** - * Test the property 'entries' - */ - @Test - public void entriesTest() { - // TODO: test entries - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java deleted file mode 100644 index f43176e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArraySample - */ -public class ArraySampleTest { - private final ArraySample model = new ArraySample(); - - /** - * Model tests for ArraySample - */ - @Test - public void testArraySample() { - // TODO: test ArraySample - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java deleted file mode 100644 index 7a499d1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayType; -import io.tiledb.cloud.rest_api.model.Attribute; -import io.tiledb.cloud.rest_api.model.Domain; -import io.tiledb.cloud.rest_api.model.FilterPipeline; -import io.tiledb.cloud.rest_api.model.Layout; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArraySchema - */ -public class ArraySchemaTest { - private final ArraySchema model = new ArraySchema(); - - /** - * Model tests for ArraySchema - */ - @Test - public void testArraySchema() { - // TODO: test ArraySchema - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'arrayType' - */ - @Test - public void arrayTypeTest() { - // TODO: test arrayType - } - - /** - * Test the property 'tileOrder' - */ - @Test - public void tileOrderTest() { - // TODO: test tileOrder - } - - /** - * Test the property 'cellOrder' - */ - @Test - public void cellOrderTest() { - // TODO: test cellOrder - } - - /** - * Test the property 'capacity' - */ - @Test - public void capacityTest() { - // TODO: test capacity - } - - /** - * Test the property 'coordsFilterPipeline' - */ - @Test - public void coordsFilterPipelineTest() { - // TODO: test coordsFilterPipeline - } - - /** - * Test the property 'offsetFilterPipeline' - */ - @Test - public void offsetFilterPipelineTest() { - // TODO: test offsetFilterPipeline - } - - /** - * Test the property 'domain' - */ - @Test - public void domainTest() { - // TODO: test domain - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'allowsDuplicates' - */ - @Test - public void allowsDuplicatesTest() { - // TODO: test allowsDuplicates - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java deleted file mode 100644 index 60e03ce..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArraySharing - */ -public class ArraySharingTest { - private final ArraySharing model = new ArraySharing(); - - /** - * Model tests for ArraySharing - */ - @Test - public void testArraySharing() { - // TODO: test ArraySharing - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'namespaceType' - */ - @Test - public void namespaceTypeTest() { - // TODO: test namespaceType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java deleted file mode 100644 index 055a93f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTaskBrowserSidebar - */ -public class ArrayTaskBrowserSidebarTest { - private final ArrayTaskBrowserSidebar model = new ArrayTaskBrowserSidebar(); - - /** - * Model tests for ArrayTaskBrowserSidebar - */ - @Test - public void testArrayTaskBrowserSidebar() { - // TODO: test ArrayTaskBrowserSidebar - } - - /** - * Test the property 'organizations' - */ - @Test - public void organizationsTest() { - // TODO: test organizations - } - - /** - * Test the property 'resultCountForAll' - */ - @Test - public void resultCountForAllTest() { - // TODO: test resultCountForAll - } - - /** - * Test the property 'resultCountByNamespace' - */ - @Test - public void resultCountByNamespaceTest() { - // TODO: test resultCountByNamespace - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java deleted file mode 100644 index c9ca90a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTaskData - */ -public class ArrayTaskDataTest { - private final ArrayTaskData model = new ArrayTaskData(); - - /** - * Model tests for ArrayTaskData - */ - @Test - public void testArrayTaskData() { - // TODO: test ArrayTaskData - } - - /** - * Test the property 'arrayTasks' - */ - @Test - public void arrayTasksTest() { - // TODO: test arrayTasks - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java deleted file mode 100644 index 74b3aba..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTaskLog - */ -public class ArrayTaskLogTest { - private final ArrayTaskLog model = new ArrayTaskLog(); - - /** - * Model tests for ArrayTaskLog - */ - @Test - public void testArrayTaskLog() { - // TODO: test ArrayTaskLog - } - - /** - * Test the property 'arrayTaskId' - */ - @Test - public void arrayTaskIdTest() { - // TODO: test arrayTaskId - } - - /** - * Test the property 'logs' - */ - @Test - public void logsTest() { - // TODO: test logs - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java deleted file mode 100644 index 004e005..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTaskStatus - */ -public class ArrayTaskStatusTest { - /** - * Model tests for ArrayTaskStatus - */ - @Test - public void testArrayTaskStatus() { - // TODO: test ArrayTaskStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java deleted file mode 100644 index 4c98798..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; -import io.tiledb.cloud.rest_api.model.ArrayTaskType; -import io.tiledb.cloud.rest_api.model.DomainArray; -import io.tiledb.cloud.rest_api.model.Querytype; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import java.io.IOException; -import java.math.BigDecimal; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTask - */ -public class ArrayTaskTest { - private final ArrayTask model = new ArrayTask(); - - /** - * Model tests for ArrayTask - */ - @Test - public void testArrayTask() { - // TODO: test ArrayTask - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'arrayMetadata' - */ - @Test - public void arrayMetadataTest() { - // TODO: test arrayMetadata - } - - /** - * Test the property 'subarray' - */ - @Test - public void subarrayTest() { - // TODO: test subarray - } - - /** - * Test the property 'memory' - */ - @Test - public void memoryTest() { - // TODO: test memory - } - - /** - * Test the property 'cpu' - */ - @Test - public void cpuTest() { - // TODO: test cpu - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'statusMessage' - */ - @Test - public void statusMessageTest() { - // TODO: test statusMessage - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'finishTime' - */ - @Test - public void finishTimeTest() { - // TODO: test finishTime - } - - /** - * Test the property 'cost' - */ - @Test - public void costTest() { - // TODO: test cost - } - - /** - * Test the property 'egressCost' - */ - @Test - public void egressCostTest() { - // TODO: test egressCost - } - - /** - * Test the property 'accessCost' - */ - @Test - public void accessCostTest() { - // TODO: test accessCost - } - - /** - * Test the property 'queryType' - */ - @Test - public void queryTypeTest() { - // TODO: test queryType - } - - /** - * Test the property 'udfCode' - */ - @Test - public void udfCodeTest() { - // TODO: test udfCode - } - - /** - * Test the property 'udfLanguage' - */ - @Test - public void udfLanguageTest() { - // TODO: test udfLanguage - } - - /** - * Test the property 'sqlQuery' - */ - @Test - public void sqlQueryTest() { - // TODO: test sqlQuery - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'activity' - */ - @Test - public void activityTest() { - // TODO: test activity - } - - /** - * Test the property 'logs' - */ - @Test - public void logsTest() { - // TODO: test logs - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'sqlInitCommands' - */ - @Test - public void sqlInitCommandsTest() { - // TODO: test sqlInitCommands - } - - /** - * Test the property 'sqlParameters' - */ - @Test - public void sqlParametersTest() { - // TODO: test sqlParameters - } - - /** - * Test the property 'resultFormat' - */ - @Test - public void resultFormatTest() { - // TODO: test resultFormat - } - - /** - * Test the property 'taskGraphUuid' - */ - @Test - public void taskGraphUuidTest() { - // TODO: test taskGraphUuid - } - - /** - * Test the property 'clientNodeUuid' - */ - @Test - public void clientNodeUuidTest() { - // TODO: test clientNodeUuid - } - - /** - * Test the property 'cloudProvider' - */ - @Test - public void cloudProviderTest() { - // TODO: test cloudProvider - } - - /** - * Test the property 'cloudRegion' - */ - @Test - public void cloudRegionTest() { - // TODO: test cloudRegion - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java deleted file mode 100644 index f143782..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayTaskType - */ -public class ArrayTaskTypeTest { - /** - * Model tests for ArrayTaskType - */ - @Test - public void testArrayTaskType() { - // TODO: test ArrayTaskType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java deleted file mode 100644 index 39dc993..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Querytype; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Array - */ -public class ArrayTest { - private final Array model = new Array(); - - /** - * Model tests for Array - */ - @Test - public void testArray() { - // TODO: test Array - } - - /** - * Test the property 'timestamp' - */ - @Test - public void timestampTest() { - // TODO: test timestamp - } - - /** - * Test the property 'queryType' - */ - @Test - public void queryTypeTest() { - // TODO: test queryType - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java deleted file mode 100644 index 5b9ac78..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayType - */ -public class ArrayTypeTest { - /** - * Model tests for ArrayType - */ - @Test - public void testArrayType() { - // TODO: test ArrayType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java deleted file mode 100644 index 409b365..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ArrayVacuumRequest - */ -public class ArrayVacuumRequestTest { - private final ArrayVacuumRequest model = new ArrayVacuumRequest(); - - /** - * Model tests for ArrayVacuumRequest - */ - @Test - public void testArrayVacuumRequest() { - // TODO: test ArrayVacuumRequest - } - - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java deleted file mode 100644 index b3a8b62..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AssetBackingType - */ -public class AssetBackingTypeTest { - /** - * Model tests for AssetBackingType - */ - @Test - public void testAssetBackingType() { - // TODO: test AssetBackingType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java deleted file mode 100644 index edf175b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetBackingType; -import io.tiledb.cloud.rest_api.model.AssetOwnershipLevel; -import io.tiledb.cloud.rest_api.model.AssetType; -import io.tiledb.cloud.rest_api.model.MetadataStringified; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AssetInfo - */ -public class AssetInfoTest { - private final AssetInfo model = new AssetInfo(); - - /** - * Model tests for AssetInfo - */ - @Test - public void testAssetInfo() { - // TODO: test AssetInfo - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'assetType' - */ - @Test - public void assetTypeTest() { - // TODO: test assetType - } - - /** - * Test the property 'assetBackingType' - */ - @Test - public void assetBackingTypeTest() { - // TODO: test assetBackingType - } - - /** - * Test the property 'assetOwnershipLevel' - */ - @Test - public void assetOwnershipLevelTest() { - // TODO: test assetOwnershipLevel - } - - /** - * Test the property 'namespaceName' - */ - @Test - public void namespaceNameTest() { - // TODO: test namespaceName - } - - /** - * Test the property 'namespaceUuid' - */ - @Test - public void namespaceUuidTest() { - // TODO: test namespaceUuid - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'mimeType' - */ - @Test - public void mimeTypeTest() { - // TODO: test mimeType - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java deleted file mode 100644 index 9ccd7fc..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AssetListResponse - */ -public class AssetListResponseTest { - private final AssetListResponse model = new AssetListResponse(); - - /** - * Model tests for AssetListResponse - */ - @Test - public void testAssetListResponse() { - // TODO: test AssetListResponse - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java deleted file mode 100644 index 6a87d13..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.StorageLocation; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AssetLocations - */ -public class AssetLocationsTest { - private final AssetLocations model = new AssetLocations(); - - /** - * Model tests for AssetLocations - */ - @Test - public void testAssetLocations() { - // TODO: test AssetLocations - } - - /** - * Test the property 'arrays' - */ - @Test - public void arraysTest() { - // TODO: test arrays - } - - /** - * Test the property 'files' - */ - @Test - public void filesTest() { - // TODO: test files - } - - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } - - /** - * Test the property 'mlModels' - */ - @Test - public void mlModelsTest() { - // TODO: test mlModels - } - - /** - * Test the property 'notebooks' - */ - @Test - public void notebooksTest() { - // TODO: test notebooks - } - - /** - * Test the property 'taskGraphs' - */ - @Test - public void taskGraphsTest() { - // TODO: test taskGraphs - } - - /** - * Test the property 'udfs' - */ - @Test - public void udfsTest() { - // TODO: test udfs - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java deleted file mode 100644 index 052e4e0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AssetOwnershipLevel - */ -public class AssetOwnershipLevelTest { - /** - * Model tests for AssetOwnershipLevel - */ - @Test - public void testAssetOwnershipLevel() { - // TODO: test AssetOwnershipLevel - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java deleted file mode 100644 index bfc01e1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AssetType - */ -public class AssetTypeTest { - /** - * Model tests for AssetType - */ - @Test - public void testAssetType() { - // TODO: test AssetType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java deleted file mode 100644 index ca48749..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AttributeBufferHeader - */ -public class AttributeBufferHeaderTest { - private final AttributeBufferHeader model = new AttributeBufferHeader(); - - /** - * Model tests for AttributeBufferHeader - */ - @Test - public void testAttributeBufferHeader() { - // TODO: test AttributeBufferHeader - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'fixedLenBufferSizeInBytes' - */ - @Test - public void fixedLenBufferSizeInBytesTest() { - // TODO: test fixedLenBufferSizeInBytes - } - - /** - * Test the property 'varLenBufferSizeInBytes' - */ - @Test - public void varLenBufferSizeInBytesTest() { - // TODO: test varLenBufferSizeInBytes - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java deleted file mode 100644 index 4b33244..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AttributeBufferSize - */ -public class AttributeBufferSizeTest { - private final AttributeBufferSize model = new AttributeBufferSize(); - - /** - * Model tests for AttributeBufferSize - */ - @Test - public void testAttributeBufferSize() { - // TODO: test AttributeBufferSize - } - - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } - - /** - * Test the property 'offsetBytes' - */ - @Test - public void offsetBytesTest() { - // TODO: test offsetBytes - } - - /** - * Test the property 'dataBytes' - */ - @Test - public void dataBytesTest() { - // TODO: test dataBytes - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java deleted file mode 100644 index b5d9c73..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import io.tiledb.cloud.rest_api.model.FilterPipeline; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Attribute - */ -public class AttributeTest { - private final Attribute model = new Attribute(); - - /** - * Model tests for Attribute - */ - @Test - public void testAttribute() { - // TODO: test Attribute - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'filterPipeline' - */ - @Test - public void filterPipelineTest() { - // TODO: test filterPipeline - } - - /** - * Test the property 'cellValNum' - */ - @Test - public void cellValNumTest() { - // TODO: test cellValNum - } - - /** - * Test the property 'nullable' - */ - @Test - public void nullableTest() { - // TODO: test nullable - } - - /** - * Test the property 'fillValue' - */ - @Test - public void fillValueTest() { - // TODO: test fillValue - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java deleted file mode 100644 index 1f417de..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Backoff - */ -public class BackoffTest { - private final Backoff model = new Backoff(); - - /** - * Model tests for Backoff - */ - @Test - public void testBackoff() { - // TODO: test Backoff - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'factor' - */ - @Test - public void factorTest() { - // TODO: test factor - } - - /** - * Test the property 'maxDuration' - */ - @Test - public void maxDurationTest() { - // TODO: test maxDuration - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java deleted file mode 100644 index b7d431f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Datatype - */ -public class DatatypeTest { - /** - * Model tests for Datatype - */ - @Test - public void testDatatype() { - // TODO: test Datatype - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java deleted file mode 100644 index 9a2917f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DimensionCoordinate - */ -public class DimensionCoordinateTest { - private final DimensionCoordinate model = new DimensionCoordinate(); - - /** - * Model tests for DimensionCoordinate - */ - @Test - public void testDimensionCoordinate() { - // TODO: test DimensionCoordinate - } - - /** - * Test the property 'int8' - */ - @Test - public void int8Test() { - // TODO: test int8 - } - - /** - * Test the property 'uint8' - */ - @Test - public void uint8Test() { - // TODO: test uint8 - } - - /** - * Test the property 'int16' - */ - @Test - public void int16Test() { - // TODO: test int16 - } - - /** - * Test the property 'uint16' - */ - @Test - public void uint16Test() { - // TODO: test uint16 - } - - /** - * Test the property 'int32' - */ - @Test - public void int32Test() { - // TODO: test int32 - } - - /** - * Test the property 'uint32' - */ - @Test - public void uint32Test() { - // TODO: test uint32 - } - - /** - * Test the property 'int64' - */ - @Test - public void int64Test() { - // TODO: test int64 - } - - /** - * Test the property 'uint64' - */ - @Test - public void uint64Test() { - // TODO: test uint64 - } - - /** - * Test the property 'float32' - */ - @Test - public void float32Test() { - // TODO: test float32 - } - - /** - * Test the property 'float64' - */ - @Test - public void float64Test() { - // TODO: test float64 - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java deleted file mode 100644 index 644f3f4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import io.tiledb.cloud.rest_api.model.DimensionTileExtent; -import io.tiledb.cloud.rest_api.model.DomainArray; -import io.tiledb.cloud.rest_api.model.FilterPipeline; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Dimension - */ -public class DimensionTest { - private final Dimension model = new Dimension(); - - /** - * Model tests for Dimension - */ - @Test - public void testDimension() { - // TODO: test Dimension - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'domain' - */ - @Test - public void domainTest() { - // TODO: test domain - } - - /** - * Test the property 'nullTileExtent' - */ - @Test - public void nullTileExtentTest() { - // TODO: test nullTileExtent - } - - /** - * Test the property 'tileExtent' - */ - @Test - public void tileExtentTest() { - // TODO: test tileExtent - } - - /** - * Test the property 'filterPipeline' - */ - @Test - public void filterPipelineTest() { - // TODO: test filterPipeline - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java deleted file mode 100644 index 4aded6a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DimensionTileExtent - */ -public class DimensionTileExtentTest { - private final DimensionTileExtent model = new DimensionTileExtent(); - - /** - * Model tests for DimensionTileExtent - */ - @Test - public void testDimensionTileExtent() { - // TODO: test DimensionTileExtent - } - - /** - * Test the property 'int8' - */ - @Test - public void int8Test() { - // TODO: test int8 - } - - /** - * Test the property 'uint8' - */ - @Test - public void uint8Test() { - // TODO: test uint8 - } - - /** - * Test the property 'int16' - */ - @Test - public void int16Test() { - // TODO: test int16 - } - - /** - * Test the property 'uint16' - */ - @Test - public void uint16Test() { - // TODO: test uint16 - } - - /** - * Test the property 'int32' - */ - @Test - public void int32Test() { - // TODO: test int32 - } - - /** - * Test the property 'uint32' - */ - @Test - public void uint32Test() { - // TODO: test uint32 - } - - /** - * Test the property 'int64' - */ - @Test - public void int64Test() { - // TODO: test int64 - } - - /** - * Test the property 'uint64' - */ - @Test - public void uint64Test() { - // TODO: test uint64 - } - - /** - * Test the property 'float32' - */ - @Test - public void float32Test() { - // TODO: test float32 - } - - /** - * Test the property 'float64' - */ - @Test - public void float64Test() { - // TODO: test float64 - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java deleted file mode 100644 index e376fac..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DomainArray - */ -public class DomainArrayTest { - private final DomainArray model = new DomainArray(); - - /** - * Model tests for DomainArray - */ - @Test - public void testDomainArray() { - // TODO: test DomainArray - } - - /** - * Test the property 'int8' - */ - @Test - public void int8Test() { - // TODO: test int8 - } - - /** - * Test the property 'uint8' - */ - @Test - public void uint8Test() { - // TODO: test uint8 - } - - /** - * Test the property 'int16' - */ - @Test - public void int16Test() { - // TODO: test int16 - } - - /** - * Test the property 'uint16' - */ - @Test - public void uint16Test() { - // TODO: test uint16 - } - - /** - * Test the property 'int32' - */ - @Test - public void int32Test() { - // TODO: test int32 - } - - /** - * Test the property 'uint32' - */ - @Test - public void uint32Test() { - // TODO: test uint32 - } - - /** - * Test the property 'int64' - */ - @Test - public void int64Test() { - // TODO: test int64 - } - - /** - * Test the property 'uint64' - */ - @Test - public void uint64Test() { - // TODO: test uint64 - } - - /** - * Test the property 'float32' - */ - @Test - public void float32Test() { - // TODO: test float32 - } - - /** - * Test the property 'float64' - */ - @Test - public void float64Test() { - // TODO: test float64 - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java deleted file mode 100644 index 73ed1c7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainCheckStatus; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DomainCheckResult - */ -public class DomainCheckResultTest { - private final DomainCheckResult model = new DomainCheckResult(); - - /** - * Model tests for DomainCheckResult - */ - @Test - public void testDomainCheckResult() { - // TODO: test DomainCheckResult - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java deleted file mode 100644 index 95060b0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DomainCheckStatus - */ -public class DomainCheckStatusTest { - /** - * Model tests for DomainCheckStatus - */ - @Test - public void testDomainCheckStatus() { - // TODO: test DomainCheckStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java deleted file mode 100644 index acc0b4c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import io.tiledb.cloud.rest_api.model.Dimension; -import io.tiledb.cloud.rest_api.model.Layout; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Domain - */ -public class DomainTest { - private final Domain model = new Domain(); - - /** - * Model tests for Domain - */ - @Test - public void testDomain() { - // TODO: test Domain - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'tileOrder' - */ - @Test - public void tileOrderTest() { - // TODO: test tileOrder - } - - /** - * Test the property 'cellOrder' - */ - @Test - public void cellOrderTest() { - // TODO: test cellOrder - } - - /** - * Test the property 'dimensions' - */ - @Test - public void dimensionsTest() { - // TODO: test dimensions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java deleted file mode 100644 index 1868467..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DomainVerificationStatus - */ -public class DomainVerificationStatusTest { - /** - * Model tests for DomainVerificationStatus - */ - @Test - public void testDomainVerificationStatus() { - // TODO: test DomainVerificationStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java deleted file mode 100644 index be83ac6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Enumeration - */ -public class EnumerationTest { - private final Enumeration model = new Enumeration(); - - /** - * Model tests for Enumeration - */ - @Test - public void testEnumeration() { - // TODO: test Enumeration - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'pathName' - */ - @Test - public void pathNameTest() { - // TODO: test pathName - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'cellValNum' - */ - @Test - public void cellValNumTest() { - // TODO: test cellValNum - } - - /** - * Test the property 'ordered' - */ - @Test - public void orderedTest() { - // TODO: test ordered - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'offsets' - */ - @Test - public void offsetsTest() { - // TODO: test offsets - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java deleted file mode 100644 index de698bf..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Error - */ -public class ErrorTest { - private final Error model = new Error(); - - /** - * Model tests for Error - */ - @Test - public void testError() { - // TODO: test Error - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'requestId' - */ - @Test - public void requestIdTest() { - // TODO: test requestId - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java deleted file mode 100644 index baa4bfb..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileCreate - */ -public class FileCreateTest { - private final FileCreate model = new FileCreate(); - - /** - * Model tests for FileCreate - */ - @Test - public void testFileCreate() { - // TODO: test FileCreate - } - - /** - * Test the property 'inputUri' - */ - @Test - public void inputUriTest() { - // TODO: test inputUri - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java deleted file mode 100644 index 842fa0a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileCreated - */ -public class FileCreatedTest { - private final FileCreated model = new FileCreated(); - - /** - * Model tests for FileCreated - */ - @Test - public void testFileCreated() { - // TODO: test FileCreated - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'fileName' - */ - @Test - public void fileNameTest() { - // TODO: test fileName - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java deleted file mode 100644 index 0a0a8e2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileExport - */ -public class FileExportTest { - private final FileExport model = new FileExport(); - - /** - * Model tests for FileExport - */ - @Test - public void testFileExport() { - // TODO: test FileExport - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java deleted file mode 100644 index c5d6d2b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileExported - */ -public class FileExportedTest { - private final FileExported model = new FileExported(); - - /** - * Model tests for FileExported - */ - @Test - public void testFileExported() { - // TODO: test FileExported - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java deleted file mode 100644 index d90303c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FilePropertyName - */ -public class FilePropertyNameTest { - /** - * Model tests for FilePropertyName - */ - @Test - public void testFilePropertyName() { - // TODO: test FilePropertyName - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java deleted file mode 100644 index df9ac86..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileType - */ -public class FileTypeTest { - /** - * Model tests for FileType - */ - @Test - public void testFileType() { - // TODO: test FileType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java deleted file mode 100644 index de13834..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileUploaded - */ -public class FileUploadedTest { - private final FileUploaded model = new FileUploaded(); - - /** - * Model tests for FileUploaded - */ - @Test - public void testFileUploaded() { - // TODO: test FileUploaded - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'fileName' - */ - @Test - public void fileNameTest() { - // TODO: test fileName - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java deleted file mode 100644 index a69e423..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FilterData - */ -public class FilterDataTest { - private final FilterData model = new FilterData(); - - /** - * Model tests for FilterData - */ - @Test - public void testFilterData() { - // TODO: test FilterData - } - - /** - * Test the property 'int8' - */ - @Test - public void int8Test() { - // TODO: test int8 - } - - /** - * Test the property 'uint8' - */ - @Test - public void uint8Test() { - // TODO: test uint8 - } - - /** - * Test the property 'int16' - */ - @Test - public void int16Test() { - // TODO: test int16 - } - - /** - * Test the property 'uint16' - */ - @Test - public void uint16Test() { - // TODO: test uint16 - } - - /** - * Test the property 'int32' - */ - @Test - public void int32Test() { - // TODO: test int32 - } - - /** - * Test the property 'uint32' - */ - @Test - public void uint32Test() { - // TODO: test uint32 - } - - /** - * Test the property 'int64' - */ - @Test - public void int64Test() { - // TODO: test int64 - } - - /** - * Test the property 'uint64' - */ - @Test - public void uint64Test() { - // TODO: test uint64 - } - - /** - * Test the property 'float32' - */ - @Test - public void float32Test() { - // TODO: test float32 - } - - /** - * Test the property 'float64' - */ - @Test - public void float64Test() { - // TODO: test float64 - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java deleted file mode 100644 index c95b345..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FilterOption - */ -public class FilterOptionTest { - /** - * Model tests for FilterOption - */ - @Test - public void testFilterOption() { - // TODO: test FilterOption - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java deleted file mode 100644 index 2972b54..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Filter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FilterPipeline - */ -public class FilterPipelineTest { - private final FilterPipeline model = new FilterPipeline(); - - /** - * Model tests for FilterPipeline - */ - @Test - public void testFilterPipeline() { - // TODO: test FilterPipeline - } - - /** - * Test the property 'filters' - */ - @Test - public void filtersTest() { - // TODO: test filters - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java deleted file mode 100644 index 718f594..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.FilterData; -import io.tiledb.cloud.rest_api.model.FilterType; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Filter - */ -public class FilterTest { - private final Filter model = new Filter(); - - /** - * Model tests for Filter - */ - @Test - public void testFilter() { - // TODO: test Filter - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java deleted file mode 100644 index 8b5d733..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FilterType - */ -public class FilterTypeTest { - /** - * Model tests for FilterType - */ - @Test - public void testFilterType() { - // TODO: test FilterType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java deleted file mode 100644 index d14b2ec..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FragmentInfoRequest - */ -public class FragmentInfoRequestTest { - private final FragmentInfoRequest model = new FragmentInfoRequest(); - - /** - * Model tests for FragmentInfoRequest - */ - @Test - public void testFragmentInfoRequest() { - // TODO: test FragmentInfoRequest - } - - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java deleted file mode 100644 index b5c3256..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArraySchema; -import io.tiledb.cloud.rest_api.model.SingleFragmentInfo; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FragmentInfo - */ -public class FragmentInfoTest { - private final FragmentInfo model = new FragmentInfo(); - - /** - * Model tests for FragmentInfo - */ - @Test - public void testFragmentInfo() { - // TODO: test FragmentInfo - } - - /** - * Test the property 'arraySchemaAll' - */ - @Test - public void arraySchemaAllTest() { - // TODO: test arraySchemaAll - } - - /** - * Test the property 'fragmentInfo' - */ - @Test - public void fragmentInfoTest() { - // TODO: test fragmentInfo - } - - /** - * Test the property 'toVacuum' - */ - @Test - public void toVacuumTest() { - // TODO: test toVacuum - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java deleted file mode 100644 index d8524c4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java +++ /dev/null @@ -1,242 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FragmentMetadata - */ -public class FragmentMetadataTest { - private final FragmentMetadata model = new FragmentMetadata(); - - /** - * Model tests for FragmentMetadata - */ - @Test - public void testFragmentMetadata() { - // TODO: test FragmentMetadata - } - - /** - * Test the property 'fileSizes' - */ - @Test - public void fileSizesTest() { - // TODO: test fileSizes - } - - /** - * Test the property 'fileVarSizes' - */ - @Test - public void fileVarSizesTest() { - // TODO: test fileVarSizes - } - - /** - * Test the property 'fileValiditySizes' - */ - @Test - public void fileValiditySizesTest() { - // TODO: test fileValiditySizes - } - - /** - * Test the property 'fragmentUri' - */ - @Test - public void fragmentUriTest() { - // TODO: test fragmentUri - } - - /** - * Test the property 'hasTimestamps' - */ - @Test - public void hasTimestampsTest() { - // TODO: test hasTimestamps - } - - /** - * Test the property 'hasDeleteMeta' - */ - @Test - public void hasDeleteMetaTest() { - // TODO: test hasDeleteMeta - } - - /** - * Test the property 'sparseTileNum' - */ - @Test - public void sparseTileNumTest() { - // TODO: test sparseTileNum - } - - /** - * Test the property 'tileIndexBase' - */ - @Test - public void tileIndexBaseTest() { - // TODO: test tileIndexBase - } - - /** - * Test the property 'tileOffsets' - */ - @Test - public void tileOffsetsTest() { - // TODO: test tileOffsets - } - - /** - * Test the property 'tileVarOffsets' - */ - @Test - public void tileVarOffsetsTest() { - // TODO: test tileVarOffsets - } - - /** - * Test the property 'tileVarSizes' - */ - @Test - public void tileVarSizesTest() { - // TODO: test tileVarSizes - } - - /** - * Test the property 'tileValidityOffsets' - */ - @Test - public void tileValidityOffsetsTest() { - // TODO: test tileValidityOffsets - } - - /** - * Test the property 'tileMinBuffer' - */ - @Test - public void tileMinBufferTest() { - // TODO: test tileMinBuffer - } - - /** - * Test the property 'tileMinVarBuffer' - */ - @Test - public void tileMinVarBufferTest() { - // TODO: test tileMinVarBuffer - } - - /** - * Test the property 'tileMaxBuffer' - */ - @Test - public void tileMaxBufferTest() { - // TODO: test tileMaxBuffer - } - - /** - * Test the property 'tileMaxVarBuffer' - */ - @Test - public void tileMaxVarBufferTest() { - // TODO: test tileMaxVarBuffer - } - - /** - * Test the property 'tileSums' - */ - @Test - public void tileSumsTest() { - // TODO: test tileSums - } - - /** - * Test the property 'tileNullCounts' - */ - @Test - public void tileNullCountsTest() { - // TODO: test tileNullCounts - } - - /** - * Test the property 'fragmentMins' - */ - @Test - public void fragmentMinsTest() { - // TODO: test fragmentMins - } - - /** - * Test the property 'fragmentMaxs' - */ - @Test - public void fragmentMaxsTest() { - // TODO: test fragmentMaxs - } - - /** - * Test the property 'fragmentSums' - */ - @Test - public void fragmentSumsTest() { - // TODO: test fragmentSums - } - - /** - * Test the property 'fragmentNullCounts' - */ - @Test - public void fragmentNullCountsTest() { - // TODO: test fragmentNullCounts - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'timestampRange' - */ - @Test - public void timestampRangeTest() { - // TODO: test timestampRange - } - - /** - * Test the property 'lastTileCellNum' - */ - @Test - public void lastTileCellNumTest() { - // TODO: test lastTileCellNum - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java deleted file mode 100644 index 0053d36..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GenericUDF - */ -public class GenericUDFTest { - private final GenericUDF model = new GenericUDF(); - - /** - * Model tests for GenericUDF - */ - @Test - public void testGenericUDF() { - // TODO: test GenericUDF - } - - /** - * Test the property 'udfInfoName' - */ - @Test - public void udfInfoNameTest() { - // TODO: test udfInfoName - } - - /** - * Test the property 'language' - */ - @Test - public void languageTest() { - // TODO: test language - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'imageName' - */ - @Test - public void imageNameTest() { - // TODO: test imageName - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'resourceClass' - */ - @Test - public void resourceClassTest() { - // TODO: test resourceClass - } - - /** - * Test the property 'exec' - */ - @Test - public void execTest() { - // TODO: test exec - } - - /** - * Test the property 'execRaw' - */ - @Test - public void execRawTest() { - // TODO: test execRaw - } - - /** - * Test the property 'argument' - */ - @Test - public void argumentTest() { - // TODO: test argument - } - - /** - * Test the property 'storedParamUuids' - */ - @Test - public void storedParamUuidsTest() { - // TODO: test storedParamUuids - } - - /** - * Test the property 'resultFormat' - */ - @Test - public void resultFormatTest() { - // TODO: test resultFormat - } - - /** - * Test the property 'taskName' - */ - @Test - public void taskNameTest() { - // TODO: test taskName - } - - /** - * Test the property 'storeResults' - */ - @Test - public void storeResultsTest() { - // TODO: test storeResults - } - - /** - * Test the property 'timeout' - */ - @Test - public void timeoutTest() { - // TODO: test timeout - } - - /** - * Test the property 'dontDownloadResults' - */ - @Test - public void dontDownloadResultsTest() { - // TODO: test dontDownloadResults - } - - /** - * Test the property 'taskGraphUuid' - */ - @Test - public void taskGraphUuidTest() { - // TODO: test taskGraphUuid - } - - /** - * Test the property 'clientNodeUuid' - */ - @Test - public void clientNodeUuidTest() { - // TODO: test clientNodeUuid - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java deleted file mode 100644 index 6066461..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTiledbStats200Response - */ -public class GetTiledbStats200ResponseTest { - private final GetTiledbStats200Response model = new GetTiledbStats200Response(); - - /** - * Model tests for GetTiledbStats200Response - */ - @Test - public void testGetTiledbStats200Response() { - // TODO: test GetTiledbStats200Response - } - - /** - * Test the property 'stats' - */ - @Test - public void statsTest() { - // TODO: test stats - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java deleted file mode 100644 index a2e8020..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupActions - */ -public class GroupActionsTest { - /** - * Model tests for GroupActions - */ - @Test - public void testGroupActions() { - // TODO: test GroupActions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java deleted file mode 100644 index e0d1a14..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupBrowserData - */ -public class GroupBrowserDataTest { - private final GroupBrowserData model = new GroupBrowserData(); - - /** - * Model tests for GroupBrowserData - */ - @Test - public void testGroupBrowserData() { - // TODO: test GroupBrowserData - } - - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java deleted file mode 100644 index 977d7e8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupType; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupBrowserFilterData - */ -public class GroupBrowserFilterDataTest { - private final GroupBrowserFilterData model = new GroupBrowserFilterData(); - - /** - * Model tests for GroupBrowserFilterData - */ - @Test - public void testGroupBrowserFilterData() { - // TODO: test GroupBrowserFilterData - } - - /** - * Test the property 'namespaces' - */ - @Test - public void namespacesTest() { - // TODO: test namespaces - } - - /** - * Test the property 'groupTypes' - */ - @Test - public void groupTypesTest() { - // TODO: test groupTypes - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java deleted file mode 100644 index 300a33c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupMember; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupChanges - */ -public class GroupChangesTest { - private final GroupChanges model = new GroupChanges(); - - /** - * Model tests for GroupChanges - */ - @Test - public void testGroupChanges() { - // TODO: test GroupChanges - } - - /** - * Test the property 'add' - */ - @Test - public void addTest() { - // TODO: test add - } - - /** - * Test the property 'remove' - */ - @Test - public void removeTest() { - // TODO: test remove - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java deleted file mode 100644 index 0b014b6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetType; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupContentActivityAsset - */ -public class GroupContentActivityAssetTest { - private final GroupContentActivityAsset model = new GroupContentActivityAsset(); - - /** - * Model tests for GroupContentActivityAsset - */ - @Test - public void testGroupContentActivityAsset() { - // TODO: test GroupContentActivityAsset - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'assetType' - */ - @Test - public void assetTypeTest() { - // TODO: test assetType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java deleted file mode 100644 index 24ecdca..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupContentActivity; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupContentActivityResponse - */ -public class GroupContentActivityResponseTest { - private final GroupContentActivityResponse model = new GroupContentActivityResponse(); - - /** - * Model tests for GroupContentActivityResponse - */ - @Test - public void testGroupContentActivityResponse() { - // TODO: test GroupContentActivityResponse - } - - /** - * Test the property 'activity' - */ - @Test - public void activityTest() { - // TODO: test activity - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java deleted file mode 100644 index 61b4f81..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.GroupContentActivityAsset; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupContentActivity - */ -public class GroupContentActivityTest { - private final GroupContentActivity model = new GroupContentActivity(); - - /** - * Model tests for GroupContentActivity - */ - @Test - public void testGroupContentActivity() { - // TODO: test GroupContentActivity - } - - /** - * Test the property 'asset' - */ - @Test - public void assetTest() { - // TODO: test asset - } - - /** - * Test the property 'activityLog' - */ - @Test - public void activityLogTest() { - // TODO: test activityLog - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java deleted file mode 100644 index f07ffcf..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupContentsFilterData - */ -public class GroupContentsFilterDataTest { - private final GroupContentsFilterData model = new GroupContentsFilterData(); - - /** - * Model tests for GroupContentsFilterData - */ - @Test - public void testGroupContentsFilterData() { - // TODO: test GroupContentsFilterData - } - - /** - * Test the property 'namespaces' - */ - @Test - public void namespacesTest() { - // TODO: test namespaces - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java deleted file mode 100644 index 7616644..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupEntry; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupContents - */ -public class GroupContentsTest { - private final GroupContents model = new GroupContents(); - - /** - * Model tests for GroupContents - */ - @Test - public void testGroupContents() { - // TODO: test GroupContents - } - - /** - * Test the property 'entries' - */ - @Test - public void entriesTest() { - // TODO: test entries - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java deleted file mode 100644 index e0b5c64..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupCreate - */ -public class GroupCreateTest { - private final GroupCreate model = new GroupCreate(); - - /** - * Model tests for GroupCreate - */ - @Test - public void testGroupCreate() { - // TODO: test GroupCreate - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'parent' - */ - @Test - public void parentTest() { - // TODO: test parent - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java deleted file mode 100644 index 214560c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.GroupInfo; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupEntry - */ -public class GroupEntryTest { - private final GroupEntry model = new GroupEntry(); - - /** - * Model tests for GroupEntry - */ - @Test - public void testGroupEntry() { - // TODO: test GroupEntry - } - - /** - * Test the property 'memberId' - */ - @Test - public void memberIdTest() { - // TODO: test memberId - } - - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } - - /** - * Test the property 'array' - */ - @Test - public void arrayTest() { - // TODO: test array - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java deleted file mode 100644 index 71aac99..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupActions; -import io.tiledb.cloud.rest_api.model.GroupType; -import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; -import java.io.IOException; -import java.math.BigDecimal; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupInfo - */ -public class GroupInfoTest { - private final GroupInfo model = new GroupInfo(); - - /** - * Model tests for GroupInfo - */ - @Test - public void testGroupInfo() { - // TODO: test GroupInfo - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'tiledbUri' - */ - @Test - public void tiledbUriTest() { - // TODO: test tiledbUri - } - - /** - * Test the property 'assetCount' - */ - @Test - public void assetCountTest() { - // TODO: test assetCount - } - - /** - * Test the property 'groupCount' - */ - @Test - public void groupCountTest() { - // TODO: test groupCount - } - - /** - * Test the property 'size' - */ - @Test - public void sizeTest() { - // TODO: test size - } - - /** - * Test the property 'lastAccessed' - */ - @Test - public void lastAccessedTest() { - // TODO: test lastAccessed - } - - /** - * Test the property 'allowedActions' - */ - @Test - public void allowedActionsTest() { - // TODO: test allowedActions - } - - /** - * Test the property 'groupType' - */ - @Test - public void groupTypeTest() { - // TODO: test groupType - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'shareCount' - */ - @Test - public void shareCountTest() { - // TODO: test shareCount - } - - /** - * Test the property 'publicShare' - */ - @Test - public void publicShareTest() { - // TODO: test publicShare - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java deleted file mode 100644 index 3f5d99e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupMemberAssetType - */ -public class GroupMemberAssetTypeTest { - /** - * Model tests for GroupMemberAssetType - */ - @Test - public void testGroupMemberAssetType() { - // TODO: test GroupMemberAssetType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java deleted file mode 100644 index 2922b50..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.GroupMemberType; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupMember - */ -public class GroupMemberTest { - private final GroupMember model = new GroupMember(); - - /** - * Model tests for GroupMember - */ - @Test - public void testGroupMember() { - // TODO: test GroupMember - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'memberType' - */ - @Test - public void memberTypeTest() { - // TODO: test memberType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java deleted file mode 100644 index 5ef9878..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupMemberType - */ -public class GroupMemberTypeTest { - /** - * Model tests for GroupMemberType - */ - @Test - public void testGroupMemberType() { - // TODO: test GroupMemberType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java deleted file mode 100644 index d6aa184..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupRegister - */ -public class GroupRegisterTest { - private final GroupRegister model = new GroupRegister(); - - /** - * Model tests for GroupRegister - */ - @Test - public void testGroupRegister() { - // TODO: test GroupRegister - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'parent' - */ - @Test - public void parentTest() { - // TODO: test parent - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java deleted file mode 100644 index b75d8d3..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.GroupActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupSharingRequest - */ -public class GroupSharingRequestTest { - private final GroupSharingRequest model = new GroupSharingRequest(); - - /** - * Model tests for GroupSharingRequest - */ - @Test - public void testGroupSharingRequest() { - // TODO: test GroupSharingRequest - } - - /** - * Test the property 'groupActions' - */ - @Test - public void groupActionsTest() { - // TODO: test groupActions - } - - /** - * Test the property 'arrayActions' - */ - @Test - public void arrayActionsTest() { - // TODO: test arrayActions - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java deleted file mode 100644 index a70d42d..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.GroupActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupSharing - */ -public class GroupSharingTest { - private final GroupSharing model = new GroupSharing(); - - /** - * Model tests for GroupSharing - */ - @Test - public void testGroupSharing() { - // TODO: test GroupSharing - } - - /** - * Test the property 'groupActions' - */ - @Test - public void groupActionsTest() { - // TODO: test groupActions - } - - /** - * Test the property 'arrayActions' - */ - @Test - public void arrayActionsTest() { - // TODO: test arrayActions - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'namespaceType' - */ - @Test - public void namespaceTypeTest() { - // TODO: test namespaceType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java deleted file mode 100644 index 9333cf6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupTypeMetadataKey - */ -public class GroupTypeMetadataKeyTest { - /** - * Model tests for GroupTypeMetadataKey - */ - @Test - public void testGroupTypeMetadataKey() { - // TODO: test GroupTypeMetadataKey - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java deleted file mode 100644 index 527453f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupType - */ -public class GroupTypeTest { - /** - * Model tests for GroupType - */ - @Test - public void testGroupType() { - // TODO: test GroupType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java deleted file mode 100644 index c0d9c29..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GroupUpdate - */ -public class GroupUpdateTest { - private final GroupUpdate model = new GroupUpdate(); - - /** - * Model tests for GroupUpdate - */ - @Test - public void testGroupUpdate() { - // TODO: test GroupUpdate - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java deleted file mode 100644 index 577a29c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationArrayShareEmail - */ -public class InvitationArrayShareEmailTest { - private final InvitationArrayShareEmail model = new InvitationArrayShareEmail(); - - /** - * Model tests for InvitationArrayShareEmail - */ - @Test - public void testInvitationArrayShareEmail() { - // TODO: test InvitationArrayShareEmail - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'inviteeEmail' - */ - @Test - public void inviteeEmailTest() { - // TODO: test inviteeEmail - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java deleted file mode 100644 index 1f73c80..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Invitation; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationData - */ -public class InvitationDataTest { - private final InvitationData model = new InvitationData(); - - /** - * Model tests for InvitationData - */ - @Test - public void testInvitationData() { - // TODO: test InvitationData - } - - /** - * Test the property 'invitations' - */ - @Test - public void invitationsTest() { - // TODO: test invitations - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java deleted file mode 100644 index 35addfd..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationFailedRecipients - */ -public class InvitationFailedRecipientsTest { - private final InvitationFailedRecipients model = new InvitationFailedRecipients(); - - /** - * Model tests for InvitationFailedRecipients - */ - @Test - public void testInvitationFailedRecipients() { - // TODO: test InvitationFailedRecipients - } - - /** - * Test the property 'failedRecipients' - */ - @Test - public void failedRecipientsTest() { - // TODO: test failedRecipients - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java deleted file mode 100644 index 7df4576..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayActions; -import io.tiledb.cloud.rest_api.model.GroupActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationGroupShareEmail - */ -public class InvitationGroupShareEmailTest { - private final InvitationGroupShareEmail model = new InvitationGroupShareEmail(); - - /** - * Model tests for InvitationGroupShareEmail - */ - @Test - public void testInvitationGroupShareEmail() { - // TODO: test InvitationGroupShareEmail - } - - /** - * Test the property 'arrayActions' - */ - @Test - public void arrayActionsTest() { - // TODO: test arrayActions - } - - /** - * Test the property 'groupActions' - */ - @Test - public void groupActionsTest() { - // TODO: test groupActions - } - - /** - * Test the property 'inviteeEmailOrName' - */ - @Test - public void inviteeEmailOrNameTest() { - // TODO: test inviteeEmailOrName - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java deleted file mode 100644 index 0578631..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationOrganizationJoinEmail - */ -public class InvitationOrganizationJoinEmailTest { - private final InvitationOrganizationJoinEmail model = new InvitationOrganizationJoinEmail(); - - /** - * Model tests for InvitationOrganizationJoinEmail - */ - @Test - public void testInvitationOrganizationJoinEmail() { - // TODO: test InvitationOrganizationJoinEmail - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'organizationRole' - */ - @Test - public void organizationRoleTest() { - // TODO: test organizationRole - } - - /** - * Test the property 'inviteeEmail' - */ - @Test - public void inviteeEmailTest() { - // TODO: test inviteeEmail - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java deleted file mode 100644 index 3db4ca7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationStatus - */ -public class InvitationStatusTest { - /** - * Model tests for InvitationStatus - */ - @Test - public void testInvitationStatus() { - // TODO: test InvitationStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java deleted file mode 100644 index 716fb18..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.InvitationStatus; -import io.tiledb.cloud.rest_api.model.InvitationType; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Invitation - */ -public class InvitationTest { - private final Invitation model = new Invitation(); - - /** - * Model tests for Invitation - */ - @Test - public void testInvitation() { - // TODO: test Invitation - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'invitationType' - */ - @Test - public void invitationTypeTest() { - // TODO: test invitationType - } - - /** - * Test the property 'ownerNamespaceUuid' - */ - @Test - public void ownerNamespaceUuidTest() { - // TODO: test ownerNamespaceUuid - } - - /** - * Test the property 'inviterUuid' - */ - @Test - public void inviterUuidTest() { - // TODO: test inviterUuid - } - - /** - * Test the property 'userNamespaceUuid' - */ - @Test - public void userNamespaceUuidTest() { - // TODO: test userNamespaceUuid - } - - /** - * Test the property 'organizationUserUuid' - */ - @Test - public void organizationUserUuidTest() { - // TODO: test organizationUserUuid - } - - /** - * Test the property 'organizationName' - */ - @Test - public void organizationNameTest() { - // TODO: test organizationName - } - - /** - * Test the property 'organizationRole' - */ - @Test - public void organizationRoleTest() { - // TODO: test organizationRole - } - - /** - * Test the property 'organizationUuid' - */ - @Test - public void organizationUuidTest() { - // TODO: test organizationUuid - } - - /** - * Test the property 'arrayUuid' - */ - @Test - public void arrayUuidTest() { - // TODO: test arrayUuid - } - - /** - * Test the property 'groupUuid' - */ - @Test - public void groupUuidTest() { - // TODO: test groupUuid - } - - /** - * Test the property 'arrayName' - */ - @Test - public void arrayNameTest() { - // TODO: test arrayName - } - - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'groupActions' - */ - @Test - public void groupActionsTest() { - // TODO: test groupActions - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'expiresAt' - */ - @Test - public void expiresAtTest() { - // TODO: test expiresAt - } - - /** - * Test the property 'acceptedAt' - */ - @Test - public void acceptedAtTest() { - // TODO: test acceptedAt - } - - /** - * Test the property 'namespaceInvited' - */ - @Test - public void namespaceInvitedTest() { - // TODO: test namespaceInvited - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java deleted file mode 100644 index 67d5d98..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InvitationType - */ -public class InvitationTypeTest { - /** - * Model tests for InvitationType - */ - @Test - public void testInvitationType() { - // TODO: test InvitationType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java deleted file mode 100644 index 8d318b7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ActivityEventType; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LastAccessedArray - */ -public class LastAccessedArrayTest { - private final LastAccessedArray model = new LastAccessedArray(); - - /** - * Model tests for LastAccessedArray - */ - @Test - public void testLastAccessedArray() { - // TODO: test LastAccessedArray - } - - /** - * Test the property 'arrayId' - */ - @Test - public void arrayIdTest() { - // TODO: test arrayId - } - - /** - * Test the property 'arrayName' - */ - @Test - public void arrayNameTest() { - // TODO: test arrayName - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'accessedTime' - */ - @Test - public void accessedTimeTest() { - // TODO: test accessedTime - } - - /** - * Test the property 'accessType' - */ - @Test - public void accessTypeTest() { - // TODO: test accessType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java deleted file mode 100644 index 1fabaa4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Layout - */ -public class LayoutTest { - /** - * Model tests for Layout - */ - @Test - public void testLayout() { - // TODO: test Layout - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java deleted file mode 100644 index f396523..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LoadArraySchemaRequest - */ -public class LoadArraySchemaRequestTest { - private final LoadArraySchemaRequest model = new LoadArraySchemaRequest(); - - /** - * Model tests for LoadArraySchemaRequest - */ - @Test - public void testLoadArraySchemaRequest() { - // TODO: test LoadArraySchemaRequest - } - - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java deleted file mode 100644 index 663cb7f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArraySchema; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LoadArraySchemaResponse - */ -public class LoadArraySchemaResponseTest { - private final LoadArraySchemaResponse model = new LoadArraySchemaResponse(); - - /** - * Model tests for LoadArraySchemaResponse - */ - @Test - public void testLoadArraySchemaResponse() { - // TODO: test LoadArraySchemaResponse - } - - /** - * Test the property 'latestArraySchema' - */ - @Test - public void latestArraySchemaTest() { - // TODO: test latestArraySchema - } - - /** - * Test the property 'allArraySchemas' - */ - @Test - public void allArraySchemasTest() { - // TODO: test allArraySchemas - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java deleted file mode 100644 index 9a6192e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LoadEnumerationsRequest - */ -public class LoadEnumerationsRequestTest { - private final LoadEnumerationsRequest model = new LoadEnumerationsRequest(); - - /** - * Model tests for LoadEnumerationsRequest - */ - @Test - public void testLoadEnumerationsRequest() { - // TODO: test LoadEnumerationsRequest - } - - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } - - /** - * Test the property 'enumerations' - */ - @Test - public void enumerationsTest() { - // TODO: test enumerations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java deleted file mode 100644 index cbb0ea6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Enumeration; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LoadEnumerationsResponse - */ -public class LoadEnumerationsResponseTest { - private final LoadEnumerationsResponse model = new LoadEnumerationsResponse(); - - /** - * Model tests for LoadEnumerationsResponse - */ - @Test - public void testLoadEnumerationsResponse() { - // TODO: test LoadEnumerationsResponse - } - - /** - * Test the property 'enumerations' - */ - @Test - public void enumerationsTest() { - // TODO: test enumerations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java deleted file mode 100644 index 129ca69..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MLModelFavorite - */ -public class MLModelFavoriteTest { - private final MLModelFavorite model = new MLModelFavorite(); - - /** - * Model tests for MLModelFavorite - */ - @Test - public void testMLModelFavorite() { - // TODO: test MLModelFavorite - } - - /** - * Test the property 'mlmodelUuid' - */ - @Test - public void mlmodelUuidTest() { - // TODO: test mlmodelUuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java deleted file mode 100644 index f6dd647..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MLModelFavoritesData - */ -public class MLModelFavoritesDataTest { - private final MLModelFavoritesData model = new MLModelFavoritesData(); - - /** - * Model tests for MLModelFavoritesData - */ - @Test - public void testMLModelFavoritesData() { - // TODO: test MLModelFavoritesData - } - - /** - * Test the property 'mlmodels' - */ - @Test - public void mlmodelsTest() { - // TODO: test mlmodels - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java deleted file mode 100644 index bb10442..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AttributeBufferSize; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MaxBufferSizes - */ -public class MaxBufferSizesTest { - private final MaxBufferSizes model = new MaxBufferSizes(); - - /** - * Model tests for MaxBufferSizes - */ - @Test - public void testMaxBufferSizes() { - // TODO: test MaxBufferSizes - } - - /** - * Test the property 'maxBufferSizes' - */ - @Test - public void maxBufferSizesTest() { - // TODO: test maxBufferSizes - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java deleted file mode 100644 index 958e4e2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MetadataStringifiedEntry - */ -public class MetadataStringifiedEntryTest { - private final MetadataStringifiedEntry model = new MetadataStringifiedEntry(); - - /** - * Model tests for MetadataStringifiedEntry - */ - @Test - public void testMetadataStringifiedEntry() { - // TODO: test MetadataStringifiedEntry - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java deleted file mode 100644 index 3d3edca..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MetadataStringified - */ -public class MetadataStringifiedTest { - private final MetadataStringified model = new MetadataStringified(); - - /** - * Model tests for MetadataStringified - */ - @Test - public void testMetadataStringified() { - // TODO: test MetadataStringified - } - - /** - * Test the property 'entries' - */ - @Test - public void entriesTest() { - // TODO: test entries - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java deleted file mode 100644 index 64c0a9d..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.QueryRanges; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.TGUDFArgument; -import io.tiledb.cloud.rest_api.model.UDFArrayDetails; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import io.tiledb.cloud.rest_api.model.UDFSubarray; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MultiArrayUDF - */ -public class MultiArrayUDFTest { - private final MultiArrayUDF model = new MultiArrayUDF(); - - /** - * Model tests for MultiArrayUDF - */ - @Test - public void testMultiArrayUDF() { - // TODO: test MultiArrayUDF - } - - /** - * Test the property 'udfInfoName' - */ - @Test - public void udfInfoNameTest() { - // TODO: test udfInfoName - } - - /** - * Test the property 'language' - */ - @Test - public void languageTest() { - // TODO: test language - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'imageName' - */ - @Test - public void imageNameTest() { - // TODO: test imageName - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'resourceClass' - */ - @Test - public void resourceClassTest() { - // TODO: test resourceClass - } - - /** - * Test the property 'exec' - */ - @Test - public void execTest() { - // TODO: test exec - } - - /** - * Test the property 'execRaw' - */ - @Test - public void execRawTest() { - // TODO: test execRaw - } - - /** - * Test the property 'resultFormat' - */ - @Test - public void resultFormatTest() { - // TODO: test resultFormat - } - - /** - * Test the property 'taskName' - */ - @Test - public void taskNameTest() { - // TODO: test taskName - } - - /** - * Test the property 'argument' - */ - @Test - public void argumentTest() { - // TODO: test argument - } - - /** - * Test the property 'argumentsJson' - */ - @Test - public void argumentsJsonTest() { - // TODO: test argumentsJson - } - - /** - * Test the property 'storedParamUuids' - */ - @Test - public void storedParamUuidsTest() { - // TODO: test storedParamUuids - } - - /** - * Test the property 'storeResults' - */ - @Test - public void storeResultsTest() { - // TODO: test storeResults - } - - /** - * Test the property 'dontDownloadResults' - */ - @Test - public void dontDownloadResultsTest() { - // TODO: test dontDownloadResults - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - - /** - * Test the property 'subarray' - */ - @Test - public void subarrayTest() { - // TODO: test subarray - } - - /** - * Test the property 'buffers' - */ - @Test - public void buffersTest() { - // TODO: test buffers - } - - /** - * Test the property 'arrays' - */ - @Test - public void arraysTest() { - // TODO: test arrays - } - - /** - * Test the property 'timeout' - */ - @Test - public void timeoutTest() { - // TODO: test timeout - } - - /** - * Test the property 'taskGraphUuid' - */ - @Test - public void taskGraphUuidTest() { - // TODO: test taskGraphUuid - } - - /** - * Test the property 'clientNodeUuid' - */ - @Test - public void clientNodeUuidTest() { - // TODO: test clientNodeUuid - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java deleted file mode 100644 index d5d93f6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NamespaceActions - */ -public class NamespaceActionsTest { - /** - * Model tests for NamespaceActions - */ - @Test - public void testNamespaceActions() { - // TODO: test NamespaceActions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java deleted file mode 100644 index 76b9b70..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainArray; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NonEmptyDomain - */ -public class NonEmptyDomainTest { - private final NonEmptyDomain model = new NonEmptyDomain(); - - /** - * Model tests for NonEmptyDomain - */ - @Test - public void testNonEmptyDomain() { - // TODO: test NonEmptyDomain - } - - /** - * Test the property 'nonEmptyDomain' - */ - @Test - public void nonEmptyDomainTest() { - // TODO: test nonEmptyDomain - } - - /** - * Test the property 'isEmpty' - */ - @Test - public void isEmptyTest() { - // TODO: test isEmpty - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java deleted file mode 100644 index 0f2c19e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NotebookCopied - */ -public class NotebookCopiedTest { - private final NotebookCopied model = new NotebookCopied(); - - /** - * Model tests for NotebookCopied - */ - @Test - public void testNotebookCopied() { - // TODO: test NotebookCopied - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java deleted file mode 100644 index 3a128f2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NotebookCopy - */ -public class NotebookCopyTest { - private final NotebookCopy model = new NotebookCopy(); - - /** - * Model tests for NotebookCopy - */ - @Test - public void testNotebookCopy() { - // TODO: test NotebookCopy - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java deleted file mode 100644 index 39c844a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NotebookFavorite - */ -public class NotebookFavoriteTest { - private final NotebookFavorite model = new NotebookFavorite(); - - /** - * Model tests for NotebookFavorite - */ - @Test - public void testNotebookFavorite() { - // TODO: test NotebookFavorite - } - - /** - * Test the property 'notebookUuid' - */ - @Test - public void notebookUuidTest() { - // TODO: test notebookUuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java deleted file mode 100644 index 62b66f4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NotebookFavoritesData - */ -public class NotebookFavoritesDataTest { - private final NotebookFavoritesData model = new NotebookFavoritesData(); - - /** - * Model tests for NotebookFavoritesData - */ - @Test - public void testNotebookFavoritesData() { - // TODO: test NotebookFavoritesData - } - - /** - * Test the property 'notebooks' - */ - @Test - public void notebooksTest() { - // TODO: test notebooks - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java deleted file mode 100644 index afdba1f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PodStatus; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for NotebookStatus - */ -public class NotebookStatusTest { - private final NotebookStatus model = new NotebookStatus(); - - /** - * Model tests for NotebookStatus - */ - @Test - public void testNotebookStatus() { - // TODO: test NotebookStatus - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'uptime' - */ - @Test - public void uptimeTest() { - // TODO: test uptime - } - - /** - * Test the property 'cpuUsage' - */ - @Test - public void cpuUsageTest() { - // TODO: test cpuUsage - } - - /** - * Test the property 'gpuUsage' - */ - @Test - public void gpuUsageTest() { - // TODO: test gpuUsage - } - - /** - * Test the property 'memoryUsage' - */ - @Test - public void memoryUsageTest() { - // TODO: test memoryUsage - } - - /** - * Test the property 'gpuLimit' - */ - @Test - public void gpuLimitTest() { - // TODO: test gpuLimit - } - - /** - * Test the property 'memoryLimit' - */ - @Test - public void memoryLimitTest() { - // TODO: test memoryLimit - } - - /** - * Test the property 'storageUsage' - */ - @Test - public void storageUsageTest() { - // TODO: test storageUsage - } - - /** - * Test the property 'storageLimit' - */ - @Test - public void storageLimitTest() { - // TODO: test storageLimit - } - - /** - * Test the property 'cpuCount' - */ - @Test - public void cpuCountTest() { - // TODO: test cpuCount - } - - /** - * Test the property 'cost' - */ - @Test - public void costTest() { - // TODO: test cost - } - - /** - * Test the property 'podStatus' - */ - @Test - public void podStatusTest() { - // TODO: test podStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java deleted file mode 100644 index 7f2d138..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for OrganizationRoles - */ -public class OrganizationRolesTest { - /** - * Model tests for OrganizationRoles - */ - @Test - public void testOrganizationRoles() { - // TODO: test OrganizationRoles - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java deleted file mode 100644 index cb0086c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetLocations; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -import java.io.IOException; -import java.math.BigDecimal; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Organization - */ -public class OrganizationTest { - private final Organization model = new Organization(); - - /** - * Model tests for Organization - */ - @Test - public void testOrganization() { - // TODO: test Organization - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'role' - */ - @Test - public void roleTest() { - // TODO: test role - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'updatedAt' - */ - @Test - public void updatedAtTest() { - // TODO: test updatedAt - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } - - /** - * Test the property 'allowedActions' - */ - @Test - public void allowedActionsTest() { - // TODO: test allowedActions - } - - /** - * Test the property 'numOfArrays' - */ - @Test - public void numOfArraysTest() { - // TODO: test numOfArrays - } - - /** - * Test the property 'enabledFeatures' - */ - @Test - public void enabledFeaturesTest() { - // TODO: test enabledFeatures - } - - /** - * Test the property 'unpaidSubscription' - */ - @Test - public void unpaidSubscriptionTest() { - // TODO: test unpaidSubscription - } - - /** - * Test the property 'defaultS3Path' - */ - @Test - public void defaultS3PathTest() { - // TODO: test defaultS3Path - } - - /** - * Test the property 'defaultS3PathCredentialsName' - */ - @Test - public void defaultS3PathCredentialsNameTest() { - // TODO: test defaultS3PathCredentialsName - } - - /** - * Test the property 'assetLocations' - */ - @Test - public void assetLocationsTest() { - // TODO: test assetLocations - } - - /** - * Test the property 'stripeConnect' - */ - @Test - public void stripeConnectTest() { - // TODO: test stripeConnect - } - - /** - * Test the property 'assumeRoleArn' - */ - @Test - public void assumeRoleArnTest() { - // TODO: test assumeRoleArn - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java deleted file mode 100644 index ee75e71..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetLocations; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for OrganizationUpdate - */ -public class OrganizationUpdateTest { - private final OrganizationUpdate model = new OrganizationUpdate(); - - /** - * Model tests for OrganizationUpdate - */ - @Test - public void testOrganizationUpdate() { - // TODO: test OrganizationUpdate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'defaultS3Path' - */ - @Test - public void defaultS3PathTest() { - // TODO: test defaultS3Path - } - - /** - * Test the property 'defaultS3PathCredentialsName' - */ - @Test - public void defaultS3PathCredentialsNameTest() { - // TODO: test defaultS3PathCredentialsName - } - - /** - * Test the property 'assetLocations' - */ - @Test - public void assetLocationsTest() { - // TODO: test assetLocations - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java deleted file mode 100644 index 9a4efce..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationRoles; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for OrganizationUser - */ -public class OrganizationUserTest { - private final OrganizationUser model = new OrganizationUser(); - - /** - * Model tests for OrganizationUser - */ - @Test - public void testOrganizationUser() { - // TODO: test OrganizationUser - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'organizationId' - */ - @Test - public void organizationIdTest() { - // TODO: test organizationId - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'userFullName' - */ - @Test - public void userFullNameTest() { - // TODO: test userFullName - } - - /** - * Test the property 'userEmail' - */ - @Test - public void userEmailTest() { - // TODO: test userEmail - } - - /** - * Test the property 'organizationName' - */ - @Test - public void organizationNameTest() { - // TODO: test organizationName - } - - /** - * Test the property 'role' - */ - @Test - public void roleTest() { - // TODO: test role - } - - /** - * Test the property 'allowedActions' - */ - @Test - public void allowedActionsTest() { - // TODO: test allowedActions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java deleted file mode 100644 index 394207e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PaginationMetadata - */ -public class PaginationMetadataTest { - private final PaginationMetadata model = new PaginationMetadata(); - - /** - * Model tests for PaginationMetadata - */ - @Test - public void testPaginationMetadata() { - // TODO: test PaginationMetadata - } - - /** - * Test the property 'page' - */ - @Test - public void pageTest() { - // TODO: test page - } - - /** - * Test the property 'perPage' - */ - @Test - public void perPageTest() { - // TODO: test perPage - } - - /** - * Test the property 'totalPages' - */ - @Test - public void totalPagesTest() { - // TODO: test totalPages - } - - /** - * Test the property 'totalItems' - */ - @Test - public void totalItemsTest() { - // TODO: test totalItems - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java deleted file mode 100644 index d0c7430..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PodStatus - */ -public class PodStatusTest { - /** - * Model tests for PodStatus - */ - @Test - public void testPodStatus() { - // TODO: test PodStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java deleted file mode 100644 index f9292cc..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PricingAggregateUsage - */ -public class PricingAggregateUsageTest { - /** - * Model tests for PricingAggregateUsage - */ - @Test - public void testPricingAggregateUsage() { - // TODO: test PricingAggregateUsage - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java deleted file mode 100644 index e122625..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PricingCurrency - */ -public class PricingCurrencyTest { - /** - * Model tests for PricingCurrency - */ - @Test - public void testPricingCurrency() { - // TODO: test PricingCurrency - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java deleted file mode 100644 index 9f1cda6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PricingInterval - */ -public class PricingIntervalTest { - /** - * Model tests for PricingInterval - */ - @Test - public void testPricingInterval() { - // TODO: test PricingInterval - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java deleted file mode 100644 index d476ea0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PricingAggregateUsage; -import io.tiledb.cloud.rest_api.model.PricingCurrency; -import io.tiledb.cloud.rest_api.model.PricingInterval; -import io.tiledb.cloud.rest_api.model.PricingType; -import io.tiledb.cloud.rest_api.model.PricingUnitLabel; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Pricing - */ -public class PricingTest { - private final Pricing model = new Pricing(); - - /** - * Model tests for Pricing - */ - @Test - public void testPricing() { - // TODO: test Pricing - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'arrayUuid' - */ - @Test - public void arrayUuidTest() { - // TODO: test arrayUuid - } - - /** - * Test the property 'pricingName' - */ - @Test - public void pricingNameTest() { - // TODO: test pricingName - } - - /** - * Test the property 'pricingType' - */ - @Test - public void pricingTypeTest() { - // TODO: test pricingType - } - - /** - * Test the property 'productName' - */ - @Test - public void productNameTest() { - // TODO: test productName - } - - /** - * Test the property 'productStatementDescriptor' - */ - @Test - public void productStatementDescriptorTest() { - // TODO: test productStatementDescriptor - } - - /** - * Test the property 'productUnitLabel' - */ - @Test - public void productUnitLabelTest() { - // TODO: test productUnitLabel - } - - /** - * Test the property 'currency' - */ - @Test - public void currencyTest() { - // TODO: test currency - } - - /** - * Test the property 'aggregateUsage' - */ - @Test - public void aggregateUsageTest() { - // TODO: test aggregateUsage - } - - /** - * Test the property 'interval' - */ - @Test - public void intervalTest() { - // TODO: test interval - } - - /** - * Test the property 'dividedBy' - */ - @Test - public void dividedByTest() { - // TODO: test dividedBy - } - - /** - * Test the property 'charge' - */ - @Test - public void chargeTest() { - // TODO: test charge - } - - /** - * Test the property 'activated' - */ - @Test - public void activatedTest() { - // TODO: test activated - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java deleted file mode 100644 index 0497ac8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PricingType - */ -public class PricingTypeTest { - /** - * Model tests for PricingType - */ - @Test - public void testPricingType() { - // TODO: test PricingType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java deleted file mode 100644 index ba88f3c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PricingUnitLabel - */ -public class PricingUnitLabelTest { - /** - * Model tests for PricingUnitLabel - */ - @Test - public void testPricingUnitLabel() { - // TODO: test PricingUnitLabel - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java deleted file mode 100644 index f6165a0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PublicShareFilter - */ -public class PublicShareFilterTest { - /** - * Model tests for PublicShareFilter - */ - @Test - public void testPublicShareFilter() { - // TODO: test PublicShareFilter - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java deleted file mode 100644 index db804ac..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.QueryRanges; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for QueryJson - */ -public class QueryJsonTest { - private final QueryJson model = new QueryJson(); - - /** - * Model tests for QueryJson - */ - @Test - public void testQueryJson() { - // TODO: test QueryJson - } - - /** - * Test the property 'queryRanges' - */ - @Test - public void queryRangesTest() { - // TODO: test queryRanges - } - - /** - * Test the property 'fields' - */ - @Test - public void fieldsTest() { - // TODO: test fields - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java deleted file mode 100644 index b9b3097..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for QueryRanges - */ -public class QueryRangesTest { - private final QueryRanges model = new QueryRanges(); - - /** - * Model tests for QueryRanges - */ - @Test - public void testQueryRanges() { - // TODO: test QueryRanges - } - - /** - * Test the property 'layout' - */ - @Test - public void layoutTest() { - // TODO: test layout - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java deleted file mode 100644 index 44200f1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.ReadState; -import io.tiledb.cloud.rest_api.model.Subarray; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for QueryReader - */ -public class QueryReaderTest { - private final QueryReader model = new QueryReader(); - - /** - * Model tests for QueryReader - */ - @Test - public void testQueryReader() { - // TODO: test QueryReader - } - - /** - * Test the property 'layout' - */ - @Test - public void layoutTest() { - // TODO: test layout - } - - /** - * Test the property 'subarray' - */ - @Test - public void subarrayTest() { - // TODO: test subarray - } - - /** - * Test the property 'readState' - */ - @Test - public void readStateTest() { - // TODO: test readState - } - - /** - * Test the property 'varOffsetsMode' - */ - @Test - public void varOffsetsModeTest() { - // TODO: test varOffsetsMode - } - - /** - * Test the property 'varOffsetsAddExtraElement' - */ - @Test - public void varOffsetsAddExtraElementTest() { - // TODO: test varOffsetsAddExtraElement - } - - /** - * Test the property 'varOffsetsBitsize' - */ - @Test - public void varOffsetsBitsizeTest() { - // TODO: test varOffsetsBitsize - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java deleted file mode 100644 index e06fb52..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AttributeBufferHeader; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.QueryReader; -import io.tiledb.cloud.rest_api.model.Querystatus; -import io.tiledb.cloud.rest_api.model.Querytype; -import io.tiledb.cloud.rest_api.model.Writer; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Query - */ -public class QueryTest { - private final Query model = new Query(); - - /** - * Model tests for Query - */ - @Test - public void testQuery() { - // TODO: test Query - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'layout' - */ - @Test - public void layoutTest() { - // TODO: test layout - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'attributeBufferHeaders' - */ - @Test - public void attributeBufferHeadersTest() { - // TODO: test attributeBufferHeaders - } - - /** - * Test the property 'writer' - */ - @Test - public void writerTest() { - // TODO: test writer - } - - /** - * Test the property 'reader' - */ - @Test - public void readerTest() { - // TODO: test reader - } - - /** - * Test the property 'array' - */ - @Test - public void arrayTest() { - // TODO: test array - } - - /** - * Test the property 'totalFixedLengthBufferBytes' - */ - @Test - public void totalFixedLengthBufferBytesTest() { - // TODO: test totalFixedLengthBufferBytes - } - - /** - * Test the property 'totalVarLenBufferBytes' - */ - @Test - public void totalVarLenBufferBytesTest() { - // TODO: test totalVarLenBufferBytes - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java deleted file mode 100644 index 3da5ce2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Querystatus - */ -public class QuerystatusTest { - /** - * Model tests for Querystatus - */ - @Test - public void testQuerystatus() { - // TODO: test Querystatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java deleted file mode 100644 index 1d0bc89..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Querytype - */ -public class QuerytypeTest { - /** - * Model tests for Querytype - */ - @Test - public void testQuerytype() { - // TODO: test Querytype - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java deleted file mode 100644 index ab1245a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.SubarrayPartitioner; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ReadState - */ -public class ReadStateTest { - private final ReadState model = new ReadState(); - - /** - * Model tests for ReadState - */ - @Test - public void testReadState() { - // TODO: test ReadState - } - - /** - * Test the property 'initialized' - */ - @Test - public void initializedTest() { - // TODO: test initialized - } - - /** - * Test the property 'overflowed' - */ - @Test - public void overflowedTest() { - // TODO: test overflowed - } - - /** - * Test the property 'unsplittable' - */ - @Test - public void unsplittableTest() { - // TODO: test unsplittable - } - - /** - * Test the property 'subarrayPartitioner' - */ - @Test - public void subarrayPartitionerTest() { - // TODO: test subarrayPartitioner - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java deleted file mode 100644 index be76e73..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraphNode; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RegisteredTaskGraph - */ -public class RegisteredTaskGraphTest { - private final RegisteredTaskGraph model = new RegisteredTaskGraph(); - - /** - * Model tests for RegisteredTaskGraph - */ - @Test - public void testRegisteredTaskGraph() { - // TODO: test RegisteredTaskGraph - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'readme' - */ - @Test - public void readmeTest() { - // TODO: test readme - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'nodes' - */ - @Test - public void nodesTest() { - // TODO: test nodes - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java deleted file mode 100644 index 34b3984..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ResetUserPasswordRequest - */ -public class ResetUserPasswordRequestTest { - private final ResetUserPasswordRequest model = new ResetUserPasswordRequest(); - - /** - * Model tests for ResetUserPasswordRequest - */ - @Test - public void testResetUserPasswordRequest() { - // TODO: test ResetUserPasswordRequest - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java deleted file mode 100644 index 38b9006..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ResultFormat - */ -public class ResultFormatTest { - /** - * Model tests for ResultFormat - */ - @Test - public void testResultFormat() { - // TODO: test ResultFormat - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java deleted file mode 100644 index 51cc819..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RetryPolicy - */ -public class RetryPolicyTest { - /** - * Model tests for RetryPolicy - */ - @Test - public void testRetryPolicy() { - // TODO: test RetryPolicy - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java deleted file mode 100644 index 602c20b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Backoff; -import io.tiledb.cloud.rest_api.model.RetryPolicy; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RetryStrategy - */ -public class RetryStrategyTest { - private final RetryStrategy model = new RetryStrategy(); - - /** - * Model tests for RetryStrategy - */ - @Test - public void testRetryStrategy() { - // TODO: test RetryStrategy - } - - /** - * Test the property 'backoff' - */ - @Test - public void backoffTest() { - // TODO: test backoff - } - - /** - * Test the property 'expression' - */ - @Test - public void expressionTest() { - // TODO: test expression - } - - /** - * Test the property 'limit' - */ - @Test - public void limitTest() { - // TODO: test limit - } - - /** - * Test the property 'retryPolicy' - */ - @Test - public void retryPolicyTest() { - // TODO: test retryPolicy - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java deleted file mode 100644 index 90859a1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SQLParameters - */ -public class SQLParametersTest { - private final SQLParameters model = new SQLParameters(); - - /** - * Model tests for SQLParameters - */ - @Test - public void testSQLParameters() { - // TODO: test SQLParameters - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'query' - */ - @Test - public void queryTest() { - // TODO: test query - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'storeResults' - */ - @Test - public void storeResultsTest() { - // TODO: test storeResults - } - - /** - * Test the property 'dontDownloadResults' - */ - @Test - public void dontDownloadResultsTest() { - // TODO: test dontDownloadResults - } - - /** - * Test the property 'resourceClass' - */ - @Test - public void resourceClassTest() { - // TODO: test resourceClass - } - - /** - * Test the property 'resultFormat' - */ - @Test - public void resultFormatTest() { - // TODO: test resultFormat - } - - /** - * Test the property 'initCommands' - */ - @Test - public void initCommandsTest() { - // TODO: test initCommands - } - - /** - * Test the property 'parameters' - */ - @Test - public void parametersTest() { - // TODO: test parameters - } - - /** - * Test the property 'taskGraphUuid' - */ - @Test - public void taskGraphUuidTest() { - // TODO: test taskGraphUuid - } - - /** - * Test the property 'clientNodeUuid' - */ - @Test - public void clientNodeUuidTest() { - // TODO: test clientNodeUuid - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java deleted file mode 100644 index a6f87d0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.SSODomainConfig; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SSODomainConfigResponse - */ -public class SSODomainConfigResponseTest { - private final SSODomainConfigResponse model = new SSODomainConfigResponse(); - - /** - * Model tests for SSODomainConfigResponse - */ - @Test - public void testSSODomainConfigResponse() { - // TODO: test SSODomainConfigResponse - } - - /** - * Test the property 'domainConfigs' - */ - @Test - public void domainConfigsTest() { - // TODO: test domainConfigs - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java deleted file mode 100644 index b6b8e6b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainCheckResult; -import io.tiledb.cloud.rest_api.model.DomainVerificationStatus; -import io.tiledb.cloud.rest_api.model.SSODomainSetup; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SSODomainConfig - */ -public class SSODomainConfigTest { - private final SSODomainConfig model = new SSODomainConfig(); - - /** - * Model tests for SSODomainConfig - */ - @Test - public void testSSODomainConfig() { - // TODO: test SSODomainConfig - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'domain' - */ - @Test - public void domainTest() { - // TODO: test domain - } - - /** - * Test the property 'oidcIssuer' - */ - @Test - public void oidcIssuerTest() { - // TODO: test oidcIssuer - } - - /** - * Test the property 'oidcClientId' - */ - @Test - public void oidcClientIdTest() { - // TODO: test oidcClientId - } - - /** - * Test the property 'oidcClientSecret' - */ - @Test - public void oidcClientSecretTest() { - // TODO: test oidcClientSecret - } - - /** - * Test the property 'domainSetup' - */ - @Test - public void domainSetupTest() { - // TODO: test domainSetup - } - - /** - * Test the property 'verificationStatus' - */ - @Test - public void verificationStatusTest() { - // TODO: test verificationStatus - } - - /** - * Test the property 'checkResults' - */ - @Test - public void checkResultsTest() { - // TODO: test checkResults - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java deleted file mode 100644 index 48c7e97..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SSODomainSetup - */ -public class SSODomainSetupTest { - private final SSODomainSetup model = new SSODomainSetup(); - - /** - * Model tests for SSODomainSetup - */ - @Test - public void testSSODomainSetup() { - // TODO: test SSODomainSetup - } - - /** - * Test the property 'txt' - */ - @Test - public void txtTest() { - // TODO: test txt - } - - /** - * Test the property 'cnameSrc' - */ - @Test - public void cnameSrcTest() { - // TODO: test cnameSrc - } - - /** - * Test the property 'cnameDst' - */ - @Test - public void cnameDstTest() { - // TODO: test cnameDst - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java deleted file mode 100644 index e945209..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SSOProvider - */ -public class SSOProviderTest { - /** - * Model tests for SSOProvider - */ - @Test - public void testSSOProvider() { - // TODO: test SSOProvider - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java deleted file mode 100644 index dbf5bb4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SharePaymentRequest - */ -public class SharePaymentRequestTest { - private final SharePaymentRequest model = new SharePaymentRequest(); - - /** - * Model tests for SharePaymentRequest - */ - @Test - public void testSharePaymentRequest() { - // TODO: test SharePaymentRequest - } - - /** - * Test the property 'namespaces' - */ - @Test - public void namespacesTest() { - // TODO: test namespaces - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java deleted file mode 100644 index 0f5dd37..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.FragmentMetadata; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SingleFragmentInfo - */ -public class SingleFragmentInfoTest { - private final SingleFragmentInfo model = new SingleFragmentInfo(); - - /** - * Model tests for SingleFragmentInfo - */ - @Test - public void testSingleFragmentInfo() { - // TODO: test SingleFragmentInfo - } - - /** - * Test the property 'arraySchemaName' - */ - @Test - public void arraySchemaNameTest() { - // TODO: test arraySchemaName - } - - /** - * Test the property 'meta' - */ - @Test - public void metaTest() { - // TODO: test meta - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java deleted file mode 100644 index 05302a0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for StorageLocation - */ -public class StorageLocationTest { - private final StorageLocation model = new StorageLocation(); - - /** - * Model tests for StorageLocation - */ - @Test - public void testStorageLocation() { - // TODO: test StorageLocation - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'credentialsName' - */ - @Test - public void credentialsNameTest() { - // TODO: test credentialsName - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java deleted file mode 100644 index d8b5dab..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Subarray; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SubarrayPartitionerCurrent - */ -public class SubarrayPartitionerCurrentTest { - private final SubarrayPartitionerCurrent model = new SubarrayPartitionerCurrent(); - - /** - * Model tests for SubarrayPartitionerCurrent - */ - @Test - public void testSubarrayPartitionerCurrent() { - // TODO: test SubarrayPartitionerCurrent - } - - /** - * Test the property 'subarray' - */ - @Test - public void subarrayTest() { - // TODO: test subarray - } - - /** - * Test the property 'start' - */ - @Test - public void startTest() { - // TODO: test start - } - - /** - * Test the property 'end' - */ - @Test - public void endTest() { - // TODO: test end - } - - /** - * Test the property 'splitMultiRange' - */ - @Test - public void splitMultiRangeTest() { - // TODO: test splitMultiRange - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java deleted file mode 100644 index 71b5f58..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Subarray; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SubarrayPartitionerState - */ -public class SubarrayPartitionerStateTest { - private final SubarrayPartitionerState model = new SubarrayPartitionerState(); - - /** - * Model tests for SubarrayPartitionerState - */ - @Test - public void testSubarrayPartitionerState() { - // TODO: test SubarrayPartitionerState - } - - /** - * Test the property 'start' - */ - @Test - public void startTest() { - // TODO: test start - } - - /** - * Test the property 'end' - */ - @Test - public void endTest() { - // TODO: test end - } - - /** - * Test the property 'singleRange' - */ - @Test - public void singleRangeTest() { - // TODO: test singleRange - } - - /** - * Test the property 'multiRange' - */ - @Test - public void multiRangeTest() { - // TODO: test multiRange - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java deleted file mode 100644 index e16535c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AttributeBufferSize; -import io.tiledb.cloud.rest_api.model.Subarray; -import io.tiledb.cloud.rest_api.model.SubarrayPartitionerCurrent; -import io.tiledb.cloud.rest_api.model.SubarrayPartitionerState; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SubarrayPartitioner - */ -public class SubarrayPartitionerTest { - private final SubarrayPartitioner model = new SubarrayPartitioner(); - - /** - * Model tests for SubarrayPartitioner - */ - @Test - public void testSubarrayPartitioner() { - // TODO: test SubarrayPartitioner - } - - /** - * Test the property 'subarray' - */ - @Test - public void subarrayTest() { - // TODO: test subarray - } - - /** - * Test the property 'budget' - */ - @Test - public void budgetTest() { - // TODO: test budget - } - - /** - * Test the property 'current' - */ - @Test - public void currentTest() { - // TODO: test current - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - - /** - * Test the property 'memoryBudget' - */ - @Test - public void memoryBudgetTest() { - // TODO: test memoryBudget - } - - /** - * Test the property 'memoryBudgetVar' - */ - @Test - public void memoryBudgetVarTest() { - // TODO: test memoryBudgetVar - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java deleted file mode 100644 index 5b2d5b9..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Datatype; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SubarrayRanges - */ -public class SubarrayRangesTest { - private final SubarrayRanges model = new SubarrayRanges(); - - /** - * Model tests for SubarrayRanges - */ - @Test - public void testSubarrayRanges() { - // TODO: test SubarrayRanges - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'hasDefaultRange' - */ - @Test - public void hasDefaultRangeTest() { - // TODO: test hasDefaultRange - } - - /** - * Test the property 'buffer' - */ - @Test - public void bufferTest() { - // TODO: test buffer - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java deleted file mode 100644 index e2bbd69..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.SubarrayRanges; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Subarray - */ -public class SubarrayTest { - private final Subarray model = new Subarray(); - - /** - * Model tests for Subarray - */ - @Test - public void testSubarray() { - // TODO: test Subarray - } - - /** - * Test the property 'layout' - */ - @Test - public void layoutTest() { - // TODO: test layout - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java deleted file mode 100644 index d9353ef..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Pricing; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Subscription - */ -public class SubscriptionTest { - private final Subscription model = new Subscription(); - - /** - * Model tests for Subscription - */ - @Test - public void testSubscription() { - // TODO: test Subscription - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'ownerNamespaceUuid' - */ - @Test - public void ownerNamespaceUuidTest() { - // TODO: test ownerNamespaceUuid - } - - /** - * Test the property 'customerNamespaceUuid' - */ - @Test - public void customerNamespaceUuidTest() { - // TODO: test customerNamespaceUuid - } - - /** - * Test the property 'pricing' - */ - @Test - public void pricingTest() { - // TODO: test pricing - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java deleted file mode 100644 index 14932b1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TGQueryRanges; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGArrayNodeData - */ -public class TGArrayNodeDataTest { - private final TGArrayNodeData model = new TGArrayNodeData(); - - /** - * Model tests for TGArrayNodeData - */ - @Test - public void testTGArrayNodeData() { - // TODO: test TGArrayNodeData - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - - /** - * Test the property 'buffers' - */ - @Test - public void buffersTest() { - // TODO: test buffers - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java deleted file mode 100644 index 4c98e54..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGInputNodeData - */ -public class TGInputNodeDataTest { - private final TGInputNodeData model = new TGInputNodeData(); - - /** - * Model tests for TGInputNodeData - */ - @Test - public void testTGInputNodeData() { - // TODO: test TGInputNodeData - } - - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } - - /** - * Test the property 'datatype' - */ - @Test - public void datatypeTest() { - // TODO: test datatype - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java deleted file mode 100644 index 1285707..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGQueryRanges - */ -public class TGQueryRangesTest { - private final TGQueryRanges model = new TGQueryRanges(); - - /** - * Model tests for TGQueryRanges - */ - @Test - public void testTGQueryRanges() { - // TODO: test TGQueryRanges - } - - /** - * Test the property 'layout' - */ - @Test - public void layoutTest() { - // TODO: test layout - } - - /** - * Test the property 'friendlyRanges' - */ - @Test - public void friendlyRangesTest() { - // TODO: test friendlyRanges - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java deleted file mode 100644 index 4c89d97..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGSQLNodeData - */ -public class TGSQLNodeDataTest { - private final TGSQLNodeData model = new TGSQLNodeData(); - - /** - * Model tests for TGSQLNodeData - */ - @Test - public void testTGSQLNodeData() { - // TODO: test TGSQLNodeData - } - - /** - * Test the property 'initCommands' - */ - @Test - public void initCommandsTest() { - // TODO: test initCommands - } - - /** - * Test the property 'query' - */ - @Test - public void queryTest() { - // TODO: test query - } - - /** - * Test the property 'parameters' - */ - @Test - public void parametersTest() { - // TODO: test parameters - } - - /** - * Test the property 'resultFormat' - */ - @Test - public void resultFormatTest() { - // TODO: test resultFormat - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java deleted file mode 100644 index 170c749..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGUDFArgument - */ -public class TGUDFArgumentTest { - private final TGUDFArgument model = new TGUDFArgument(); - - /** - * Model tests for TGUDFArgument - */ - @Test - public void testTGUDFArgument() { - // TODO: test TGUDFArgument - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java deleted file mode 100644 index 1f21731..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGUDFEnvironmentResources - */ -public class TGUDFEnvironmentResourcesTest { - private final TGUDFEnvironmentResources model = new TGUDFEnvironmentResources(); - - /** - * Model tests for TGUDFEnvironmentResources - */ - @Test - public void testTGUDFEnvironmentResources() { - // TODO: test TGUDFEnvironmentResources - } - - /** - * Test the property 'cpu' - */ - @Test - public void cpuTest() { - // TODO: test cpu - } - - /** - * Test the property 'memory' - */ - @Test - public void memoryTest() { - // TODO: test memory - } - - /** - * Test the property 'gpu' - */ - @Test - public void gpuTest() { - // TODO: test gpu - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java deleted file mode 100644 index 640771d..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGUDFEnvironment - */ -public class TGUDFEnvironmentTest { - private final TGUDFEnvironment model = new TGUDFEnvironment(); - - /** - * Model tests for TGUDFEnvironment - */ - @Test - public void testTGUDFEnvironment() { - // TODO: test TGUDFEnvironment - } - - /** - * Test the property 'language' - */ - @Test - public void languageTest() { - // TODO: test language - } - - /** - * Test the property 'languageVersion' - */ - @Test - public void languageVersionTest() { - // TODO: test languageVersion - } - - /** - * Test the property 'imageName' - */ - @Test - public void imageNameTest() { - // TODO: test imageName - } - - /** - * Test the property 'accessCredentialsName' - */ - @Test - public void accessCredentialsNameTest() { - // TODO: test accessCredentialsName - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'resourceClass' - */ - @Test - public void resourceClassTest() { - // TODO: test resourceClass - } - - /** - * Test the property 'resources' - */ - @Test - public void resourcesTest() { - // TODO: test resources - } - - /** - * Test the property 'runClientSide' - */ - @Test - public void runClientSideTest() { - // TODO: test runClientSide - } - - /** - * Test the property 'timeout' - */ - @Test - public void timeoutTest() { - // TODO: test timeout - } - - /** - * Test the property 'paths' - */ - @Test - public void pathsTest() { - // TODO: test paths - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java deleted file mode 100644 index 39c3b78..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.TGUDFArgument; -import io.tiledb.cloud.rest_api.model.TGUDFEnvironment; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGUDFNodeData - */ -public class TGUDFNodeDataTest { - private final TGUDFNodeData model = new TGUDFNodeData(); - - /** - * Model tests for TGUDFNodeData - */ - @Test - public void testTGUDFNodeData() { - // TODO: test TGUDFNodeData - } - - /** - * Test the property 'registeredUdfName' - */ - @Test - public void registeredUdfNameTest() { - // TODO: test registeredUdfName - } - - /** - * Test the property 'executableCode' - */ - @Test - public void executableCodeTest() { - // TODO: test executableCode - } - - /** - * Test the property 'sourceText' - */ - @Test - public void sourceTextTest() { - // TODO: test sourceText - } - - /** - * Test the property 'environment' - */ - @Test - public void environmentTest() { - // TODO: test environment - } - - /** - * Test the property 'arguments' - */ - @Test - public void argumentsTest() { - // TODO: test arguments - } - - /** - * Test the property 'resultFormat' - */ - @Test - public void resultFormatTest() { - // TODO: test resultFormat - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java deleted file mode 100644 index a1f0a25..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TGUDFStorage - */ -public class TGUDFStorageTest { - private final TGUDFStorage model = new TGUDFStorage(); - - /** - * Model tests for TGUDFStorage - */ - @Test - public void testTGUDFStorage() { - // TODO: test TGUDFStorage - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'size' - */ - @Test - public void sizeTest() { - // TODO: test size - } - - /** - * Test the property 'storageClass' - */ - @Test - public void storageClassTest() { - // TODO: test storageClass - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java deleted file mode 100644 index 16d4636..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphActions - */ -public class TaskGraphActionsTest { - /** - * Model tests for TaskGraphActions - */ - @Test - public void testTaskGraphActions() { - // TODO: test TaskGraphActions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java deleted file mode 100644 index 9e20b5c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphClientNodeStatus - */ -public class TaskGraphClientNodeStatusTest { - private final TaskGraphClientNodeStatus model = new TaskGraphClientNodeStatus(); - - /** - * Model tests for TaskGraphClientNodeStatus - */ - @Test - public void testTaskGraphClientNodeStatus() { - // TODO: test TaskGraphClientNodeStatus - } - - /** - * Test the property 'clientNodeUuid' - */ - @Test - public void clientNodeUuidTest() { - // TODO: test clientNodeUuid - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java deleted file mode 100644 index ec0eff8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphLogRunLocation - */ -public class TaskGraphLogRunLocationTest { - /** - * Model tests for TaskGraphLogRunLocation - */ - @Test - public void testTaskGraphLogRunLocation() { - // TODO: test TaskGraphLogRunLocation - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java deleted file mode 100644 index 4a25b77..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphLogStatus - */ -public class TaskGraphLogStatusTest { - /** - * Model tests for TaskGraphLogStatus - */ - @Test - public void testTaskGraphLogStatus() { - // TODO: test TaskGraphLogStatus - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java deleted file mode 100644 index cd3943f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraphLogStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphNodeMetadata; -import io.tiledb.cloud.rest_api.model.TaskGraphType; -import java.io.IOException; -import java.math.BigDecimal; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphLog - */ -public class TaskGraphLogTest { - private final TaskGraphLog model = new TaskGraphLog(); - - /** - * Model tests for TaskGraphLog - */ - @Test - public void testTaskGraphLog() { - // TODO: test TaskGraphLog - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'totalCost' - */ - @Test - public void totalCostTest() { - // TODO: test totalCost - } - - /** - * Test the property 'accessCost' - */ - @Test - public void accessCostTest() { - // TODO: test accessCost - } - - /** - * Test the property 'egressCost' - */ - @Test - public void egressCostTest() { - // TODO: test egressCost - } - - /** - * Test the property 'executionTime' - */ - @Test - public void executionTimeTest() { - // TODO: test executionTime - } - - /** - * Test the property 'statusCount' - */ - @Test - public void statusCountTest() { - // TODO: test statusCount - } - - /** - * Test the property 'nodes' - */ - @Test - public void nodesTest() { - // TODO: test nodes - } - - /** - * Test the property 'taskGraphType' - */ - @Test - public void taskGraphTypeTest() { - // TODO: test taskGraphType - } - - /** - * Test the property 'taskGraphId' - */ - @Test - public void taskGraphIdTest() { - // TODO: test taskGraphId - } - - /** - * Test the property 'cloudProvider' - */ - @Test - public void cloudProviderTest() { - // TODO: test cloudProvider - } - - /** - * Test the property 'cloudRegion' - */ - @Test - public void cloudRegionTest() { - // TODO: test cloudRegion - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java deleted file mode 100644 index 959bb6e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphLogsData - */ -public class TaskGraphLogsDataTest { - private final TaskGraphLogsData model = new TaskGraphLogsData(); - - /** - * Model tests for TaskGraphLogsData - */ - @Test - public void testTaskGraphLogsData() { - // TODO: test TaskGraphLogsData - } - - /** - * Test the property 'taskGraphLogs' - */ - @Test - public void taskGraphLogsTest() { - // TODO: test taskGraphLogs - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java deleted file mode 100644 index c286f7f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphLogRunLocation; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphNodeMetadata - */ -public class TaskGraphNodeMetadataTest { - private final TaskGraphNodeMetadata model = new TaskGraphNodeMetadata(); - - /** - * Model tests for TaskGraphNodeMetadata - */ - @Test - public void testTaskGraphNodeMetadata() { - // TODO: test TaskGraphNodeMetadata - } - - /** - * Test the property 'clientNodeUuid' - */ - @Test - public void clientNodeUuidTest() { - // TODO: test clientNodeUuid - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'dependsOn' - */ - @Test - public void dependsOnTest() { - // TODO: test dependsOn - } - - /** - * Test the property 'runLocation' - */ - @Test - public void runLocationTest() { - // TODO: test runLocation - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'statusMessage' - */ - @Test - public void statusMessageTest() { - // TODO: test statusMessage - } - - /** - * Test the property 'executions' - */ - @Test - public void executionsTest() { - // TODO: test executions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java deleted file mode 100644 index 26177fc..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.RetryStrategy; -import io.tiledb.cloud.rest_api.model.TGInputNodeData; -import io.tiledb.cloud.rest_api.model.TGSQLNodeData; -import io.tiledb.cloud.rest_api.model.TGUDFNodeData; -import io.tiledb.cloud.rest_api.model.UDFArrayDetails; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphNode - */ -public class TaskGraphNodeTest { - private final TaskGraphNode model = new TaskGraphNode(); - - /** - * Model tests for TaskGraphNode - */ - @Test - public void testTaskGraphNode() { - // TODO: test TaskGraphNode - } - - /** - * Test the property 'clientNodeId' - */ - @Test - public void clientNodeIdTest() { - // TODO: test clientNodeId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'dependsOn' - */ - @Test - public void dependsOnTest() { - // TODO: test dependsOn - } - - /** - * Test the property 'arrayNode' - */ - @Test - public void arrayNodeTest() { - // TODO: test arrayNode - } - - /** - * Test the property 'inputNode' - */ - @Test - public void inputNodeTest() { - // TODO: test inputNode - } - - /** - * Test the property 'sqlNode' - */ - @Test - public void sqlNodeTest() { - // TODO: test sqlNode - } - - /** - * Test the property 'udfNode' - */ - @Test - public void udfNodeTest() { - // TODO: test udfNode - } - - /** - * Test the property 'retryStrategy' - */ - @Test - public void retryStrategyTest() { - // TODO: test retryStrategy - } - - /** - * Test the property 'expandNodeOutput' - */ - @Test - public void expandNodeOutputTest() { - // TODO: test expandNodeOutput - } - - /** - * Test the property 'deadline' - */ - @Test - public void deadlineTest() { - // TODO: test deadline - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java deleted file mode 100644 index 1c4366c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraphActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphSharing - */ -public class TaskGraphSharingTest { - private final TaskGraphSharing model = new TaskGraphSharing(); - - /** - * Model tests for TaskGraphSharing - */ - @Test - public void testTaskGraphSharing() { - // TODO: test TaskGraphSharing - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'namespaceType' - */ - @Test - public void namespaceTypeTest() { - // TODO: test namespaceType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java deleted file mode 100644 index 4b31500..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.RetryStrategy; -import io.tiledb.cloud.rest_api.model.TaskGraphNode; -import io.tiledb.cloud.rest_api.model.TaskGraphType; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraph - */ -public class TaskGraphTest { - private final TaskGraph model = new TaskGraph(); - - /** - * Model tests for TaskGraph - */ - @Test - public void testTaskGraph() { - // TODO: test TaskGraph - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'nodes' - */ - @Test - public void nodesTest() { - // TODO: test nodes - } - - /** - * Test the property 'parallelism' - */ - @Test - public void parallelismTest() { - // TODO: test parallelism - } - - /** - * Test the property 'retryStrategy' - */ - @Test - public void retryStrategyTest() { - // TODO: test retryStrategy - } - - /** - * Test the property 'deadline' - */ - @Test - public void deadlineTest() { - // TODO: test deadline - } - - /** - * Test the property 'taskGraphType' - */ - @Test - public void taskGraphTypeTest() { - // TODO: test taskGraphType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java deleted file mode 100644 index e50f617..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphType - */ -public class TaskGraphTypeTest { - /** - * Model tests for TaskGraphType - */ - @Test - public void testTaskGraphType() { - // TODO: test TaskGraphType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java deleted file mode 100644 index c23168b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TaskGraph; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TaskGraphs - */ -public class TaskGraphsTest { - private final TaskGraphs model = new TaskGraphs(); - - /** - * Model tests for TaskGraphs - */ - @Test - public void testTaskGraphs() { - // TODO: test TaskGraphs - } - - /** - * Test the property 'graphs' - */ - @Test - public void graphsTest() { - // TODO: test graphs - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java deleted file mode 100644 index 9e6a32a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TileDBConfigEntriesInner - */ -public class TileDBConfigEntriesInnerTest { - private final TileDBConfigEntriesInner model = new TileDBConfigEntriesInner(); - - /** - * Model tests for TileDBConfigEntriesInner - */ - @Test - public void testTileDBConfigEntriesInner() { - // TODO: test TileDBConfigEntriesInner - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java deleted file mode 100644 index ac32736..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TileDBConfigEntriesInner; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TileDBConfig - */ -public class TileDBConfigTest { - private final TileDBConfig model = new TileDBConfig(); - - /** - * Model tests for TileDBConfig - */ - @Test - public void testTileDBConfig() { - // TODO: test TileDBConfig - } - - /** - * Test the property 'entries' - */ - @Test - public void entriesTest() { - // TODO: test entries - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java deleted file mode 100644 index 9277524..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TokenScope; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TokenRequest - */ -public class TokenRequestTest { - private final TokenRequest model = new TokenRequest(); - - /** - * Model tests for TokenRequest - */ - @Test - public void testTokenRequest() { - // TODO: test TokenRequest - } - - /** - * Test the property 'expires' - */ - @Test - public void expiresTest() { - // TODO: test expires - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'scope' - */ - @Test - public void scopeTest() { - // TODO: test scope - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java deleted file mode 100644 index 6750521..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TokenScope - */ -public class TokenScopeTest { - /** - * Model tests for TokenScope - */ - @Test - public void testTokenScope() { - // TODO: test TokenScope - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java deleted file mode 100644 index c4335dc..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.TokenScope; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Token - */ -public class TokenTest { - private final Token model = new Token(); - - /** - * Model tests for Token - */ - @Test - public void testToken() { - // TODO: test Token - } - - /** - * Test the property 'token' - */ - @Test - public void tokenTest() { - // TODO: test token - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'issuedAt' - */ - @Test - public void issuedAtTest() { - // TODO: test issuedAt - } - - /** - * Test the property 'expiresAt' - */ - @Test - public void expiresAtTest() { - // TODO: test expiresAt - } - - /** - * Test the property 'scope' - */ - @Test - public void scopeTest() { - // TODO: test scope - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java deleted file mode 100644 index e5d8ee8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFActions - */ -public class UDFActionsTest { - /** - * Model tests for UDFActions - */ - @Test - public void testUDFActions() { - // TODO: test UDFActions - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java deleted file mode 100644 index 8b688b5..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.QueryRanges; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFArrayDetails - */ -public class UDFArrayDetailsTest { - private final UDFArrayDetails model = new UDFArrayDetails(); - - /** - * Model tests for UDFArrayDetails - */ - @Test - public void testUDFArrayDetails() { - // TODO: test UDFArrayDetails - } - - /** - * Test the property 'parameterId' - */ - @Test - public void parameterIdTest() { - // TODO: test parameterId - } - - /** - * Test the property 'uri' - */ - @Test - public void uriTest() { - // TODO: test uri - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - - /** - * Test the property 'buffers' - */ - @Test - public void buffersTest() { - // TODO: test buffers - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java deleted file mode 100644 index d10d7c0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFCopied - */ -public class UDFCopiedTest { - private final UDFCopied model = new UDFCopied(); - - /** - * Model tests for UDFCopied - */ - @Test - public void testUDFCopied() { - // TODO: test UDFCopied - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java deleted file mode 100644 index 2f6f82b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFCopy - */ -public class UDFCopyTest { - private final UDFCopy model = new UDFCopy(); - - /** - * Model tests for UDFCopy - */ - @Test - public void testUDFCopy() { - // TODO: test UDFCopy - } - - /** - * Test the property 'outputUri' - */ - @Test - public void outputUriTest() { - // TODO: test outputUri - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java deleted file mode 100644 index 42b8c70..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFFavorite - */ -public class UDFFavoriteTest { - private final UDFFavorite model = new UDFFavorite(); - - /** - * Model tests for UDFFavorite - */ - @Test - public void testUDFFavorite() { - // TODO: test UDFFavorite - } - - /** - * Test the property 'udfUuid' - */ - @Test - public void udfUuidTest() { - // TODO: test udfUuid - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java deleted file mode 100644 index abda37f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFFavoritesData - */ -public class UDFFavoritesDataTest { - private final UDFFavoritesData model = new UDFFavoritesData(); - - /** - * Model tests for UDFFavoritesData - */ - @Test - public void testUDFFavoritesData() { - // TODO: test UDFFavoritesData - } - - /** - * Test the property 'udfs' - */ - @Test - public void udfsTest() { - // TODO: test udfs - } - - /** - * Test the property 'paginationMetadata' - */ - @Test - public void paginationMetadataTest() { - // TODO: test paginationMetadata - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java deleted file mode 100644 index 6a5ec44..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFImage - */ -public class UDFImageTest { - private final UDFImage model = new UDFImage(); - - /** - * Model tests for UDFImage - */ - @Test - public void testUDFImage() { - // TODO: test UDFImage - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'language' - */ - @Test - public void languageTest() { - // TODO: test language - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java deleted file mode 100644 index 71fcd4c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFImageVersion - */ -public class UDFImageVersionTest { - private final UDFImageVersion model = new UDFImageVersion(); - - /** - * Model tests for UDFImageVersion - */ - @Test - public void testUDFImageVersion() { - // TODO: test UDFImageVersion - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'udfImageUuid' - */ - @Test - public void udfImageUuidTest() { - // TODO: test udfImageUuid - } - - /** - * Test the property 'dockerImage' - */ - @Test - public void dockerImageTest() { - // TODO: test dockerImage - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property '_default' - */ - @Test - public void _defaultTest() { - // TODO: test _default - } - - /** - * Test the property 'latest' - */ - @Test - public void latestTest() { - // TODO: test latest - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java deleted file mode 100644 index d4a6e91..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import io.tiledb.cloud.rest_api.model.UDFType; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFInfo - */ -public class UDFInfoTest { - private final UDFInfo model = new UDFInfo(); - - /** - * Model tests for UDFInfo - */ - @Test - public void testUDFInfo() { - // TODO: test UDFInfo - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'language' - */ - @Test - public void languageTest() { - // TODO: test language - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'readme' - */ - @Test - public void readmeTest() { - // TODO: test readme - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java deleted file mode 100644 index d16291a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFLanguage; -import io.tiledb.cloud.rest_api.model.UDFType; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFInfoUpdate - */ -public class UDFInfoUpdateTest { - private final UDFInfoUpdate model = new UDFInfoUpdate(); - - /** - * Model tests for UDFInfoUpdate - */ - @Test - public void testUDFInfoUpdate() { - // TODO: test UDFInfoUpdate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'language' - */ - @Test - public void languageTest() { - // TODO: test language - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'imageName' - */ - @Test - public void imageNameTest() { - // TODO: test imageName - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'exec' - */ - @Test - public void execTest() { - // TODO: test exec - } - - /** - * Test the property 'execRaw' - */ - @Test - public void execRawTest() { - // TODO: test execRaw - } - - /** - * Test the property 'readme' - */ - @Test - public void readmeTest() { - // TODO: test readme - } - - /** - * Test the property 'licenseId' - */ - @Test - public void licenseIdTest() { - // TODO: test licenseId - } - - /** - * Test the property 'licenseText' - */ - @Test - public void licenseTextTest() { - // TODO: test licenseText - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java deleted file mode 100644 index 8aca766..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFLanguage - */ -public class UDFLanguageTest { - /** - * Model tests for UDFLanguage - */ - @Test - public void testUDFLanguage() { - // TODO: test UDFLanguage - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java deleted file mode 100644 index 2d945d0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.UDFActions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFSharing - */ -public class UDFSharingTest { - private final UDFSharing model = new UDFSharing(); - - /** - * Model tests for UDFSharing - */ - @Test - public void testUDFSharing() { - // TODO: test UDFSharing - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'namespaceType' - */ - @Test - public void namespaceTypeTest() { - // TODO: test namespaceType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java deleted file mode 100644 index befdd55..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DimensionCoordinate; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFSubarrayRange - */ -public class UDFSubarrayRangeTest { - private final UDFSubarrayRange model = new UDFSubarrayRange(); - - /** - * Model tests for UDFSubarrayRange - */ - @Test - public void testUDFSubarrayRange() { - // TODO: test UDFSubarrayRange - } - - /** - * Test the property 'dimensionId' - */ - @Test - public void dimensionIdTest() { - // TODO: test dimensionId - } - - /** - * Test the property 'rangeStart' - */ - @Test - public void rangeStartTest() { - // TODO: test rangeStart - } - - /** - * Test the property 'rangeEnd' - */ - @Test - public void rangeEndTest() { - // TODO: test rangeEnd - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java deleted file mode 100644 index 889f74f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.Layout; -import io.tiledb.cloud.rest_api.model.UDFSubarrayRange; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFSubarray - */ -public class UDFSubarrayTest { - private final UDFSubarray model = new UDFSubarray(); - - /** - * Model tests for UDFSubarray - */ - @Test - public void testUDFSubarray() { - // TODO: test UDFSubarray - } - - /** - * Test the property 'layout' - */ - @Test - public void layoutTest() { - // TODO: test layout - } - - /** - * Test the property 'ranges' - */ - @Test - public void rangesTest() { - // TODO: test ranges - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java deleted file mode 100644 index bac3003..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UDFType - */ -public class UDFTypeTest { - /** - * Model tests for UDFType - */ - @Test - public void testUDFType() { - // TODO: test UDFType - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java deleted file mode 100644 index e53fbfe..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.AssetLocations; -import io.tiledb.cloud.rest_api.model.NamespaceActions; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for User - */ -public class UserTest { - private final User model = new User(); - - /** - * Model tests for User - */ - @Test - public void testUser() { - // TODO: test User - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } - - /** - * Test the property 'isValidEmail' - */ - @Test - public void isValidEmailTest() { - // TODO: test isValidEmail - } - - /** - * Test the property 'stripeConnect' - */ - @Test - public void stripeConnectTest() { - // TODO: test stripeConnect - } - - /** - * Test the property 'company' - */ - @Test - public void companyTest() { - // TODO: test company - } - - /** - * Test the property 'logo' - */ - @Test - public void logoTest() { - // TODO: test logo - } - - /** - * Test the property 'timezone' - */ - @Test - public void timezoneTest() { - // TODO: test timezone - } - - /** - * Test the property 'organizations' - */ - @Test - public void organizationsTest() { - // TODO: test organizations - } - - /** - * Test the property 'allowedActions' - */ - @Test - public void allowedActionsTest() { - // TODO: test allowedActions - } - - /** - * Test the property 'enabledFeatures' - */ - @Test - public void enabledFeaturesTest() { - // TODO: test enabledFeatures - } - - /** - * Test the property 'unpaidSubscription' - */ - @Test - public void unpaidSubscriptionTest() { - // TODO: test unpaidSubscription - } - - /** - * Test the property 'defaultS3Path' - */ - @Test - public void defaultS3PathTest() { - // TODO: test defaultS3Path - } - - /** - * Test the property 'defaultS3PathCredentialsName' - */ - @Test - public void defaultS3PathCredentialsNameTest() { - // TODO: test defaultS3PathCredentialsName - } - - /** - * Test the property 'assetLocations' - */ - @Test - public void assetLocationsTest() { - // TODO: test assetLocations - } - - /** - * Test the property 'defaultNamespaceCharged' - */ - @Test - public void defaultNamespaceChargedTest() { - // TODO: test defaultNamespaceCharged - } - - /** - * Test the property 'defaultRegion' - */ - @Test - public void defaultRegionTest() { - // TODO: test defaultRegion - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java deleted file mode 100644 index 35521a4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.17.51 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.tiledb.cloud.rest_api.model.DomainArray; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Writer - */ -public class WriterTest { - private final Writer model = new Writer(); - - /** - * Model tests for Writer - */ - @Test - public void testWriter() { - // TODO: test Writer - } - - /** - * Test the property 'checkCoordDups' - */ - @Test - public void checkCoordDupsTest() { - // TODO: test checkCoordDups - } - - /** - * Test the property 'checkCoordOOB' - */ - @Test - public void checkCoordOOBTest() { - // TODO: test checkCoordOOB - } - - /** - * Test the property 'dedupCoords' - */ - @Test - public void dedupCoordsTest() { - // TODO: test dedupCoords - } - - /** - * Test the property 'subarray' - */ - @Test - public void subarrayTest() { - // TODO: test subarray - } - -} From a8f1f0443812be70d70e250937164976111c823f Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Thu, 8 May 2025 22:30:38 +0300 Subject: [PATCH 03/15] update examples --- src/main/java/examples/Examples.java | 376 +++++---------------------- 1 file changed, 64 insertions(+), 312 deletions(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 18a7442..7615b1a 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -1,10 +1,11 @@ package examples; // Import classes: -import io.tiledb.cloud.*; +import io.tiledb.cloud.Pair; +import io.tiledb.cloud.TileDBClient; +import io.tiledb.cloud.TileDBLogin; import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.api.GroupsApi; -import io.tiledb.cloud.rest_api.api.ArrayApi; +import io.tiledb.cloud.rest_api.api.TaskGraphsApi; import io.tiledb.cloud.rest_api.model.*; import org.apache.arrow.vector.ValueVector; @@ -19,16 +20,18 @@ public class Examples { public static void main(String[] args) throws ApiException { + String token = ""; + String URL = ""; // if using cloud for the first time create the client with a Login object to pass your credentials. TileDBClient tileDBClient = new TileDBClient( new TileDBLogin(null, null, - System.getenv("API_TOKEN"), + token, + false, true, true, - true, - "https://api.tiledb.com")); + URL)); // If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need // to pass any credentials from now on. Just create the client as follows: @@ -36,316 +39,65 @@ public static void main(String[] args) throws ApiException { tileDBClient.setDebugging(true); -// Uncomment to run whichever example you want - runGenericUDF(tileDBClient); - runArrayUDF(tileDBClient); - runMultiArrayUDF(tileDBClient); - getArray(tileDBClient); -// createArray(tileDBClient); -// registerArray(tileDBClient); - listArrays(tileDBClient); - listGroups(tileDBClient); -// deleteArray(tileDBClient); -// deregisterArray(tileDBClient); - runSQL(tileDBClient); - runSQLArrow(tileDBClient); - - } - - private static void runSQL(TileDBClient tileDBClient) { - SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); - System.out.println(tileDBSQL.exec()); - } - - private static void runSQLArrow(TileDBClient tileDBClient) { - SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); - Pair, Integer> a = tileDBSQL.execArrow(); - } - - /** - * Runs a generic UDF - * @param tileDBClient - */ - private static void runGenericUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); - GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("TileDB-Inc/args-udf"); - HashMap arguments = new HashMap<>(); - arguments.put("arg1", "a1"); - arguments.put("arg2", "a2"); - genericUDF.setArgument(serializeArgs(arguments)); - System.out.println(tileDBUDF.executeGeneric(genericUDF)); //could be JSON or Arrow - } - - /** - * Runs an array UDF on a TileDB Array - * @param tileDBClient - */ - public static void runArrayUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); - ArrayList range1 = new ArrayList<>(); - range1.add(BigDecimal.valueOf(1)); - range1.add(BigDecimal.valueOf(4)); - - ArrayList range2 = new ArrayList<>(); - range2.add(BigDecimal.valueOf(1)); - range2.add(BigDecimal.valueOf(4)); - - QueryRanges queryRanges = new QueryRanges(); - queryRanges.addRangesItem(range1); - queryRanges.addRangesItem(range2); - - HashMap argumentsForArrayUDF = new HashMap<>(); - argumentsForArrayUDF.put("attr", "rows"); - argumentsForArrayUDF.put("scale", 9); - - GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("TileDB-Inc/array-udf"); - genericUDF.setArgument(serializeArgs(argumentsForArrayUDF)); - - UDFArrayDetails array = new UDFArrayDetails(); - array.setUri("tiledb://TileDB-Inc/quickstart_sparse"); - - System.out.println(tileDBUDF.executeSingleArray(genericUDF, array, queryRanges, "unittest")); - } - - /** - * Runs a multi-array UDF on multiple TileDB arrays - * @param tileDBClient - */ - public static void runMultiArrayUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); - - ArrayList range1 = new ArrayList<>(); - range1.add(BigDecimal.valueOf(1)); - range1.add(BigDecimal.valueOf(4)); - - ArrayList range2 = new ArrayList<>(); - range2.add(BigDecimal.valueOf(1)); - range2.add(BigDecimal.valueOf(4)); - - QueryRanges queryRanges = new QueryRanges(); - queryRanges.addRangesItem(range1); - queryRanges.addRangesItem(range2); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setUdfInfoName("TileDB-Inc/multi-array-udf"); - - List arrays = new ArrayList<>(); - - //array1 - UDFArrayDetails array1 = new UDFArrayDetails(); - array1.setUri("tiledb://TileDB-Inc/quickstart_sparse"); - array1.setRanges(queryRanges); - array1.setBuffers(Arrays.asList("rows", "cols", "a")); - arrays.add(array1); - - //array2 - UDFArrayDetails array2 = new UDFArrayDetails(); - array2.setUri("tiledb://TileDB-Inc/quickstart_sparse-eu-west-2"); - array2.setRanges(queryRanges); - array2.setBuffers(Arrays.asList("rows", "cols", "a")); - arrays.add(array2); - - multiArrayUDF.setArrays(arrays); - - HashMap arguments = new HashMap<>(); - arguments.put("attr1", "a"); - arguments.put("attr2", "a"); - - multiArrayUDF.setArgument(serializeArgs(arguments)); - - System.out.println(tileDBUDF.executeMultiArray(multiArrayUDF)); - } - - /** - * Deregister an array - */ - private static void deregisterArray(TileDBClient tileDBClient) - { - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String array = ""; // String | name/uri of array that is url-encoded - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - try { - apiInstance.deregisterArray(namespace, array); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deregisterArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - /** - * Delete an array - */ - private static void deleteArray(TileDBClient tileDBClient) - { - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String array = ""; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - try { - apiInstance.deleteArray(namespace, array, contentType); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deleteArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - private static void listGroups(TileDBClient tileDBClient) - { - GroupsApi apiInstance = new GroupsApi(tileDBClient.getApiClient()); - Integer page = null; // Integer | pagination offset - Integer perPage = null; // Integer | pagination limit - String search = null; // String | search string that will look at name, namespace or description fields - String namespace = "unittest"; // String | namespace - String orderby = null; // String | sort by which field valid values include last_accessed, size, name - String permissions = null; // String | permissions valid values include read, read_write, write, admin - String groupType = "generic"; // String | filter by a specific group type - List tag = null; // List | tag to search for, more than one can be included - List excludeTag = null; // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = null; // String | search only the children of the groups with this uuid - Boolean withMetadata = false; - try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); - //or use api.listOwnedGroups(...) / api.listSharedGroups(...) - System.out.println(result.getGroups()); - } catch (ApiException e) { - 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(); - } - - } - - private static void listArrays(TileDBClient tileDBClient) - { - String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) - Boolean withMetadata = false; - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - - try { - List result = apiInstance.getArraysInNamespace(namespace, 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(); - } - } - - private static void getArray(TileDBClient tileDBClient){ - String namespace = "TileDB-Inc"; // String | namespace array is in (an organization name or user's username) - String array = "quickstart_sparse"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - - try { - ArraySchema result = apiInstance.getArray(namespace, array, contentType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - private static void createArray(TileDBClient tileDBClient){ - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String arrayName = "s3:///my_array"; // String | name/uri of array that is url-encoded // - String contentType = "application/json"; // String | Content Type of input and return mime - - Dimension d1 = new Dimension(); - - d1.setName("d1"); - - d1.setType(Datatype.INT64); - - DomainArray domainArray = new DomainArray(); - domainArray.addInt64Item(0L); - domainArray.addInt64Item(4L); - d1.setDomain(domainArray); - - DimensionTileExtent tileExtent = new DimensionTileExtent().int64(2L); - d1.setTileExtent(tileExtent); - d1.setNullTileExtent(false); - - // Create and set getDomain - Domain domain = new Domain(); - domain.setTileOrder(Layout.ROW_MAJOR); - domain.setCellOrder(Layout.ROW_MAJOR); - domain.setType(Datatype.INT64); - domain.addDimensionsItem(d1); - - // Create and add Attributes - Attribute a1 = new Attribute(); - a1.setName("a1"); - a1.setType(Datatype.INT32); - a1.setNullable(true); - - ArraySchema schema = new ArraySchema(); - schema.addVersionItem(10); - - FilterPipeline filterPipeline = new FilterPipeline(); - filterPipeline.addFiltersItem(new Filter().type(FilterType.ZSTD)); - - schema.setOffsetFilterPipeline(filterPipeline); - schema.setCoordsFilterPipeline(filterPipeline); + // If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need +// to pass any credentials from now on. Just create the client as follows: +// TileDBClient tileDBClient = new TileDBClient(); + tileDBClient.setDebugging(true); - schema.setDomain(domain); - schema.setCapacity(1000); - schema.addAttributesItem(a1); - schema.setArrayType(ArrayType.DENSE); - schema.setTileOrder(Layout.ROW_MAJOR); - schema.setCellOrder(Layout.ROW_MAJOR); - System.out.println(schema); +// runNextflowMethods(tileDBClient); - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - try { - apiInstance.createArray(namespace, arrayName, contentType, schema, null); - } 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 registerArray(TileDBClient tileDBClient){ - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String array = "s3:////"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array - arrayMetadata.setUri("s3:////"); - arrayMetadata.setName(""); - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - - try { - ArrayInfo result = apiInstance.registerArray(namespace, array, arrayMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#registerArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void runNextflowMethods(TileDBClient tileDBClient) throws ApiException { + String namespace = ""; + TaskGraphNode node = new TaskGraphNode(); + node.name("dstara"); + String uuid = "23be1141-e11a-4853-bf00-b5e5ec64315d"; + node.clientNodeId(uuid); + + // TODO: set retry strategy + node.retryStrategy(new RetryStrategy().limit(0)); + + // TODO: set timeout + // task.config.getTime() + + TGUDFNodeData nodeData = new TGUDFNodeData(); + + TGUDFArgument workDirArg = new TGUDFArgument(); + workDirArg.setName("workDirS3Path"); + workDirArg.setValue("s3://tiledb-dstara"); + nodeData.addArgumentsItem(workDirArg); + + TGUDFEnvironment environment = new TGUDFEnvironment(); + environment.setLanguage(UDFLanguage.NEXTFLOW); + environment.setImageName("debian:latest"); + environment.setAccessCredentialsName(""); + + TGUDFEnvironmentResources environmentResources = new TGUDFEnvironmentResources(); + environmentResources.setCpu("1"); +// environmentResources.setGpu(1); + environmentResources.setMemory("4Gi"); + environment.resources(environmentResources); + + //storage + TGUDFStorage storage = new TGUDFStorage(); + storage.setPath("/tmp"); + storage.setTiledbUri("tiledb:" + "" + "/" + ""); + List myStorageList = new ArrayList<>(); + myStorageList.add(storage); + environment.setStorage(myStorageList); + + nodeData.environment(environment); + node.setUdfNode(nodeData); + + + // Begin task graph + TaskGraph tg = new TaskGraph(); + tg.name("dstara"); + tg.addNodesItem(node); + TaskGraphsApi taskGraphsApi = new TaskGraphsApi(tileDBClient.getApiClient()); + TaskGraph res = taskGraphsApi.createTaskGraph(namespace, tg); + taskGraphsApi.submitTaskGraph(namespace, res.getUuid(), ""); } } From 51e26ff364535e4e1f3058eb522c845dbe29c65e Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Thu, 8 May 2025 23:54:27 +0300 Subject: [PATCH 04/15] use snapshot for pre-release version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8cb838c..beaee7e 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group 'io.tiledb' -version = '0.5.0' +version = '1.0.0-SNAPSHOT' repositories { mavenCentral() From 05a74c0ccb810d7e2449c67516177f16e894a704 Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Mon, 12 May 2025 23:52:24 +0300 Subject: [PATCH 05/15] fix FILES and remove some wrong checks --- .openapi-generator/FILES | 898 +++++++++--------- .../cloud/rest_api/model/ArrayTask.java | 70 -- .../cloud/rest_api/model/TaskGraphLog.java | 43 - .../rest_api/model/TaskGraphLogsData.java | 16 - .../cloud/rest_api/model/TaskGraphs.java | 12 - .../io/tiledb/cloud/rest_api/model/User.java | 57 -- 6 files changed, 448 insertions(+), 648 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 485dc25..c1588a2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -225,453 +225,451 @@ gradlew gradlew.bat pom.xml src/main/AndroidManifest.xml -src/main/java/org/openapitools/client/ApiCallback.java -src/main/java/org/openapitools/client/ApiClient.java -src/main/java/org/openapitools/client/ApiException.java -src/main/java/org/openapitools/client/ApiResponse.java -src/main/java/org/openapitools/client/Configuration.java -src/main/java/org/openapitools/client/GzipRequestInterceptor.java -src/main/java/org/openapitools/client/JSON.java -src/main/java/org/openapitools/client/Pair.java -src/main/java/org/openapitools/client/ProgressRequestBody.java -src/main/java/org/openapitools/client/ProgressResponseBody.java -src/main/java/org/openapitools/client/ServerConfiguration.java -src/main/java/org/openapitools/client/ServerVariable.java -src/main/java/org/openapitools/client/StringUtil.java -src/main/java/org/openapitools/client/api/ArrayApi.java -src/main/java/org/openapitools/client/api/ArrayTasksApi.java -src/main/java/org/openapitools/client/api/AssetsApi.java -src/main/java/org/openapitools/client/api/FavoritesApi.java -src/main/java/org/openapitools/client/api/FilesApi.java -src/main/java/org/openapitools/client/api/GroupsApi.java -src/main/java/org/openapitools/client/api/InvitationApi.java -src/main/java/org/openapitools/client/api/NotebookApi.java -src/main/java/org/openapitools/client/api/NotebooksApi.java -src/main/java/org/openapitools/client/api/OrganizationApi.java -src/main/java/org/openapitools/client/api/QueryApi.java -src/main/java/org/openapitools/client/api/RegisteredTaskGraphsApi.java -src/main/java/org/openapitools/client/api/SqlApi.java -src/main/java/org/openapitools/client/api/StatsApi.java -src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java -src/main/java/org/openapitools/client/api/TaskGraphsApi.java -src/main/java/org/openapitools/client/api/TasksApi.java -src/main/java/org/openapitools/client/api/UdfApi.java -src/main/java/org/openapitools/client/api/UserApi.java -src/main/java/org/openapitools/client/auth/ApiKeyAuth.java -src/main/java/org/openapitools/client/auth/Authentication.java -src/main/java/org/openapitools/client/auth/HttpBasicAuth.java -src/main/java/org/openapitools/client/auth/HttpBearerAuth.java -src/main/java/org/openapitools/client/auth/OAuth.java -src/main/java/org/openapitools/client/auth/OAuthFlow.java -src/main/java/org/openapitools/client/auth/OAuthOkHttpClient.java -src/main/java/org/openapitools/client/auth/RetryingOAuth.java -src/main/java/org/openapitools/client/model/AWSAccessCredentials.java -src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java -src/main/java/org/openapitools/client/model/ActivityEventType.java -src/main/java/org/openapitools/client/model/Array.java -src/main/java/org/openapitools/client/model/ArrayActions.java -src/main/java/org/openapitools/client/model/ArrayActivityLog.java -src/main/java/org/openapitools/client/model/ArrayBrowserData.java -src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java -src/main/java/org/openapitools/client/model/ArrayConsolidationRequest.java -src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java -src/main/java/org/openapitools/client/model/ArrayFavorite.java -src/main/java/org/openapitools/client/model/ArrayFavoritesData.java -src/main/java/org/openapitools/client/model/ArrayInfo.java -src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java -src/main/java/org/openapitools/client/model/ArrayMetadata.java -src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java -src/main/java/org/openapitools/client/model/ArraySample.java -src/main/java/org/openapitools/client/model/ArraySchema.java -src/main/java/org/openapitools/client/model/ArraySharing.java -src/main/java/org/openapitools/client/model/ArrayTask.java -src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java -src/main/java/org/openapitools/client/model/ArrayTaskData.java -src/main/java/org/openapitools/client/model/ArrayTaskLog.java -src/main/java/org/openapitools/client/model/ArrayTaskStatus.java -src/main/java/org/openapitools/client/model/ArrayTaskType.java -src/main/java/org/openapitools/client/model/ArrayType.java -src/main/java/org/openapitools/client/model/ArrayVacuumRequest.java -src/main/java/org/openapitools/client/model/AssetBackingType.java -src/main/java/org/openapitools/client/model/AssetInfo.java -src/main/java/org/openapitools/client/model/AssetListResponse.java -src/main/java/org/openapitools/client/model/AssetLocations.java -src/main/java/org/openapitools/client/model/AssetOwnershipLevel.java -src/main/java/org/openapitools/client/model/AssetType.java -src/main/java/org/openapitools/client/model/Attribute.java -src/main/java/org/openapitools/client/model/AttributeBufferHeader.java -src/main/java/org/openapitools/client/model/AttributeBufferSize.java -src/main/java/org/openapitools/client/model/Backoff.java -src/main/java/org/openapitools/client/model/ChangeAssetCredentialsRequest.java -src/main/java/org/openapitools/client/model/Datatype.java -src/main/java/org/openapitools/client/model/Dimension.java -src/main/java/org/openapitools/client/model/DimensionCoordinate.java -src/main/java/org/openapitools/client/model/DimensionTileExtent.java -src/main/java/org/openapitools/client/model/Domain.java -src/main/java/org/openapitools/client/model/DomainArray.java -src/main/java/org/openapitools/client/model/DomainCheckResult.java -src/main/java/org/openapitools/client/model/DomainCheckStatus.java -src/main/java/org/openapitools/client/model/DomainVerificationStatus.java -src/main/java/org/openapitools/client/model/Enumeration.java -src/main/java/org/openapitools/client/model/Error.java -src/main/java/org/openapitools/client/model/FileCreate.java -src/main/java/org/openapitools/client/model/FileCreated.java -src/main/java/org/openapitools/client/model/FileExport.java -src/main/java/org/openapitools/client/model/FileExported.java -src/main/java/org/openapitools/client/model/FilePropertyName.java -src/main/java/org/openapitools/client/model/FileType.java -src/main/java/org/openapitools/client/model/FileUploaded.java -src/main/java/org/openapitools/client/model/Filter.java -src/main/java/org/openapitools/client/model/FilterData.java -src/main/java/org/openapitools/client/model/FilterOption.java -src/main/java/org/openapitools/client/model/FilterPipeline.java -src/main/java/org/openapitools/client/model/FilterType.java -src/main/java/org/openapitools/client/model/FragmentInfo.java -src/main/java/org/openapitools/client/model/FragmentInfoRequest.java -src/main/java/org/openapitools/client/model/FragmentMetadata.java -src/main/java/org/openapitools/client/model/GenericUDF.java -src/main/java/org/openapitools/client/model/GetTiledbStats200Response.java -src/main/java/org/openapitools/client/model/GroupActions.java -src/main/java/org/openapitools/client/model/GroupBrowserData.java -src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java -src/main/java/org/openapitools/client/model/GroupChanges.java -src/main/java/org/openapitools/client/model/GroupContentActivity.java -src/main/java/org/openapitools/client/model/GroupContentActivityAsset.java -src/main/java/org/openapitools/client/model/GroupContentActivityResponse.java -src/main/java/org/openapitools/client/model/GroupContents.java -src/main/java/org/openapitools/client/model/GroupContentsFilterData.java -src/main/java/org/openapitools/client/model/GroupCreate.java -src/main/java/org/openapitools/client/model/GroupEntry.java -src/main/java/org/openapitools/client/model/GroupInfo.java -src/main/java/org/openapitools/client/model/GroupMember.java -src/main/java/org/openapitools/client/model/GroupMemberAssetType.java -src/main/java/org/openapitools/client/model/GroupMemberType.java -src/main/java/org/openapitools/client/model/GroupRegister.java -src/main/java/org/openapitools/client/model/GroupSharing.java -src/main/java/org/openapitools/client/model/GroupSharingRequest.java -src/main/java/org/openapitools/client/model/GroupType.java -src/main/java/org/openapitools/client/model/GroupTypeMetadataKey.java -src/main/java/org/openapitools/client/model/GroupUpdate.java -src/main/java/org/openapitools/client/model/Invitation.java -src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java -src/main/java/org/openapitools/client/model/InvitationData.java -src/main/java/org/openapitools/client/model/InvitationFailedRecipients.java -src/main/java/org/openapitools/client/model/InvitationGroupShareEmail.java -src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java -src/main/java/org/openapitools/client/model/InvitationStatus.java -src/main/java/org/openapitools/client/model/InvitationType.java -src/main/java/org/openapitools/client/model/LastAccessedArray.java -src/main/java/org/openapitools/client/model/Layout.java -src/main/java/org/openapitools/client/model/LoadArraySchemaRequest.java -src/main/java/org/openapitools/client/model/LoadArraySchemaResponse.java -src/main/java/org/openapitools/client/model/LoadEnumerationsRequest.java -src/main/java/org/openapitools/client/model/LoadEnumerationsResponse.java -src/main/java/org/openapitools/client/model/MLModelFavorite.java -src/main/java/org/openapitools/client/model/MLModelFavoritesData.java -src/main/java/org/openapitools/client/model/MaxBufferSizes.java -src/main/java/org/openapitools/client/model/MetadataStringified.java -src/main/java/org/openapitools/client/model/MetadataStringifiedEntry.java -src/main/java/org/openapitools/client/model/MultiArrayUDF.java -src/main/java/org/openapitools/client/model/NamespaceActions.java -src/main/java/org/openapitools/client/model/NonEmptyDomain.java -src/main/java/org/openapitools/client/model/NotebookCopied.java -src/main/java/org/openapitools/client/model/NotebookCopy.java -src/main/java/org/openapitools/client/model/NotebookFavorite.java -src/main/java/org/openapitools/client/model/NotebookFavoritesData.java -src/main/java/org/openapitools/client/model/NotebookStatus.java -src/main/java/org/openapitools/client/model/Organization.java -src/main/java/org/openapitools/client/model/OrganizationRoles.java -src/main/java/org/openapitools/client/model/OrganizationUpdate.java -src/main/java/org/openapitools/client/model/OrganizationUser.java -src/main/java/org/openapitools/client/model/PaginationMetadata.java -src/main/java/org/openapitools/client/model/PodStatus.java -src/main/java/org/openapitools/client/model/Pricing.java -src/main/java/org/openapitools/client/model/PricingAggregateUsage.java -src/main/java/org/openapitools/client/model/PricingCurrency.java -src/main/java/org/openapitools/client/model/PricingInterval.java -src/main/java/org/openapitools/client/model/PricingType.java -src/main/java/org/openapitools/client/model/PricingUnitLabel.java -src/main/java/org/openapitools/client/model/PublicShareFilter.java -src/main/java/org/openapitools/client/model/Query.java -src/main/java/org/openapitools/client/model/QueryJson.java -src/main/java/org/openapitools/client/model/QueryRanges.java -src/main/java/org/openapitools/client/model/QueryReader.java -src/main/java/org/openapitools/client/model/Querystatus.java -src/main/java/org/openapitools/client/model/Querytype.java -src/main/java/org/openapitools/client/model/ReadState.java -src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java -src/main/java/org/openapitools/client/model/ResetUserPasswordRequest.java -src/main/java/org/openapitools/client/model/ResultFormat.java -src/main/java/org/openapitools/client/model/RetryPolicy.java -src/main/java/org/openapitools/client/model/RetryStrategy.java -src/main/java/org/openapitools/client/model/SQLParameters.java -src/main/java/org/openapitools/client/model/SSODomainConfig.java -src/main/java/org/openapitools/client/model/SSODomainConfigResponse.java -src/main/java/org/openapitools/client/model/SSODomainSetup.java -src/main/java/org/openapitools/client/model/SSOProvider.java -src/main/java/org/openapitools/client/model/SharePaymentRequest.java -src/main/java/org/openapitools/client/model/SingleFragmentInfo.java -src/main/java/org/openapitools/client/model/StorageLocation.java -src/main/java/org/openapitools/client/model/Subarray.java -src/main/java/org/openapitools/client/model/SubarrayPartitioner.java -src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java -src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java -src/main/java/org/openapitools/client/model/SubarrayRanges.java -src/main/java/org/openapitools/client/model/Subscription.java -src/main/java/org/openapitools/client/model/TGArrayNodeData.java -src/main/java/org/openapitools/client/model/TGInputNodeData.java -src/main/java/org/openapitools/client/model/TGQueryRanges.java -src/main/java/org/openapitools/client/model/TGSQLNodeData.java -src/main/java/org/openapitools/client/model/TGUDFArgument.java -src/main/java/org/openapitools/client/model/TGUDFEnvironment.java -src/main/java/org/openapitools/client/model/TGUDFEnvironmentResources.java -src/main/java/org/openapitools/client/model/TGUDFNodeData.java -src/main/java/org/openapitools/client/model/TGUDFStorage.java -src/main/java/org/openapitools/client/model/TaskGraph.java -src/main/java/org/openapitools/client/model/TaskGraphActions.java -src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java -src/main/java/org/openapitools/client/model/TaskGraphLog.java -src/main/java/org/openapitools/client/model/TaskGraphLogRunLocation.java -src/main/java/org/openapitools/client/model/TaskGraphLogStatus.java -src/main/java/org/openapitools/client/model/TaskGraphLogsData.java -src/main/java/org/openapitools/client/model/TaskGraphNode.java -src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java -src/main/java/org/openapitools/client/model/TaskGraphSharing.java -src/main/java/org/openapitools/client/model/TaskGraphType.java -src/main/java/org/openapitools/client/model/TaskGraphs.java -src/main/java/org/openapitools/client/model/TileDBConfig.java -src/main/java/org/openapitools/client/model/TileDBConfigEntriesInner.java -src/main/java/org/openapitools/client/model/Token.java -src/main/java/org/openapitools/client/model/TokenRequest.java -src/main/java/org/openapitools/client/model/TokenScope.java -src/main/java/org/openapitools/client/model/UDFActions.java -src/main/java/org/openapitools/client/model/UDFArrayDetails.java -src/main/java/org/openapitools/client/model/UDFCopied.java -src/main/java/org/openapitools/client/model/UDFCopy.java -src/main/java/org/openapitools/client/model/UDFFavorite.java -src/main/java/org/openapitools/client/model/UDFFavoritesData.java -src/main/java/org/openapitools/client/model/UDFImage.java -src/main/java/org/openapitools/client/model/UDFImageVersion.java -src/main/java/org/openapitools/client/model/UDFInfo.java -src/main/java/org/openapitools/client/model/UDFInfoUpdate.java -src/main/java/org/openapitools/client/model/UDFLanguage.java -src/main/java/org/openapitools/client/model/UDFSharing.java -src/main/java/org/openapitools/client/model/UDFSubarray.java -src/main/java/org/openapitools/client/model/UDFSubarrayRange.java -src/main/java/org/openapitools/client/model/UDFType.java -src/main/java/org/openapitools/client/model/User.java -src/main/java/org/openapitools/client/model/Writer.java -src/test/java/org/openapitools/client/api/ArrayApiTest.java -src/test/java/org/openapitools/client/api/ArrayTasksApiTest.java -src/test/java/org/openapitools/client/api/AssetsApiTest.java -src/test/java/org/openapitools/client/api/FavoritesApiTest.java -src/test/java/org/openapitools/client/api/FilesApiTest.java -src/test/java/org/openapitools/client/api/GroupsApiTest.java -src/test/java/org/openapitools/client/api/InvitationApiTest.java -src/test/java/org/openapitools/client/api/NotebookApiTest.java -src/test/java/org/openapitools/client/api/NotebooksApiTest.java -src/test/java/org/openapitools/client/api/OrganizationApiTest.java -src/test/java/org/openapitools/client/api/QueryApiTest.java -src/test/java/org/openapitools/client/api/RegisteredTaskGraphsApiTest.java -src/test/java/org/openapitools/client/api/SqlApiTest.java -src/test/java/org/openapitools/client/api/StatsApiTest.java -src/test/java/org/openapitools/client/api/TaskGraphLogsApiTest.java -src/test/java/org/openapitools/client/api/TaskGraphsApiTest.java -src/test/java/org/openapitools/client/api/TasksApiTest.java -src/test/java/org/openapitools/client/api/UdfApiTest.java -src/test/java/org/openapitools/client/api/UserApiTest.java -src/test/java/org/openapitools/client/model/AWSAccessCredentialsTest.java -src/test/java/org/openapitools/client/model/ActivityEventTypeTest.java -src/test/java/org/openapitools/client/model/ArrayActionsTest.java -src/test/java/org/openapitools/client/model/ArrayActivityLogTest.java -src/test/java/org/openapitools/client/model/ArrayBrowserDataTest.java -src/test/java/org/openapitools/client/model/ArrayBrowserSidebarTest.java -src/test/java/org/openapitools/client/model/ArrayConsolidationRequestTest.java -src/test/java/org/openapitools/client/model/ArrayEndTimestampDataTest.java -src/test/java/org/openapitools/client/model/ArrayFavoriteTest.java -src/test/java/org/openapitools/client/model/ArrayFavoritesDataTest.java -src/test/java/org/openapitools/client/model/ArrayInfoTest.java -src/test/java/org/openapitools/client/model/ArrayInfoUpdateTest.java -src/test/java/org/openapitools/client/model/ArrayMetadataEntryTest.java -src/test/java/org/openapitools/client/model/ArrayMetadataTest.java -src/test/java/org/openapitools/client/model/ArraySampleTest.java -src/test/java/org/openapitools/client/model/ArraySchemaTest.java -src/test/java/org/openapitools/client/model/ArraySharingTest.java -src/test/java/org/openapitools/client/model/ArrayTaskBrowserSidebarTest.java -src/test/java/org/openapitools/client/model/ArrayTaskDataTest.java -src/test/java/org/openapitools/client/model/ArrayTaskLogTest.java -src/test/java/org/openapitools/client/model/ArrayTaskStatusTest.java -src/test/java/org/openapitools/client/model/ArrayTaskTest.java -src/test/java/org/openapitools/client/model/ArrayTaskTypeTest.java -src/test/java/org/openapitools/client/model/ArrayTest.java -src/test/java/org/openapitools/client/model/ArrayTypeTest.java -src/test/java/org/openapitools/client/model/ArrayVacuumRequestTest.java -src/test/java/org/openapitools/client/model/AssetBackingTypeTest.java -src/test/java/org/openapitools/client/model/AssetInfoTest.java -src/test/java/org/openapitools/client/model/AssetListResponseTest.java -src/test/java/org/openapitools/client/model/AssetLocationsTest.java -src/test/java/org/openapitools/client/model/AssetOwnershipLevelTest.java -src/test/java/org/openapitools/client/model/AssetTypeTest.java -src/test/java/org/openapitools/client/model/AttributeBufferHeaderTest.java -src/test/java/org/openapitools/client/model/AttributeBufferSizeTest.java -src/test/java/org/openapitools/client/model/AttributeTest.java -src/test/java/org/openapitools/client/model/BackoffTest.java -src/test/java/org/openapitools/client/model/ChangeAssetCredentialsRequestTest.java -src/test/java/org/openapitools/client/model/DatatypeTest.java -src/test/java/org/openapitools/client/model/DimensionCoordinateTest.java -src/test/java/org/openapitools/client/model/DimensionTest.java -src/test/java/org/openapitools/client/model/DimensionTileExtentTest.java -src/test/java/org/openapitools/client/model/DomainArrayTest.java -src/test/java/org/openapitools/client/model/DomainCheckResultTest.java -src/test/java/org/openapitools/client/model/DomainCheckStatusTest.java -src/test/java/org/openapitools/client/model/DomainTest.java -src/test/java/org/openapitools/client/model/DomainVerificationStatusTest.java -src/test/java/org/openapitools/client/model/EnumerationTest.java -src/test/java/org/openapitools/client/model/ErrorTest.java -src/test/java/org/openapitools/client/model/FileCreateTest.java -src/test/java/org/openapitools/client/model/FileCreatedTest.java -src/test/java/org/openapitools/client/model/FileExportTest.java -src/test/java/org/openapitools/client/model/FileExportedTest.java -src/test/java/org/openapitools/client/model/FilePropertyNameTest.java -src/test/java/org/openapitools/client/model/FileTypeTest.java -src/test/java/org/openapitools/client/model/FileUploadedTest.java -src/test/java/org/openapitools/client/model/FilterDataTest.java -src/test/java/org/openapitools/client/model/FilterOptionTest.java -src/test/java/org/openapitools/client/model/FilterPipelineTest.java -src/test/java/org/openapitools/client/model/FilterTest.java -src/test/java/org/openapitools/client/model/FilterTypeTest.java -src/test/java/org/openapitools/client/model/FragmentInfoRequestTest.java -src/test/java/org/openapitools/client/model/FragmentInfoTest.java -src/test/java/org/openapitools/client/model/FragmentMetadataTest.java -src/test/java/org/openapitools/client/model/GenericUDFTest.java -src/test/java/org/openapitools/client/model/GetTiledbStats200ResponseTest.java -src/test/java/org/openapitools/client/model/GroupActionsTest.java -src/test/java/org/openapitools/client/model/GroupBrowserDataTest.java -src/test/java/org/openapitools/client/model/GroupBrowserFilterDataTest.java -src/test/java/org/openapitools/client/model/GroupChangesTest.java -src/test/java/org/openapitools/client/model/GroupContentActivityAssetTest.java -src/test/java/org/openapitools/client/model/GroupContentActivityResponseTest.java -src/test/java/org/openapitools/client/model/GroupContentActivityTest.java -src/test/java/org/openapitools/client/model/GroupContentsFilterDataTest.java -src/test/java/org/openapitools/client/model/GroupContentsTest.java -src/test/java/org/openapitools/client/model/GroupCreateTest.java -src/test/java/org/openapitools/client/model/GroupEntryTest.java -src/test/java/org/openapitools/client/model/GroupInfoTest.java -src/test/java/org/openapitools/client/model/GroupMemberAssetTypeTest.java -src/test/java/org/openapitools/client/model/GroupMemberTest.java -src/test/java/org/openapitools/client/model/GroupMemberTypeTest.java -src/test/java/org/openapitools/client/model/GroupRegisterTest.java -src/test/java/org/openapitools/client/model/GroupSharingRequestTest.java -src/test/java/org/openapitools/client/model/GroupSharingTest.java -src/test/java/org/openapitools/client/model/GroupTypeMetadataKeyTest.java -src/test/java/org/openapitools/client/model/GroupTypeTest.java -src/test/java/org/openapitools/client/model/GroupUpdateTest.java -src/test/java/org/openapitools/client/model/InvitationArrayShareEmailTest.java -src/test/java/org/openapitools/client/model/InvitationDataTest.java -src/test/java/org/openapitools/client/model/InvitationFailedRecipientsTest.java -src/test/java/org/openapitools/client/model/InvitationGroupShareEmailTest.java -src/test/java/org/openapitools/client/model/InvitationOrganizationJoinEmailTest.java -src/test/java/org/openapitools/client/model/InvitationStatusTest.java -src/test/java/org/openapitools/client/model/InvitationTest.java -src/test/java/org/openapitools/client/model/InvitationTypeTest.java -src/test/java/org/openapitools/client/model/LastAccessedArrayTest.java -src/test/java/org/openapitools/client/model/LayoutTest.java -src/test/java/org/openapitools/client/model/LoadArraySchemaRequestTest.java -src/test/java/org/openapitools/client/model/LoadArraySchemaResponseTest.java -src/test/java/org/openapitools/client/model/LoadEnumerationsRequestTest.java -src/test/java/org/openapitools/client/model/LoadEnumerationsResponseTest.java -src/test/java/org/openapitools/client/model/MLModelFavoriteTest.java -src/test/java/org/openapitools/client/model/MLModelFavoritesDataTest.java -src/test/java/org/openapitools/client/model/MaxBufferSizesTest.java -src/test/java/org/openapitools/client/model/MetadataStringifiedEntryTest.java -src/test/java/org/openapitools/client/model/MetadataStringifiedTest.java -src/test/java/org/openapitools/client/model/MultiArrayUDFTest.java -src/test/java/org/openapitools/client/model/NamespaceActionsTest.java -src/test/java/org/openapitools/client/model/NonEmptyDomainTest.java -src/test/java/org/openapitools/client/model/NotebookCopiedTest.java -src/test/java/org/openapitools/client/model/NotebookCopyTest.java -src/test/java/org/openapitools/client/model/NotebookFavoriteTest.java -src/test/java/org/openapitools/client/model/NotebookFavoritesDataTest.java -src/test/java/org/openapitools/client/model/NotebookStatusTest.java -src/test/java/org/openapitools/client/model/OrganizationRolesTest.java -src/test/java/org/openapitools/client/model/OrganizationTest.java -src/test/java/org/openapitools/client/model/OrganizationUpdateTest.java -src/test/java/org/openapitools/client/model/OrganizationUserTest.java -src/test/java/org/openapitools/client/model/PaginationMetadataTest.java -src/test/java/org/openapitools/client/model/PodStatusTest.java -src/test/java/org/openapitools/client/model/PricingAggregateUsageTest.java -src/test/java/org/openapitools/client/model/PricingCurrencyTest.java -src/test/java/org/openapitools/client/model/PricingIntervalTest.java -src/test/java/org/openapitools/client/model/PricingTest.java -src/test/java/org/openapitools/client/model/PricingTypeTest.java -src/test/java/org/openapitools/client/model/PricingUnitLabelTest.java -src/test/java/org/openapitools/client/model/PublicShareFilterTest.java -src/test/java/org/openapitools/client/model/QueryJsonTest.java -src/test/java/org/openapitools/client/model/QueryRangesTest.java -src/test/java/org/openapitools/client/model/QueryReaderTest.java -src/test/java/org/openapitools/client/model/QueryTest.java -src/test/java/org/openapitools/client/model/QuerystatusTest.java -src/test/java/org/openapitools/client/model/QuerytypeTest.java -src/test/java/org/openapitools/client/model/ReadStateTest.java -src/test/java/org/openapitools/client/model/RegisteredTaskGraphTest.java -src/test/java/org/openapitools/client/model/ResetUserPasswordRequestTest.java -src/test/java/org/openapitools/client/model/ResultFormatTest.java -src/test/java/org/openapitools/client/model/RetryPolicyTest.java -src/test/java/org/openapitools/client/model/RetryStrategyTest.java -src/test/java/org/openapitools/client/model/SQLParametersTest.java -src/test/java/org/openapitools/client/model/SSODomainConfigResponseTest.java -src/test/java/org/openapitools/client/model/SSODomainConfigTest.java -src/test/java/org/openapitools/client/model/SSODomainSetupTest.java -src/test/java/org/openapitools/client/model/SSOProviderTest.java -src/test/java/org/openapitools/client/model/SharePaymentRequestTest.java -src/test/java/org/openapitools/client/model/SingleFragmentInfoTest.java -src/test/java/org/openapitools/client/model/StorageLocationTest.java -src/test/java/org/openapitools/client/model/SubarrayPartitionerCurrentTest.java -src/test/java/org/openapitools/client/model/SubarrayPartitionerStateTest.java -src/test/java/org/openapitools/client/model/SubarrayPartitionerTest.java -src/test/java/org/openapitools/client/model/SubarrayRangesTest.java -src/test/java/org/openapitools/client/model/SubarrayTest.java -src/test/java/org/openapitools/client/model/SubscriptionTest.java -src/test/java/org/openapitools/client/model/TGArrayNodeDataTest.java -src/test/java/org/openapitools/client/model/TGInputNodeDataTest.java -src/test/java/org/openapitools/client/model/TGQueryRangesTest.java -src/test/java/org/openapitools/client/model/TGSQLNodeDataTest.java -src/test/java/org/openapitools/client/model/TGUDFArgumentTest.java -src/test/java/org/openapitools/client/model/TGUDFEnvironmentResourcesTest.java -src/test/java/org/openapitools/client/model/TGUDFEnvironmentTest.java -src/test/java/org/openapitools/client/model/TGUDFNodeDataTest.java -src/test/java/org/openapitools/client/model/TGUDFStorageTest.java -src/test/java/org/openapitools/client/model/TaskGraphActionsTest.java -src/test/java/org/openapitools/client/model/TaskGraphClientNodeStatusTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogRunLocationTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogStatusTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogsDataTest.java -src/test/java/org/openapitools/client/model/TaskGraphNodeMetadataTest.java -src/test/java/org/openapitools/client/model/TaskGraphNodeTest.java -src/test/java/org/openapitools/client/model/TaskGraphSharingTest.java -src/test/java/org/openapitools/client/model/TaskGraphTest.java -src/test/java/org/openapitools/client/model/TaskGraphTypeTest.java -src/test/java/org/openapitools/client/model/TaskGraphsTest.java -src/test/java/org/openapitools/client/model/TileDBConfigEntriesInnerTest.java -src/test/java/org/openapitools/client/model/TileDBConfigTest.java -src/test/java/org/openapitools/client/model/TokenRequestTest.java -src/test/java/org/openapitools/client/model/TokenScopeTest.java -src/test/java/org/openapitools/client/model/TokenTest.java -src/test/java/org/openapitools/client/model/UDFActionsTest.java -src/test/java/org/openapitools/client/model/UDFArrayDetailsTest.java -src/test/java/org/openapitools/client/model/UDFCopiedTest.java -src/test/java/org/openapitools/client/model/UDFCopyTest.java -src/test/java/org/openapitools/client/model/UDFFavoriteTest.java -src/test/java/org/openapitools/client/model/UDFFavoritesDataTest.java -src/test/java/org/openapitools/client/model/UDFImageTest.java -src/test/java/org/openapitools/client/model/UDFImageVersionTest.java -src/test/java/org/openapitools/client/model/UDFInfoTest.java -src/test/java/org/openapitools/client/model/UDFInfoUpdateTest.java -src/test/java/org/openapitools/client/model/UDFLanguageTest.java -src/test/java/org/openapitools/client/model/UDFSharingTest.java -src/test/java/org/openapitools/client/model/UDFSubarrayRangeTest.java -src/test/java/org/openapitools/client/model/UDFSubarrayTest.java -src/test/java/org/openapitools/client/model/UDFTypeTest.java -src/test/java/org/openapitools/client/model/UserTest.java -src/test/java/org/openapitools/client/model/WriterTest.java +src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java +src/main/java/io/tiledb/cloud/rest_api/ApiClient.java +src/main/java/io/tiledb/cloud/rest_api/ApiException.java +src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java +src/main/java/io/tiledb/cloud/rest_api/Configuration.java +src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java +src/main/java/io/tiledb/cloud/rest_api/JSON.java +src/main/java/io/tiledb/cloud/rest_api/Pair.java +src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java +src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java +src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java +src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java +src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java +src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java +src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java +src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java +src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java +src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java +src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java +src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java +src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java +src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java +src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java +src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java +src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java +src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java +src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java +src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java +src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java +src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java +src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java +src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java +src/main/java/io/tiledb/cloud/rest_api/model/Array.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java +src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java +src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java +src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java +src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java +src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java +src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java +src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java +src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java +src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java +src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java +src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java +src/main/java/io/tiledb/cloud/rest_api/model/Domain.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java +src/main/java/io/tiledb/cloud/rest_api/model/Error.java +src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java +src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java +src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java +src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java +src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java +src/main/java/io/tiledb/cloud/rest_api/model/FileType.java +src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java +src/main/java/io/tiledb/cloud/rest_api/model/Filter.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java +src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java +src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java +src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java +src/main/java/io/tiledb/cloud/rest_api/model/Layout.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java +src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java +src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java +src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java +src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java +src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Organization.java +src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java +src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java +src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java +src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java +src/main/java/io/tiledb/cloud/rest_api/model/Query.java +src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java +src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java +src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java +src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java +src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java +src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java +src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java +src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java +src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java +src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java +src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java +src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java +src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java +src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java +src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java +src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java +src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java +src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java +src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java +src/main/java/io/tiledb/cloud/rest_api/model/Token.java +src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java +src/main/java/io/tiledb/cloud/rest_api/model/User.java +src/main/java/io/tiledb/cloud/rest_api/model/Writer.java +src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java +src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java +src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java index 724cead..9936150 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java @@ -1118,76 +1118,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTask is not found in the empty JSON string", ArrayTask.openapiRequiredFields.toString())); } } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `array_metadata` - if (jsonObj.getAsJsonObject("array_metadata") != null) { - ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array_metadata")); - } - // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); - } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if (jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); - } - if (jsonObj.get("udf_code") != null && !jsonObj.get("udf_code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `udf_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_code").toString())); - } - if (jsonObj.get("udf_language") != null && !jsonObj.get("udf_language").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `udf_language` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_language").toString())); - } - if (jsonObj.get("sql_query") != null && !jsonObj.get("sql_query").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sql_query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sql_query").toString())); - } - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - ArrayActivityLog.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); - }; - } - if (jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logs` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logs").toString())); - } - // ensure the json data is an array - if (jsonObj.get("sql_init_commands") != null && !jsonObj.get("sql_init_commands").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sql_init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("sql_init_commands").toString())); - } - // ensure the json data is an array - if (jsonObj.get("sql_parameters") != null && !jsonObj.get("sql_parameters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sql_parameters` to be an array in the JSON string but got `%s`", jsonObj.get("sql_parameters").toString())); - } - if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); - } - if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); - } - if (jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); - } - if (jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java index 43612b2..39d4943 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java @@ -759,49 +759,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLog is not found in the empty JSON string", TaskGraphLog.openapiRequiredFields.toString())); } } - if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); - } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if (jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("execution_time") != null && !jsonObj.get("execution_time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `execution_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("execution_time").toString())); - } - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNodeMetadata.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); - }; - } - if (jsonObj.get("task_graph_id") != null && !jsonObj.get("task_graph_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_id").toString())); - } - if (jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); - } - if (jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); - } - if (jsonObj.get("root_task_graph_uuid") != null && !jsonObj.get("root_task_graph_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `root_task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("root_task_graph_uuid").toString())); - } - // ensure the json data is an array - if (jsonObj.get("children_task_graph_uuids") != null && !jsonObj.get("children_task_graph_uuids").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `children_task_graph_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("children_task_graph_uuids").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java index 4abec9f..41c32ea 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java @@ -217,22 +217,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLogsData is not found in the empty JSON string", TaskGraphLogsData.openapiRequiredFields.toString())); } } - JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); - if (jsonArraytaskGraphLogs != null) { - // ensure the json data is an array - if (!jsonObj.get("task_graph_logs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); - } - - // validate the optional field `task_graph_logs` (array) - for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { - TaskGraphLog.validateJsonObject(jsonArraytaskGraphLogs.get(i).getAsJsonObject()); - }; - } - // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java index 1f2d407..eac77d3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java @@ -187,18 +187,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphs is not found in the empty JSON string", TaskGraphs.openapiRequiredFields.toString())); } } - JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); - if (jsonArraygraphs != null) { - // ensure the json data is an array - if (!jsonObj.get("graphs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `graphs` to be an array in the JSON string but got `%s`", jsonObj.get("graphs").toString())); - } - - // validate the optional field `graphs` (array) - for (int i = 0; i < jsonArraygraphs.size(); i++) { - TaskGraph.validateJsonObject(jsonArraygraphs.get(i).getAsJsonObject()); - }; - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/User.java b/src/main/java/io/tiledb/cloud/rest_api/model/User.java index d754678..7684a2d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/User.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/User.java @@ -719,63 +719,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if (jsonObj.get("password") != null && !jsonObj.get("password").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); - } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("email") != null && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } - if (jsonObj.get("company") != null && !jsonObj.get("company").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `company` to be a primitive type in the JSON string but got `%s`", jsonObj.get("company").toString())); - } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - if (jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); - } - JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); - if (jsonArrayorganizations != null) { - // ensure the json data is an array - if (!jsonObj.get("organizations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); - } - - // validate the optional field `organizations` (array) - for (int i = 0; i < jsonArrayorganizations.size(); i++) { - OrganizationUser.validateJsonObject(jsonArrayorganizations.get(i).getAsJsonObject()); - }; - } - // ensure the json data is an array - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); - } - // ensure the json data is an array - if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); - } - if (jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); - } - // validate the optional field `asset_locations` - if (jsonObj.getAsJsonObject("asset_locations") != null) { - AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); - } - if (jsonObj.get("default_namespace_charged") != null && !jsonObj.get("default_namespace_charged").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_namespace_charged` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_namespace_charged").toString())); - } - if (jsonObj.get("default_region") != null && !jsonObj.get("default_region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_region").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { From 45e0da050400da5afff55a121c738c770ddb3e7c Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Mon, 12 May 2025 23:59:32 +0300 Subject: [PATCH 06/15] fix doc packages --- docs/ArrayApi.md | 340 +++++++++++++------------- docs/ArrayTasksApi.md | 10 +- docs/AssetsApi.md | 30 +-- docs/ChangeAssetCredentialsRequest.md | 15 ++ docs/FavoritesApi.md | 200 +++++++-------- docs/FilesApi.md | 30 +-- docs/GroupsApi.md | 170 ++++++------- docs/InvitationApi.md | 100 ++++---- docs/NotebookApi.md | 50 ++-- docs/NotebooksApi.md | 20 +- docs/OrganizationApi.md | 200 +++++++-------- docs/QueryApi.md | 50 ++-- docs/RegisteredTaskGraphsApi.md | 60 ++--- docs/SqlApi.md | 10 +- docs/StatsApi.md | 10 +- docs/TaskGraphLogsApi.md | 90 +++---- docs/TaskGraphsApi.md | 50 ++-- docs/TasksApi.md | 40 +-- docs/UdfApi.md | 110 ++++----- docs/UserApi.md | 220 ++++++++--------- 20 files changed, 910 insertions(+), 895 deletions(-) create mode 100644 docs/ChangeAssetCredentialsRequest.md diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index 65a299f..b2d445b 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -53,11 +53,11 @@ get array activity logs ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -144,11 +144,11 @@ Fetch a list of all arrays that are owned directly by user or user's organiz ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -243,11 +243,11 @@ Fetch a sidebar for arrays that are owned directly by user or user's organiz ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -324,11 +324,11 @@ Fetch a list of all arrays that have been shared publically ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -423,11 +423,11 @@ Fetch a sidebar of all arrays that have been shared publically ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -504,11 +504,11 @@ Fetch a list of all arrays that have been shared with the user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -605,11 +605,11 @@ Fetch a list of all arrays that have been shared with the user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -688,11 +688,11 @@ retrieve a list of timestamps from the array fragment info listing in millisecon ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -773,11 +773,11 @@ consolidate an array at a specified URI ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -855,11 +855,11 @@ create a array schema at a specified URI registered to a group/project ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -941,11 +941,11 @@ delete a array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1023,11 +1023,11 @@ deregister a array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1103,11 +1103,11 @@ fetch an array's fragment info ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1187,11 +1187,11 @@ get activity log by ID ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1270,11 +1270,11 @@ get all array metadata user has access to ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1347,11 +1347,11 @@ get an ArraySchema using a url encoded uri ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1430,11 +1430,11 @@ get the max buffer sizes of an array for a subarray ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1517,11 +1517,11 @@ get metadata from the array in JSON format ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1602,11 +1602,11 @@ get metadata on an array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1683,11 +1683,11 @@ get metadata on an array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1764,11 +1764,11 @@ get the non empty domain of an array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1849,11 +1849,11 @@ get non-empty domain from the array in json format ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -1930,11 +1930,11 @@ get an sample set of data from the array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2013,11 +2013,11 @@ Get all sharing details of the array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2095,11 +2095,11 @@ get metadata on all arrays in a namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2176,11 +2176,11 @@ Get fragment end_timestamp on an array, will search for the closest end_timestam ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2257,11 +2257,11 @@ public class Example { ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2330,11 +2330,11 @@ request to get the array schema ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2414,11 +2414,11 @@ request to get the enumerations of the arrays' attributes ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2498,11 +2498,11 @@ register an array at a specified URI registered to the given namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2581,11 +2581,11 @@ Share an array with a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2664,11 +2664,11 @@ update metadata on an array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2746,11 +2746,11 @@ update metadata on an array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { @@ -2828,11 +2828,11 @@ vacuum an array at a specified URI ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayApi; +import 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.api.ArrayApi; public class Example { public static void main(String[] args) { diff --git a/docs/ArrayTasksApi.md b/docs/ArrayTasksApi.md index 70b5f97..5973b8e 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -18,11 +18,11 @@ All URIs are relative to */v1* ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.ArrayTasksApi; +import 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.api.ArrayTasksApi; public class Example { public static void main(String[] args) { diff --git a/docs/AssetsApi.md b/docs/AssetsApi.md index c3336ae..3179c76 100644 --- a/docs/AssetsApi.md +++ b/docs/AssetsApi.md @@ -22,11 +22,11 @@ Changes the access credentials to the given assets ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.AssetsApi; +import 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.api.AssetsApi; public class Example { public static void main(String[] args) { @@ -102,11 +102,11 @@ List assets in a namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.AssetsApi; +import 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.api.AssetsApi; public class Example { public static void main(String[] args) { @@ -197,11 +197,11 @@ List public assets ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.AssetsApi; +import 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.api.AssetsApi; public class Example { public static void main(String[] args) { diff --git a/docs/ChangeAssetCredentialsRequest.md b/docs/ChangeAssetCredentialsRequest.md new file mode 100644 index 0000000..a277a74 --- /dev/null +++ b/docs/ChangeAssetCredentialsRequest.md @@ -0,0 +1,15 @@ + + +# ChangeAssetCredentialsRequest + +Request body to change the credentials of the given assets + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessCredentials** | **String** | The name or uuid of the access credentials | | +|**assetUuids** | **List<String>** | The list of asset uuids to have their credentials changed | | + + + diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index a494c5d..60b6a6b 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -39,11 +39,11 @@ Add a new array favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -119,11 +119,11 @@ Add a new ML model favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -199,11 +199,11 @@ Add a new notebook favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -279,11 +279,11 @@ Add a new UDF favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -357,11 +357,11 @@ Delete specific array favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -437,11 +437,11 @@ Delete specific ML model favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -517,11 +517,11 @@ Delete specific notebook favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -597,11 +597,11 @@ Delete specific UDF favorite ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -675,11 +675,11 @@ Fetch array favorite of a specific array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -756,11 +756,11 @@ Fetch ML model favorite of a specific ML model ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -837,11 +837,11 @@ Fetch notebook favorite of a specific notebook ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -918,11 +918,11 @@ Fetch UDF favorite of a specific UDF ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -997,11 +997,11 @@ Fetch a page of array favorites of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1076,11 +1076,11 @@ Fetch all favorite array uuids of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1149,11 +1149,11 @@ Fetch a page of ML models favorites of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1228,11 +1228,11 @@ Fetch all favorite ML models uuids of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1301,11 +1301,11 @@ Fetch a page of notebook favorites of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1382,11 +1382,11 @@ Fetch all favorite notebook uuids of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1455,11 +1455,11 @@ Fetch a page of UDF favorites of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { @@ -1534,11 +1534,11 @@ Fetch all favorite UDF uuids of connected user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FavoritesApi; +import 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.api.FavoritesApi; public class Example { public static void main(String[] args) { diff --git a/docs/FilesApi.md b/docs/FilesApi.md index bc37659..966daaa 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -22,11 +22,11 @@ Create a tiledb file at the specified location ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FilesApi; +import 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.api.FilesApi; public class Example { public static void main(String[] args) { @@ -105,11 +105,11 @@ Export a TileDB File back to its original file format ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FilesApi; +import 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.api.FilesApi; public class Example { public static void main(String[] args) { @@ -188,11 +188,11 @@ Upload a tiledb file at the specified location ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.FilesApi; +import 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.api.FilesApi; public class Example { public static void main(String[] args) { diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 96d7d4c..2c78fdc 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -36,11 +36,11 @@ Changes the contents of the group by adding/removing members. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -118,11 +118,11 @@ Creates a new group in the namespace. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -198,11 +198,11 @@ Deletes the group. The assets are not deleted nor are not relocated to any other ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -278,11 +278,11 @@ Returns the the group ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -359,11 +359,11 @@ Returns the activity of group content ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -444,11 +444,11 @@ Returns the contents of the group ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -543,11 +543,11 @@ Get all sharing details of the group ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -625,11 +625,11 @@ Fetch data to initialize filters for the groups browser ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -702,11 +702,11 @@ Fetch data to initialize filters for the groups browser ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -775,11 +775,11 @@ Fetch data to initialize filters for the groups browser ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -852,11 +852,11 @@ Fetch data to initialize filters for the group contents ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -933,11 +933,11 @@ Returns one page of owned groups. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -1032,11 +1032,11 @@ Returns one page of public groups. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -1131,11 +1131,11 @@ Returns one page of shared groups. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -1232,11 +1232,11 @@ Registers an existing group in the namespace. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -1314,11 +1314,11 @@ Share a group with a namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { @@ -1397,11 +1397,11 @@ Changes attributes of the group ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.GroupsApi; +import 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.api.GroupsApi; public class Example { public static void main(String[] args) { diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index fdef385..9beb396 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -29,11 +29,11 @@ Accepts invitation ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -106,11 +106,11 @@ Cancels join organization invitation ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -185,11 +185,11 @@ Cancels array sharing invitation ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -268,11 +268,11 @@ Cancels group sharing invitation ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -351,11 +351,11 @@ Revokes invitation from the source namespace to the target. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -431,11 +431,11 @@ Fetch a list of invitations ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -526,11 +526,11 @@ Sends email to multiple recipients with joining information regarding an organiz ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -606,11 +606,11 @@ Sends email to multiple recipients with sharing information regarding an array ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -690,11 +690,11 @@ Sends email to multiple recipients with sharing information regarding a group ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { @@ -774,11 +774,11 @@ Sends email to multiple recipients allowing them to use the payment instrument p ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.InvitationApi; +import 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.api.InvitationApi; public class Example { public static void main(String[] args) { diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 6e1d219..9d06b79 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -24,11 +24,11 @@ Get status of the notebook server ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebookApi; +import 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.api.NotebookApi; public class Example { public static void main(String[] args) { @@ -105,11 +105,11 @@ Copy a tiledb notebook at the specified location ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebookApi; +import 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.api.NotebookApi; public class Example { public static void main(String[] args) { @@ -192,11 +192,11 @@ Upload a notebook at the specified location ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebookApi; +import 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.api.NotebookApi; public class Example { public static void main(String[] args) { @@ -279,11 +279,11 @@ Shutdown a notebook server ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebookApi; +import 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.api.NotebookApi; public class Example { public static void main(String[] args) { @@ -358,11 +358,11 @@ update name on a notebok, moving related S3 object to new location ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebookApi; +import 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.api.NotebookApi; public class Example { public static void main(String[] args) { diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index 0a92fd5..c84091a 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -21,11 +21,11 @@ retrieve a list of timestamps from the array fragment info listing in millisecon ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebooksApi; +import 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.api.NotebooksApi; public class Example { public static void main(String[] args) { @@ -106,11 +106,11 @@ prune fragments of the notebook ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.NotebooksApi; +import 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.api.NotebooksApi; public class Example { public static void main(String[] args) { diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index b9c5ebc..bd366bb 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -39,11 +39,11 @@ Add aws keys ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -119,11 +119,11 @@ add a user to an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -197,11 +197,11 @@ Check if aws keys are set ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -276,11 +276,11 @@ Check if aws keys are set by name ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -357,11 +357,11 @@ Immediately verify ownership of the specified SSO domain ownership claim. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -435,11 +435,11 @@ create a organization, the user creating will be listed as owner ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -511,11 +511,11 @@ Create a new SSO connection that connects this organization to this domain. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -589,11 +589,11 @@ delete a AWS Access credentials in a namespace. This will likely cause arrays to ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -669,11 +669,11 @@ delete a organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -745,11 +745,11 @@ Deletes the configuration for the given SSO connection. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -822,11 +822,11 @@ delete a user from an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -900,11 +900,11 @@ get all organizations that the user is member of ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -975,11 +975,11 @@ get a organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1053,11 +1053,11 @@ get a user from an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1133,11 +1133,11 @@ Gets details about the given SSO domain connection. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1211,11 +1211,11 @@ Lists all the SSO connections associated with the given organization. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1287,11 +1287,11 @@ Update aws keys or associated buckets. This will update the key associations for ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1369,11 +1369,11 @@ update a organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1447,11 +1447,11 @@ Updates the configuration for the given SSO connection. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { @@ -1527,11 +1527,11 @@ update a user in an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.OrganizationApi; +import 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.api.OrganizationApi; public class Example { public static void main(String[] args) { diff --git a/docs/QueryApi.md b/docs/QueryApi.md index bad6592..1cc25e3 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -24,11 +24,11 @@ send a query to run against a specified array/URI registered to a group/project ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.QueryApi; +import 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.api.QueryApi; public class Example { public static void main(String[] args) { @@ -116,11 +116,11 @@ send a query to run against a specified array/URI registered to a group/project ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.QueryApi; +import 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.api.QueryApi; public class Example { public static void main(String[] args) { @@ -208,11 +208,11 @@ send a query to run against a specified array/URI registered to a group/project, ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.QueryApi; +import 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.api.QueryApi; public class Example { public static void main(String[] args) { @@ -293,11 +293,11 @@ send a query to run against a specified array/URI registered to a group/project ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.QueryApi; +import 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.api.QueryApi; public class Example { public static void main(String[] args) { @@ -385,11 +385,11 @@ send a query to run against a specified array/URI registered to a group/project, ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.QueryApi; +import 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.api.QueryApi; public class Example { public static void main(String[] args) { diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index 5153bfb..17b1ca5 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -25,11 +25,11 @@ Delete the given registered task graph. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; +import 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.api.RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { @@ -103,11 +103,11 @@ Fetch the contents of this registered task graph. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; +import 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.api.RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { @@ -182,11 +182,11 @@ Get sharing policies for the task graph. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; +import 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.api.RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { @@ -262,11 +262,11 @@ Register a task graph in the given namespace, with the given name. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; +import 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.api.RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { @@ -342,11 +342,11 @@ Share a task graph. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; +import 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.api.RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { @@ -423,11 +423,11 @@ Update the contents of an existing registered task graph. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.RegisteredTaskGraphsApi; +import 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.api.RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { diff --git a/docs/SqlApi.md b/docs/SqlApi.md index f4a7683..78d814e 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -20,11 +20,11 @@ Run a sql query ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.SqlApi; +import 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.api.SqlApi; public class Example { public static void main(String[] args) { diff --git a/docs/StatsApi.md b/docs/StatsApi.md index b0e4749..8d97f39 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -20,11 +20,11 @@ Fetch libtiledb stat ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.StatsApi; +import 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.api.StatsApi; public class Example { public static void main(String[] args) { diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index c75d0ce..30bab18 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -28,11 +28,11 @@ Create a task graph log. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -107,11 +107,11 @@ Fetch information about a single task graph execution. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -186,11 +186,11 @@ Fetch the task graph logs of a namespace the user has access to. The returned en ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -275,11 +275,11 @@ public class Example { ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -355,11 +355,11 @@ Resubmits a task graph in the given namespace using the associated execution id. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -434,11 +434,11 @@ Retries failed tasks of a task graph in the given namespace using the associated ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -513,11 +513,11 @@ Stops a task graph execution in the given namespace using the associated associa ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -591,11 +591,11 @@ Submit a single task graph for execution. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -672,11 +672,11 @@ Update information about a single task graph execution. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphLogsApi; +import 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.api.TaskGraphLogsApi; public class Example { public static void main(String[] args) { diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md index 76aa4e2..1fabfce 100644 --- a/docs/TaskGraphsApi.md +++ b/docs/TaskGraphsApi.md @@ -24,11 +24,11 @@ Create a single task graph for execution. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphsApi; +import 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.api.TaskGraphsApi; public class Example { public static void main(String[] args) { @@ -103,11 +103,11 @@ Fetch information about a single task graph. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphsApi; +import 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.api.TaskGraphsApi; public class Example { public static void main(String[] args) { @@ -182,11 +182,11 @@ Fetch the task graphs of a namespace the user has access to. The returned entrie ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphsApi; +import 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.api.TaskGraphsApi; public class Example { public static void main(String[] args) { @@ -259,11 +259,11 @@ Submit a single task graph for execution. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphsApi; +import 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.api.TaskGraphsApi; public class Example { public static void main(String[] args) { @@ -340,11 +340,11 @@ Update information about a single task graph execution. ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TaskGraphsApi; +import 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.api.TaskGraphsApi; public class Example { public static void main(String[] args) { diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 0890e68..75a7ed4 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -23,11 +23,11 @@ Run a sql query ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TasksApi; +import 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.api.TasksApi; public class Example { public static void main(String[] args) { @@ -107,11 +107,11 @@ Fetch an array task ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TasksApi; +import 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.api.TasksApi; public class Example { public static void main(String[] args) { @@ -184,11 +184,11 @@ Retrieve results of an array task ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TasksApi; +import 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.api.TasksApi; public class Example { public static void main(String[] args) { @@ -265,11 +265,11 @@ Fetch a list of all array tasks a user has access to ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.TasksApi; +import 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.api.TasksApi; public class Example { public static void main(String[] args) { diff --git a/docs/UdfApi.md b/docs/UdfApi.md index 1f73a64..c6da072 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -30,11 +30,11 @@ delete a registered UDF -- this will remove all sharing and can not be undone ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -108,11 +108,11 @@ get a specific UDF in the given namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -188,11 +188,11 @@ Get all sharing details of the UDF ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -268,11 +268,11 @@ Copy a tiledb udf at the specified location ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -353,11 +353,11 @@ register a UDF in the given namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -433,11 +433,11 @@ Share a UDF with a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -514,11 +514,11 @@ submit a generic UDF in the given namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -595,11 +595,11 @@ submit a multi-array UDF in the given namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -676,11 +676,11 @@ send a UDF to run against a specified array/URI registered to a group/project ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -765,11 +765,11 @@ retrieve a list of timestamps from the array fragment info listing in millisecon ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { @@ -848,11 +848,11 @@ update an existing registered UDF in the given namespace ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UdfApi; +import 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.api.UdfApi; public class Example { public static void main(String[] args) { diff --git a/docs/UserApi.md b/docs/UserApi.md index dd38f77..7586113 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -41,11 +41,11 @@ Add aws keys ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -121,11 +121,11 @@ add a user to an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -199,11 +199,11 @@ Check if aws keys are set ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -278,11 +278,11 @@ Check if aws keys are set by name ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -359,11 +359,11 @@ confirm user email ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -431,11 +431,11 @@ create a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -507,11 +507,11 @@ delete a AWS Access credentials in a namespace. This will likely cause arrays to ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -587,11 +587,11 @@ delete a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -663,11 +663,11 @@ delete a user from an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -741,11 +741,11 @@ get a user from an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -821,11 +821,11 @@ Get session token for user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -900,11 +900,11 @@ retrieves available token scopes for a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -973,11 +973,11 @@ get a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1046,11 +1046,11 @@ get a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1124,11 +1124,11 @@ Request an authorization token, optionally taken a TokenRequest object to set pa ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1201,11 +1201,11 @@ reset user password ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1278,11 +1278,11 @@ revoke an authorization token ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1354,11 +1354,11 @@ Fetch a list of user tokens ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1427,11 +1427,11 @@ Fetch a list of user session tokens ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1500,11 +1500,11 @@ Update aws keys or associated buckets. This will update the key associations for ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1582,11 +1582,11 @@ update a user ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { @@ -1660,11 +1660,11 @@ update a user in an organization ```java // Import classes: -import org.openapitools.client.rest_api.ApiClient; -import org.openapitools.client.rest_api.ApiException; -import org.openapitools.client.rest_api.Configuration; -import org.openapitools.client.models.*; -import org.openapitools.client.rest_api.api.UserApi; +import 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.api.UserApi; public class Example { public static void main(String[] args) { From 4f285202ddbd151b469df7edb53afc00fd895921 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 15 May 2025 23:21:27 -0400 Subject: [PATCH 07/15] Bump version to `1.0.0-SNAPSHOT` --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8cb838c..beaee7e 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group 'io.tiledb' -version = '0.5.0' +version = '1.0.0-SNAPSHOT' repositories { mavenCentral() From fb789764a0c040160506399183c52d5fed4ef429 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 15 May 2025 21:52:41 -0400 Subject: [PATCH 08/15] Add `regen.sh`, `DEVELOP.md`, `config.yaml`, `openapitools.json` (pin 7.7.0) --- DEVELOP.md | 25 +++++++++++++++++++++++++ config.yaml | 4 ++++ openapitools.json | 7 +++++++ regen.sh | 23 +++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 DEVELOP.md create mode 100644 config.yaml create mode 100644 openapitools.json create mode 100755 regen.sh 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/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 From 32d70c50ec27f1c08872ac49c2184439f6918d22 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 15 May 2025 23:17:03 -0400 Subject: [PATCH 09/15] Update `openapi-v1.yaml` 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 ``` --- openapi-v1.yaml | 1573 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 1319 insertions(+), 254 deletions(-) diff --git a/openapi-v1.yaml b/openapi-v1.yaml index c764327..d431c99 100644 --- a/openapi-v1.yaml +++ b/openapi-v1.yaml @@ -2,7 +2,7 @@ swagger: "2.0" info: description: TileDB Storage Platform REST API title: TileDB Storage Platform API - version: 2.2.19 + version: 2.17.51 produces: - application/json @@ -89,6 +89,54 @@ definitions: - STRING_UCS4 # This can be any datatype. Must store (type tag, value) pairs. - ANY + # Datetime with year resolution + - DATETIME_YEAR + # Datetime with month resolution + - DATETIME_MONTH + # Datetime with week resolution + - DATETIME_WEEK + # Datetime with day resolution + - DATETIME_DAY + # Datetime with hour resolution + - DATETIME_HR + # Datetime with minute resolution + - DATETIME_MIN + # Datetime with second resolution + - DATETIME_SEC + # Datetime with millisecond resolution + - DATETIME_MS + # Datetime with microsecond resolution + - DATETIME_US + # Datetime with nanosecond resolution + - DATETIME_NS + # Datetime with picosecond resolution + - DATETIME_PS + # Datetime with femtosecond resolution + - DATETIME_FS + # Datetime with attosecond resolution + - DATETIME_AS + # Time with hour resolution + - TIME_HR + # Time with minute resolution + - TIME_MIN + # Time with second resolution + - TIME_SEC + # Time with millisecond resolution + - TIME_MS + # Time with microsecond resolution + - TIME_US + # Time with nanosecond resolution + - TIME_NS + # Time with picosecond resolution + - TIME_PS + # Time with femtosecond resolution + - TIME_FS + # Time with attosecond resolution + - TIME_AS + # 8-bit unsigned integer + - BLOB + # Boolean + - BOOL ActivityEventType: description: Type of activity logged @@ -124,7 +172,10 @@ definitions: - estimated_result_sizes # read_fragment_info - read_fragment_info - + # read_enumerations + - read_enumerations + # nextflow + - nextflow UDFLanguage: description: UDF Type type: string @@ -246,6 +297,8 @@ definitions: - owner # Admin almost all rights but can't delete organization - admin + # Read, write, and delete User + - read_write_delete # Read and write User - read_write # Read Only User @@ -625,6 +678,7 @@ definitions: package: "github.com/TileDB-Inc/TileDB-Go" alias: "tiledb" type: "ArraySchema" + embedded: true AttributeBufferHeader: description: Represents an attribute buffer header information @@ -913,6 +967,24 @@ definitions: items: $ref: "#/definitions/ArrayMetadataEntry" + MetadataStringifiedEntry: + type: object + description: key/value pair representing an asset metadata map entry + properties: + key: + description: The metadata key + type: string + x-omitempty: false + value: + description: The metadata value + type: string + x-omitempty: false + type: + description: The metadata type + type: string + x-omitempty: false + example: array_metadata + TileDBConfig: description: TileDB config used for interaction with the embedded library type: object @@ -1068,6 +1140,7 @@ definitions: description: Start time RFC3339 for job type: string format: date-time + x-nullable: true finish_time: description: Finish time RFC3339 for job type: string @@ -1141,6 +1214,14 @@ definitions: x-omitempty: true description: > If set, the client-defined ID of the node within this task's graph. + cloud_provider: + type: string + x-omitempty: true + description: The name of the cloud provider where this task executed. + cloud_region: + type: string + x-omitempty: true + description: The region of the cloud provider where this task executed. PaginationMetadata: properties: @@ -1391,6 +1472,11 @@ definitions: default_namespace_charged: description: Override the default namespace charged for actions when no namespace is specified type: string + default_region: + description: > + The default region to use for notebooks and other operations. It must be a region supported by TileDB, + see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration + type: string OrganizationUser: description: user in an organization @@ -1408,6 +1494,14 @@ definitions: description: username for user type: string example: "username" + user_full_name: + description: full name of the user; available to organization admins + type: string + example: "Alice Hanna" + user_email: + description: email address of the user; available to organization admins + type: string + example: alice@example.com organization_name: description: name of organization type: string @@ -1606,6 +1700,47 @@ definitions: type: boolean readOnly: true example: false + assume_role_arn: + description: > + A AWS Role that will be first assumed before assuming the organization's AWS Role. + Visible to owners and admins. + type: string + x-omitempty: true + + OrganizationUpdate: + description: OrganizationUpdate + type: object + properties: + name: + type: string + minLength: 1 + maxLength: 63 + pattern: "^[\\w.\\-]+$" # only allows alphanumeric characters + description: organization name must be unique + x-nullable: true + logo: + description: Organization logo + type: string + x-nullable: true + description: + description: Organization description + type: string + x-nullable: true + default_s3_path: + description: > + The default location to store newly-created notebooks and other assets + like UDFs. The name `default_s3_path` is a legacy holdover; it may + refer to any supported storage location. + type: string + x-nullable: true + default_s3_path_credentials_name: + description: > + The name of the credentials used to create and access files in the + `default_s3_path`, if needed. + type: string + x-nullable: true + asset_locations: + $ref: "#/definitions/AssetLocations" AssetLocations: description: > @@ -1743,7 +1878,7 @@ definitions: # Raster - raster # Vector search - - vector_search + - vector_search FilePropertyName: description: File property assigned to a specific file (array) @@ -1884,6 +2019,10 @@ definitions: description: unique ID of registered array type: string example: "00000000-0000-0000-0000-000000000000" + asset_id: + type: string + description: The asset id of the created array + x-omitempty: false file_type: description: File type stored /wrapped by this array x-omitempty: true @@ -1992,6 +2131,22 @@ definitions: type: boolean x-omitempty: true example: true + created_at: + description: Datetime array was registered with tiledb + type: string + format: date-time + created_by: + description: The user who created the array, if known. + type: string + x-omitempty: true + metadata: + description: | + Contains the metadata of the array. + **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" ArrayInfoUpdate: description: metadata of an array @@ -2140,6 +2295,10 @@ definitions: - stripe # Okta - okta + # perdomain + - perdomain + # SCIM + - scim PublicShareFilter: description: Query parameter to get array metadatas @@ -2708,12 +2867,28 @@ definitions: format: uint64 example: 4000 cost: - description: cost in USD for the current notebook session + description: cost in USD for the current notebook session x-omitempty: true x-nullable: true type: number format: double example: 0.27 + pod_status: + description: Status of the pod + $ref: "#/definitions/PodStatus" + example: RUNNING + x-omitempty: true + + PodStatus: + description: List of all available pod statuses + type: string + enum: + # Terminating + - TERMINATING + # Running + - RUNNING + # Launching + - LAUNCHING ArrayFavorite: description: A user-favorite array item @@ -2833,6 +3008,8 @@ definitions: - GROUP_SHARE # Join Organization - JOIN_ORGANIZATION + # Allow a child namespace to use a payment instrument + - PAYMENT_SHARE InvitationStatus: description: List of values that InvitationStatus can take @@ -3089,6 +3266,7 @@ definitions: type: object required: - id + - asset_id properties: output_uri: type: string @@ -3096,6 +3274,10 @@ definitions: file_name: type: string description: name of the file uploaded + asset_id: + type: string + description: The asset id of the created Group + x-omitempty: false id: description: unique ID of the uploaded file type: string @@ -3316,6 +3498,22 @@ definitions: type: string x-omitempty: true description: License text + created_at: + description: Datetime the group was registered with tiledb + type: string + format: date-time + created_by: + description: The username of the group's creator, if known. + type: string + x-omitempty: true + metadata: + description: | + Contains metadata of the group. + **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" GroupEntry: description: Object describing a single member of a group, which can be an array or a group @@ -3625,7 +3823,7 @@ definitions: type: string example: "MyOrganization" - GroupActivity: + GroupContentActivity: description: Object containing activity of an asset of a group type: object properties: @@ -3649,7 +3847,7 @@ definitions: description: Object containing the activity log $ref: "#/definitions/ArrayActivityLog" - GroupActivityResponse: + GroupContentActivityResponse: description: Object containing activity logs of group content along with the pagination metadata type: object properties: @@ -3659,7 +3857,7 @@ definitions: x-omitempty: false x-nullable: false items: - $ref: "#/definitions/GroupActivity" + $ref: "#/definitions/GroupContentActivity" pagination_metadata: x-omitempty: false x-nullable: false @@ -3719,6 +3917,7 @@ definitions: enum: - batch - realtime + - nextflow TaskGraphLog: description: Logging information about the execution of a task graph. @@ -3815,6 +4014,28 @@ definitions: task_graph_id: type: string description: The UUID of the task graph. + cloud_provider: + type: string + x-omitempty: true + description: The name of the cloud provider where this task graph executed. + cloud_region: + type: string + x-omitempty: true + description: The region of the cloud provider where this task graph executed. + root_task_graph_uuid: + type: string + x-omitempty: true + description: > + The UUID of the root taskgraph that this taskgraph is related to. + This is used to provide consistent tracking and UI view for graphs that + are executed by a set of taskgraphs. + children_task_graph_uuids: + description: > + If this is a root taskgraph, this contains the list of all its children + taskgraph UUIDs. + type: array + items: + type: string TaskGraphNodeMetadata: description: Metadata about an individual node in a task graph. @@ -3825,6 +4046,7 @@ definitions: description: The client-generated UUID of the given graph node. name: type: string + maxLength: 255 description: > The client-generated name of the node. This is not guaranteed to be unique. @@ -3908,6 +4130,7 @@ definitions: description: The name of the user who created this task graph log. name: type: string + maxLength: 255 description: > A name for this task graph, displayed in the UI. Does not need to be unique. @@ -3923,7 +4146,7 @@ definitions: $ref: "#/definitions/TaskGraphNode" description: > The structure of the graph. This is provided by the client - when first setting up the task graph. + when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. parallelism: @@ -3943,7 +4166,7 @@ definitions: x-omitempty: true description: > Duration in seconds relative to the workflow start time which the - workflow is allowed to run before it gets terminated. + workflow is allowed to run before it gets terminated. Defaults to 24h when unset task_graph_type: $ref: "#/definitions/TaskGraphType" @@ -3974,6 +4197,7 @@ definitions: description: The namespace that owns this task graph log. name: type: string + maxLength: 255 description: > The name of this graph, to appear in URLs. Must be unique per-namespace. @@ -4049,6 +4273,7 @@ definitions: description: The client-generated UUID of the given graph node. name: type: string + maxLength: 255 x-nullable: true description: > A client-specified name for the node. If provided, this must be @@ -4363,8 +4588,8 @@ definitions: resources: type: object description: > - The resources requested for this particular node. If resources are not - specified resource_class is used, if it is not set the standard resource + The resources requested for this particular node. If resources are not + specified resource_class is used, if it is not set the standard resource // defaults are used properties: cpu: @@ -4393,6 +4618,38 @@ definitions: allowed to run indefinitely (subject to the server’s global limits). type: number x-nullable: true + storage: + description: > + Storage options for mounting persistent volumes. + type: array + x-omitempty: true + items: + $ref: "#/definitions/TGUDFStorage" + + TGUDFStorage: + description: Storage options for mounting persistent volumes. + type: object + properties: + path: + description: > + Mount path for the attached volume. + type: string + tiledb_uri: + description: > + TileDB filesystem to mount + type: string + example: tiledb:/// + size: + description: > + Storage size. + type: string + example: 8Gi + storage_class: + description: > + Storage class to use for creating the volume. + type: string + example: gp2 + FragmentMetadata: description: Fragment Metadata @@ -4591,6 +4848,12 @@ definitions: type: object description: config to use to retrieve the contents $ref: "#/definitions/TileDBConfig" + fragments: + description: list of fragments in the array to consolidate + type: array + x-omitempty: true + items: + type: string ArrayVacuumRequest: description: Request to consolidate an array @@ -4601,6 +4864,75 @@ definitions: description: config to use to retrieve the contents $ref: "#/definitions/TileDBConfig" + Enumeration: + description: The enumerations of a single attribute + type: object + properties: + name: + type: string + path_name: + type: string + type: + type: string + cell_val_num: + type: integer + format: uint32 + ordered: + type: boolean + data: + type: array + items: + type: integer + format: uint8 + offsets: + type: array + items: + type: integer + format: uint8 + + LoadEnumerationsRequest: + description: Request to return enumerations for attributes + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + enumerations: + type: array + items: + type: string + + LoadEnumerationsResponse: + description: Contains the enumerations of the array's attributes + type: object + properties: + enumerations: + type: array + items: + $ref: '#/definitions/Enumeration' + + LoadArraySchemaRequest: + description: Request to load an array schema + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + + LoadArraySchemaResponse: + description: Contains the latest schema and all schemas for the opened array + type: object + properties: + latest_array_schema: + $ref: "#/definitions/ArraySchema" + all_array_schemas: + description: map of all array schemas + type: object + additionalProperties: + $ref: "#/definitions/ArraySchema" + RetryStrategy: description: RetryStrategy provides controls on how to retry a taskgraph node type: object @@ -4647,6 +4979,108 @@ definitions: # Retry task transient errors - OnTransientError + AssetBackingType: + description: The technology that an asset is backed by + type: string + enum: + # Array + - array + # Groups + - group + + AssetOwnershipLevel: + description: The ownership level of the asset + type: string + enum: + # Owned + - owned + # Shared + - shared + + MetadataStringified: + type: object + description: The user's TileDB metadata + properties: + entries: + description: List of metadata entries + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" + + AssetInfo: + description: metadata of an asset + type: object + properties: + uuid: + description: unique ID of a registered asset + type: string + example: "00000000-0000-0000-0000-000000000000" + asset_type: + description: Asset type of an asset + $ref: "#/definitions/AssetType" + asset_backing_type: + description: Asset type of an asset + $ref: "#/definitions/AssetBackingType" + asset_ownership_level: + description: Ownership level of the asset + $ref: "#/definitions/AssetOwnershipLevel" + namespace_name: + description: namespace_name that the asset is registered to + type: string + example: "user1" + namespace_uuid: + description: namespace_uuid that the asset is registered to + type: string + example: "00000000-0000-0000-0000-000000000000" + name: + description: name of asset + type: string + example: myarray1 + mime_type: + description: mime type of the asset + type: string + example: application/vnd.tiledb.v1.array + created_at: + description: "Time when the asset was created (rfc3339)" + type: string + format: date-time + readOnly: true + metadata: + description: metadata for the asset, only included when expanded + $ref: "#/definitions/MetadataStringified" + + AssetListResponse: + description: Asset associated with a TileDB Cloud account + type: object + properties: + data: + description: asset information for each asset + type: array + x-omitempty: true + items: + $ref: "#/definitions/AssetInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + ChangeAssetCredentialsRequest: + description: Request body to change the credentials of the given assets + type: object + required: + - access_credentials + - asset_uuids + properties: + access_credentials: + description: The name or uuid of the access credentials + type: string + x-nullable: false + asset_uuids: + description: The list of asset uuids to have their credentials changed + type: array + items: + type: string + x-nullable: false + paths: /.stats: get: @@ -4700,13 +5134,23 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}: + /arrays/{workspace}/{teamspace}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true + - name: with_metadata + in: query + description: include the metadata of the arrays + type: boolean + required: false get: description: get metadata on all arrays in a namespace tags: @@ -4727,11 +5171,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}: + /arrays/{workspace}/{teamspace}/{array}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4808,11 +5257,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/activity: + /arrays/{workspace}/{teamspace}/{array}/activity: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4864,11 +5318,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/activity/{id}: + /arrays/{workspace}/{teamspace}/{array}/activity/{id}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4898,11 +5357,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/deregister: + /arrays/{workspace}/{teamspace}/{array}/deregister: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4925,11 +5389,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/array_metadata: + /arrays/{workspace}/{teamspace}/{array}/array_metadata: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -4987,11 +5456,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/fragment_info: + /arrays/{workspace}/{teamspace}/{array}/fragment_info: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5027,11 +5501,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/metadata: + /arrays/{workspace}/{teamspace}/{array}/metadata: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5077,11 +5556,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/fragment_end_timestamp: + /arrays/{workspace}/{teamspace}/{array}/fragment_end_timestamp: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5114,16 +5598,21 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/register: + /arrays/{workspace}/{teamspace}/{array}/register: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string 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: @@ -5150,11 +5639,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/consolidate: + /arrays/{workspace}/{teamspace}/{array}/consolidate: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5184,11 +5678,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/vacuum: + /arrays/{workspace}/{teamspace}/{array}/vacuum: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5218,11 +5717,102 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/share: + /arrays/{workspace}/{teamspace}/{array}/enumerations: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: request to get the enumerations of the arrays' attributes + tags: + - array + operationId: loadEnumerations + parameters: + - name: load_enumerations_request + in: body + description: Load Enumerations Request + schema: + $ref: "#/definitions/LoadEnumerationsRequest" + required: true + responses: + 200: + description: enumerations returned successfully + schema: + $ref: "#/definitions/LoadEnumerationsResponse" + 404: + description: Array does not exist or user does not have permissions to access it + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{workspace}/{teamspace}/{array}/schema: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: request to get the array schema + tags: + - array + operationId: loadArraySchema + parameters: + - name: load_array_schema_request + in: body + description: Load Array Schema Request + schema: + $ref: "#/definitions/LoadArraySchemaRequest" + required: true + responses: + 200: + description: array schemas returned successfully + schema: + $ref: "#/definitions/LoadArraySchemaResponse" + 404: + description: Array does not exist or user does not have permissions to access it + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{workspace}/{teamspace}/{array}/share: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5275,11 +5865,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/non_empty_domain: + /arrays/{workspace}/{teamspace}/{array}/non_empty_domain: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5314,11 +5909,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/max_buffer_sizes: + /arrays/{workspace}/{teamspace}/{array}/max_buffer_sizes: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5358,11 +5958,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/udf/submit: + /arrays/{workspace}/{teamspace}/{array}/udf/submit: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5421,11 +6026,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/submit: + /arrays/{workspace}/{teamspace}/{array}/query/submit: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5489,11 +6099,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/submit_query_json: + /arrays/{workspace}/{teamspace}/{array}/query/submit_query_json: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5547,11 +6162,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/get_file: + /arrays/{workspace}/{teamspace}/{array}/query/get_file: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5597,11 +6217,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/finalize: + /arrays/{workspace}/{teamspace}/{array}/query/finalize: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -5665,11 +6290,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/query/est_result_sizes: + /arrays/{workspace}/{teamspace}/{array}/query/est_result_sizes: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5733,11 +6363,16 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/{namespace}/{array}/sample: + /arrays/{workspace}/{teamspace}/{array}/sample: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5798,11 +6433,16 @@ paths: message: "Error try again" code: 1 - /arrays/{namespace}/{array}/metadata_json: + /arrays/{workspace}/{teamspace}/{array}/metadata_json: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5857,11 +6497,16 @@ paths: message: "Error try again" code: 1 - /arrays/{namespace}/{array}/non_empty_domain_json: + /arrays/{workspace}/{teamspace}/{array}/non_empty_domain_json: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -5898,11 +6543,16 @@ paths: message: "Error try again" code: 1 - /arrays/{namespace}/{array}/end_timestamps: + /arrays/{workspace}/{teamspace}/{array}/end_timestamps: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -6113,13 +6763,18 @@ paths: schema: $ref: "#/definitions/Error" - /credentials/{namespace}/aws: + /credentials/{workspace}/{teamspace}/aws: parameters: - - name: namespace + - name: workspace in: path - description: namespace + description: the workspace containing the teamspace the array belongs to + type: string required: true + - name: teamspace + in: path + description: the teamspace the credentials belongs to type: string + required: true get: tags: - user @@ -6162,13 +6817,18 @@ paths: schema: $ref: "#/definitions/Error" - /credentials/{namespace}/aws/{name}: + /credentials/{workspace}/{teamspace}/aws/{name}: parameters: - - name: namespace + - name: workspace in: path - description: namespace + description: the workspace containing the teamspace the array belongs to + type: string required: true + - name: teamspace + in: path + description: the teamspace the credentials belongs to type: string + required: true - name: name in: path description: name @@ -6326,7 +6986,7 @@ paths: in: body description: organization details to update schema: - $ref: "#/definitions/Organization" + $ref: "#/definitions/OrganizationUpdate" required: true responses: 204: @@ -6588,6 +7248,12 @@ paths: description: flag to create a token with expiration of 30 days, default is false type: string required: false + - name: expires + in: query + description: Expiration date for token, if empty token defaults to 30 minutes + type: string + format: date-time + required: false get: tags: - user @@ -6918,11 +7584,16 @@ paths: schema: $ref: "#/definitions/Error" - /sql/{namespace}: + /sql/{workspace}/{teamspace}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace to run task under is in (an organization name or user's username) + description: the teamspace the sql query belongs to type: string required: true - name: Accept-Encoding @@ -6967,11 +7638,11 @@ paths: schema: $ref: "#/definitions/Error" - /udfs/generic/{namespace}: + /udfs/generic/{workspace}: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: Accept-Encoding @@ -7016,11 +7687,11 @@ paths: schema: $ref: "#/definitions/Error" - /udfs/arrays/{namespace}: + /udfs/arrays/{workspace}: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: Accept-Encoding @@ -7065,11 +7736,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{name}: + /udf/{workspace}/{name}: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -7152,11 +7823,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{name}/share: + /udf/{workspace}/{name}/share: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -7209,11 +7880,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{name}/copy: + /udf/{workspace}/{name}/copy: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -7256,11 +7927,11 @@ paths: schema: $ref: "#/definitions/Error" - /udf/{namespace}/{array}/end_timestamps: + /udf/{workspace}/{array}/end_timestamps: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to type: string required: true - name: array @@ -7296,11 +7967,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/server/{namespace}/status: + /notebooks/server/{workspace}/{teamspace}/status: parameters: - - name: namespace + - name: workspace in: path - description: namespace notebook is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true get: @@ -7313,8 +7989,6 @@ paths: description: status of running notebook schema: $ref: "#/definitions/NotebookStatus" - 202: - description: Notebook server is pending 402: description: Payment required schema: @@ -7328,11 +8002,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/server/{namespace}: + /notebooks/server/{workspace}/{teamspace}: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace notebook is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true delete: @@ -7352,11 +8031,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/rename: + /notebooks/{workspace}/{teamspace}/{array}/rename: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -7386,13 +8070,18 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/copy: + /notebooks/{workspace}/{teamspace}/{array}/copy: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the notebook - type: string name: array in: path @@ -7432,13 +8121,18 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/upload: + /notebooks/{workspace}/{teamspace}/upload: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the notebook - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME in: header description: Optional registered access credentials to use for creation @@ -7477,11 +8171,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/end_timestamps: + /notebooks/{workspace}/{teamspace}/{array}/end_timestamps: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -7517,11 +8216,16 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/{namespace}/{array}/prune: + /notebooks/{workspace}/{teamspace}/{array}/prune: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: array @@ -7644,11 +8348,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/{invitation}/{namespace}/{array}/share: + /invitations/{invitation}/{workspace}/{teamspace}/{array}/share: parameters: - - name: namespace + - name: workspace in: path - description: namespace array is in (an organization name or user's username) + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to type: string required: true - name: invitation @@ -7678,11 +8387,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/group/{invitation}/{namespace}/{group_name}/share: + /invitations/group/{invitation}/{workspace}/{teamspace}/{group_name}/share: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace group is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: invitation @@ -7741,11 +8455,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/{namespace}/{array}/share: + /invitations/{workspace}/{teamspace}/{array}/share: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace array is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: array @@ -7783,11 +8502,16 @@ paths: schema: $ref: "#/definitions/Error" - /invitations/group/{namespace}/{group}/share: + /invitations/group/{workspace}/{teamspace}/{group}/share: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path - description: namespace group is in (an organization name or user's username) + description: the teamspace the array belongs to type: string required: true - name: group @@ -7862,6 +8586,88 @@ paths: schema: $ref: "#/definitions/Error" + /invitations/share_payment/{workspace}/{teamspace}: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + post: + tags: + - invitation + description: | + Sends email to multiple recipients allowing them to use the payment + instrument provided by the source namespace. + operationId: sharePayment + parameters: + - name: email_invite + in: body + description: | + Recipients of the invitation. These may only be namespaces, + not email addresses. + schema: + type: object + properties: + namespaces: + type: array + items: + type: string + responses: + 204: + description: Email sent successfully to user for email confirmation link + 207: + description: Only a portion of the invitations succeeded, some failed + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 500: + description: Could not reach any recipients + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/share_payment/{workspace}/{teamspace}/{target}: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: target + in: path + description: name or UUID of recipient namespace + type: string + required: true + delete: + tags: + - invitation + description: Revokes invitation from the source namespace to the target. + operationId: cancelSharePayment + responses: + 204: + description: Invitation cancelled successfully + 404: + description: No invitation was found to cancel + default: + description: error response + schema: + $ref: "#/definitions/Error" + /arrays/browser/shared: parameters: - name: page @@ -7886,7 +8692,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -7942,6 +8748,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8032,7 +8843,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -8080,6 +8891,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8162,7 +8978,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -8210,6 +9026,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8318,13 +9139,18 @@ paths: schema: $ref: "#/definitions/Error" - /arrays/favorites/{namespace}/{name}: + /arrays/favorites/{workspace}/{teamspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the array - type: string name: name in: path @@ -8430,13 +9256,18 @@ paths: schema: $ref: "#/definitions/Error" - /notebooks/favorites/{namespace}/{name}: + /notebooks/favorites/{workspace}/{teamspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the notebook - type: string name: name in: path @@ -8537,13 +9368,18 @@ paths: schema: $ref: "#/definitions/Error" - /ml_models/favorites/{namespace}/{name}: + /ml_models/favorites/{workspace}/{teamspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the ML model - type: string name: name in: path @@ -8644,13 +9480,13 @@ paths: schema: $ref: "#/definitions/Error" - /udfs/favorites/{namespace}/{name}: + /udfs/favorites/{workspace}/{name}: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string required: true - description: The namespace of the UDF - type: string name: name in: path @@ -8701,13 +9537,18 @@ paths: schema: $ref: "#/definitions/Error" - /files/{namespace}: + /files/{workspace}/{teamspace}: parameters: - - type: string - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the file - name: FileCreate in: body description: Input/Output information to create a new TileDB file @@ -8736,13 +9577,18 @@ paths: schema: $ref: "#/definitions/Error" - /files/{namespace}/upload: + /files/{workspace}/{teamspace}/upload: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the file - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME in: header description: Optional registered access credentials to use for creation @@ -8781,13 +9627,18 @@ paths: schema: $ref: "#/definitions/Error" - /files/{namespace}/{file}/export: + /files/{workspace}/{teamspace}/{file}/export: parameters: - - type: string - name: namespace + - name: workspace in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the file - type: string name: file in: path @@ -8906,6 +9757,11 @@ paths: description: search only the children of the groups with this uuid type: string required: false + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9016,6 +9872,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9112,6 +9973,11 @@ paths: description: search only the children of the groups with this uuid type: string required: false + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9124,13 +9990,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/contents/filters: + /groups/{workspace}/{teamspace}/{group_name}/contents/filters: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9152,13 +10023,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/contents: + /groups/{workspace}/{teamspace}/{group_name}/contents: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9258,13 +10134,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{namespace}/{array}/register: + /groups/{workspace}/{teamspace}/{array}/register: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: array type: string in: path @@ -9290,13 +10171,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{namespace}/create: + /groups/{workspace}/{teamspace}/create: parameters: - - name: namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group post: description: Creates a new group in the namespace. operationId: createGroup @@ -9317,13 +10203,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/share: + /groups/{workspace}/{teamspace}/{group_name}/share: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9374,13 +10265,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}: + /groups/{workspace}/{teamspace}/{group_name}: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9436,13 +10332,18 @@ paths: schema: $ref: "#/definitions/Error" - /groups/{group_namespace}/{group_name}/content_activity: + /groups/{workspace}/{teamspace}/{group_name}/content_activity: parameters: - - name: group_namespace + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to type: string + required: true + - name: teamspace in: path + description: the teamspace the array belongs to + type: string required: true - description: The namespace of the group - name: group_name type: string in: path @@ -9467,7 +10368,7 @@ paths: 200: description: Activity logs of group contents along with the pagination metadata schema: - $ref: "#/definitions/GroupActivityResponse" + $ref: "#/definitions/GroupContentActivityResponse" 502: description: Bad Gateway default: @@ -9475,18 +10376,19 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/log: + /taskgraphs/{workspace}/log: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true post: description: Create a task graph log. operationId: createTaskGraphLog tags: - task_graph_logs parameters: - - name: namespace - in: path - description: The namespace that will own this task graph log. - type: string - required: true - name: log in: body required: true @@ -9520,6 +10422,11 @@ paths: description: Include logs from only this user. type: string required: false + - name: status + in: query + description: Filter to only return these statuses + type: string + required: false - name: search in: query description: search string that will look at name. @@ -9572,11 +10479,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/logs/{id}: + /taskgraphs/{workspace}/logs/{id}: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph log. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9627,11 +10534,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/logs/{id}/report_client_node: + /taskgraphs/{workspace}/logs/{id}/report_client_node: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph log. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9660,11 +10567,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/executions/{id}/resubmit: + /taskgraphs/{workspace}/executions/{id}/resubmit: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph execution. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9689,11 +10596,11 @@ paths: schema: $ref: '#/definitions/Error' - /taskgraphs/{namespace}/executions/{id}/retry: + /taskgraphs/{workspace}/executions/{id}/retry: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph execution. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9718,11 +10625,11 @@ paths: schema: $ref: '#/definitions/Error' - /taskgraphs/{namespace}/executions/{id}/stop: + /taskgraphs/{workspace}/executions/{id}/stop: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph execution. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9736,10 +10643,8 @@ paths: tags: - task_graph_logs responses: - 202: - description: Information about the task graph execution. - schema: - $ref: "#/definitions/TaskGraphLog" + 204: + description: Graph stopped successfully 502: description: Bad Gateway default: @@ -9748,7 +10653,13 @@ paths: $ref: '#/definitions/Error' # Task graphs - /taskgraphs/{namespace}/graphs: + /taskgraphs/{workspace}/graphs: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true get: description: > Fetch the task graphs of a namespace the user has access to. The @@ -9759,12 +10670,6 @@ paths: Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. operationId: listTaskGraphs - parameters: - - name: namespace - in: path - description: Namespace for graphs - type: string - required: true tags: - task_graphs responses: @@ -9785,11 +10690,6 @@ paths: tags: - task_graphs parameters: - - name: namespace - in: path - description: Include graphs for this namespace. - type: string - required: true - name: graph in: body description: Create the task graph. @@ -9808,11 +10708,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/graphs/{id}: + /taskgraphs/{workspace}/graphs/{id}: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9860,11 +10760,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/graphs/{id}/submit: + /taskgraphs/{workspace}/graphs/{id}/submit: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this task graph. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: id @@ -9872,6 +10772,11 @@ paths: description: The UUID of the task graph entry. type: string required: true + - name: root_task_graph_uuid + in: query + description: UUID of the root taskgraph that this graph is assosiated with + type: string + required: false post: description: > Submit a single task graph for execution. @@ -9893,11 +10798,11 @@ paths: # Task graphs: Registration - /taskgraphs/{namespace}/registered/{name}: + /taskgraphs/{workspace}/registered/{name}: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns this registered UDF. + description: the workspace containing the teamspace the array belongs to type: string required: true - name: name @@ -9980,11 +10885,11 @@ paths: schema: $ref: "#/definitions/Error" - /taskgraphs/{namespace}/registered/{name}/share: + /taskgraphs/{workspace}/registered/{name}/share: parameters: - - name: namespace + - name: workspace in: path - description: The namespace that owns the registered task graph. + description: The workspace that owns the registered task graph. type: string required: true - name: name @@ -10048,3 +10953,163 @@ paths: description: error response schema: $ref: "#/definitions/Error" + + /assets/{workspace}/{teamspace}: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + - name: asset_type + in: query + description: asset_type to filter to + type: string + required: false + - name: ownership_level + in: query + description: ownership_level to filter to (owned, shared) + type: string + required: false + - name: depth + in: query + description: depth of assets to be returned + type: string + required: false + - name: search + in: query + description: search string + type: string + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: order_by + in: query + description: | + order by a specific property, defaults to `created_at desc` + supported values are created_at, name, asset_type + can also include the order type (asc or desc) separated by space + i.e. `name asc` `name desc` etc. + type: string + required: false + - name: expand + in: query + description: expansion option for the AssetInfo object to be added to the response + type: string + required: false + get: + tags: + - assets + description: List assets in a namespace + operationId: listAssets + responses: + 200: + description: Successful list of assets + schema: + $ref: "#/definitions/AssetListResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /public_assets: + parameters: + - name: asset_type + in: query + description: asset_type to filter to + type: string + required: false + - name: depth + in: query + description: depth of assets to be returned + type: string + required: false + - name: search + in: query + description: search string + type: string + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: order_by + in: query + description: | + order by a specific property, defaults to `created_at desc` + supported values are created_at, name, asset_type + can also include the order type (asc or desc) separated by space + i.e. `name asc` `name desc` etc. + type: string + required: false + get: + tags: + - assets + description: List public assets + operationId: listPublicAssets + responses: + 200: + description: Successful list of assets + schema: + $ref: "#/definitions/AssetListResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /assets/{workspace}/{teamspace}/change_credentials: + parameters: + - name: workspace + in: path + description: the workspace containing the teamspace the array belongs to + type: string + required: true + - name: teamspace + in: path + description: the teamspace the array belongs to + type: string + required: true + post: + tags: + - assets + description: Changes the access credentials to the given assets + operationId: changeAssetCredentials + parameters: + - name: changeCredentialsRequest + in: body + description: aws access credentials to store for a namespace + schema: + $ref: "#/definitions/ChangeAssetCredentialsRequest" + required: true + responses: + 204: + description: Credentials changed successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" From 03e3dc5704083abc0bd6deae4ec862d5c2b97e2d Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 15 May 2025 23:19:11 -0400 Subject: [PATCH 10/15] `openapi-generator-cli generate -i openapi-v1.yaml -g java -c config.yaml` --- .openapi-generator/FILES | 215 +-- docs/ActivityEventType.md | 2 + docs/ArrayApi.md | 322 +++-- docs/ArrayInfo.md | 1 + docs/AssetsApi.md | 92 +- docs/ChangeAssetCredentialsRequest.md | 15 + docs/FavoritesApi.md | 138 +- docs/FileUploaded.md | 1 + docs/FilesApi.md | 36 +- docs/GroupsApi.md | 138 +- docs/InvitationApi.md | 72 +- docs/NotebookApi.md | 60 +- docs/NotebooksApi.md | 36 +- docs/OrganizationApi.md | 60 +- docs/OrganizationRoles.md | 2 + docs/QueryApi.md | 60 +- docs/RegisteredTaskGraphsApi.md | 60 +- docs/SqlApi.md | 12 +- docs/TGUDFEnvironment.md | 2 +- docs/TGUDFStorage.md | 9 +- docs/TaskGraphLog.md | 2 + docs/TaskGraphLogsApi.md | 82 +- docs/TaskGraphType.md | 2 + docs/TaskGraphsApi.md | 52 +- docs/TasksApi.md | 12 +- docs/UdfApi.md | 118 +- docs/UserApi.md | 66 +- .../tiledb/cloud/rest_api/ApiException.java | 2 +- .../tiledb/cloud/rest_api/Configuration.java | 2 +- .../java/io/tiledb/cloud/rest_api/JSON.java | 1 + .../java/io/tiledb/cloud/rest_api/Pair.java | 2 +- .../cloud/rest_api/ServerConfiguration.java | 2 +- .../tiledb/cloud/rest_api/ServerVariable.java | 2 +- .../io/tiledb/cloud/rest_api/StringUtil.java | 2 +- .../tiledb/cloud/rest_api/api/ArrayApi.java | 1208 ++++++++++------- .../tiledb/cloud/rest_api/api/AssetsApi.java | 194 ++- .../cloud/rest_api/api/FavoritesApi.java | 522 ++++--- .../tiledb/cloud/rest_api/api/FilesApi.java | 138 +- .../tiledb/cloud/rest_api/api/GroupsApi.java | 510 ++++--- .../cloud/rest_api/api/InvitationApi.java | 276 ++-- .../cloud/rest_api/api/NotebookApi.java | 230 ++-- .../cloud/rest_api/api/NotebooksApi.java | 100 +- .../cloud/rest_api/api/OrganizationApi.java | 230 ++-- .../tiledb/cloud/rest_api/api/QueryApi.java | 230 ++-- .../rest_api/api/RegisteredTaskGraphsApi.java | 216 +-- .../io/tiledb/cloud/rest_api/api/SqlApi.java | 89 +- .../cloud/rest_api/api/TaskGraphLogsApi.java | 296 ++-- .../cloud/rest_api/api/TaskGraphsApi.java | 188 +-- .../tiledb/cloud/rest_api/api/TasksApi.java | 46 +- .../io/tiledb/cloud/rest_api/api/UdfApi.java | 709 +++------- .../io/tiledb/cloud/rest_api/api/UserApi.java | 257 ++-- .../cloud/rest_api/auth/ApiKeyAuth.java | 2 +- .../cloud/rest_api/auth/HttpBearerAuth.java | 2 +- .../io/tiledb/cloud/rest_api/auth/OAuth.java | 2 +- .../tiledb/cloud/rest_api/auth/OAuthFlow.java | 2 +- .../rest_api/auth/OAuthOkHttpClient.java | 1 + .../rest_api/model/AWSAccessCredentials.java | 105 +- .../rest_api/model/AbstractOpenApiSchema.java | 2 +- .../rest_api/model/ActivityEventType.java | 4 +- .../io/tiledb/cloud/rest_api/model/Array.java | 105 +- .../rest_api/model/ArrayActivityLog.java | 136 +- .../rest_api/model/ArrayBrowserData.java | 105 +- .../rest_api/model/ArrayBrowserSidebar.java | 105 +- .../model/ArrayConsolidationRequest.java | 105 +- .../rest_api/model/ArrayEndTimestampData.java | 105 +- .../cloud/rest_api/model/ArrayFavorite.java | 105 +- .../rest_api/model/ArrayFavoritesData.java | 105 +- .../cloud/rest_api/model/ArrayInfo.java | 134 +- .../cloud/rest_api/model/ArrayInfoUpdate.java | 105 +- .../cloud/rest_api/model/ArrayMetadata.java | 105 +- .../rest_api/model/ArrayMetadataEntry.java | 105 +- .../cloud/rest_api/model/ArraySample.java | 105 +- .../cloud/rest_api/model/ArraySchema.java | 105 +- .../cloud/rest_api/model/ArraySharing.java | 105 +- .../cloud/rest_api/model/ArrayTask.java | 105 +- .../model/ArrayTaskBrowserSidebar.java | 105 +- .../cloud/rest_api/model/ArrayTaskData.java | 105 +- .../cloud/rest_api/model/ArrayTaskLog.java | 105 +- .../rest_api/model/ArrayVacuumRequest.java | 105 +- .../cloud/rest_api/model/AssetInfo.java | 105 +- .../rest_api/model/AssetListResponse.java | 105 +- .../cloud/rest_api/model/AssetLocations.java | 105 +- .../cloud/rest_api/model/Attribute.java | 105 +- .../rest_api/model/AttributeBufferHeader.java | 105 +- .../rest_api/model/AttributeBufferSize.java | 105 +- .../tiledb/cloud/rest_api/model/Backoff.java | 105 +- .../model/ChangeAssetCredentialsRequest.java | 257 ++++ .../cloud/rest_api/model/Dimension.java | 105 +- .../rest_api/model/DimensionCoordinate.java | 105 +- .../rest_api/model/DimensionTileExtent.java | 105 +- .../tiledb/cloud/rest_api/model/Domain.java | 105 +- .../cloud/rest_api/model/DomainArray.java | 105 +- .../rest_api/model/DomainCheckResult.java | 105 +- .../cloud/rest_api/model/Enumeration.java | 105 +- .../io/tiledb/cloud/rest_api/model/Error.java | 105 +- .../cloud/rest_api/model/FileCreate.java | 105 +- .../cloud/rest_api/model/FileCreated.java | 105 +- .../cloud/rest_api/model/FileExport.java | 105 +- .../cloud/rest_api/model/FileExported.java | 105 +- .../cloud/rest_api/model/FileUploaded.java | 133 +- .../tiledb/cloud/rest_api/model/Filter.java | 105 +- .../cloud/rest_api/model/FilterData.java | 105 +- .../cloud/rest_api/model/FilterPipeline.java | 105 +- .../cloud/rest_api/model/FilterType.java | 22 +- .../cloud/rest_api/model/FragmentInfo.java | 105 +- .../rest_api/model/FragmentInfoRequest.java | 105 +- .../rest_api/model/FragmentMetadata.java | 105 +- .../cloud/rest_api/model/GenericUDF.java | 105 +- .../model/GetTiledbStats200Response.java | 105 +- .../rest_api/model/GroupBrowserData.java | 105 +- .../model/GroupBrowserFilterData.java | 105 +- .../cloud/rest_api/model/GroupChanges.java | 105 +- .../rest_api/model/GroupContentActivity.java | 105 +- .../model/GroupContentActivityAsset.java | 105 +- .../model/GroupContentActivityResponse.java | 105 +- .../cloud/rest_api/model/GroupContents.java | 105 +- .../model/GroupContentsFilterData.java | 105 +- .../cloud/rest_api/model/GroupCreate.java | 105 +- .../cloud/rest_api/model/GroupEntry.java | 105 +- .../cloud/rest_api/model/GroupInfo.java | 105 +- .../cloud/rest_api/model/GroupMember.java | 105 +- .../cloud/rest_api/model/GroupRegister.java | 105 +- .../cloud/rest_api/model/GroupSharing.java | 105 +- .../rest_api/model/GroupSharingRequest.java | 105 +- .../cloud/rest_api/model/GroupUpdate.java | 105 +- .../cloud/rest_api/model/Invitation.java | 105 +- .../model/InvitationArrayShareEmail.java | 105 +- .../cloud/rest_api/model/InvitationData.java | 105 +- .../model/InvitationFailedRecipients.java | 105 +- .../model/InvitationGroupShareEmail.java | 105 +- .../InvitationOrganizationJoinEmail.java | 105 +- .../rest_api/model/LastAccessedArray.java | 105 +- .../model/LoadArraySchemaRequest.java | 105 +- .../model/LoadArraySchemaResponse.java | 105 +- .../model/LoadEnumerationsRequest.java | 105 +- .../model/LoadEnumerationsResponse.java | 105 +- .../cloud/rest_api/model/MLModelFavorite.java | 105 +- .../rest_api/model/MLModelFavoritesData.java | 105 +- .../cloud/rest_api/model/MaxBufferSizes.java | 105 +- .../rest_api/model/MetadataStringified.java | 105 +- .../model/MetadataStringifiedEntry.java | 105 +- .../cloud/rest_api/model/MultiArrayUDF.java | 105 +- .../cloud/rest_api/model/NonEmptyDomain.java | 105 +- .../cloud/rest_api/model/NotebookCopied.java | 105 +- .../cloud/rest_api/model/NotebookCopy.java | 105 +- .../rest_api/model/NotebookFavorite.java | 105 +- .../rest_api/model/NotebookFavoritesData.java | 105 +- .../cloud/rest_api/model/NotebookStatus.java | 105 +- .../cloud/rest_api/model/Organization.java | 105 +- .../rest_api/model/OrganizationRoles.java | 2 + .../rest_api/model/OrganizationUpdate.java | 105 +- .../rest_api/model/OrganizationUser.java | 105 +- .../rest_api/model/PaginationMetadata.java | 121 +- .../tiledb/cloud/rest_api/model/Pricing.java | 105 +- .../io/tiledb/cloud/rest_api/model/Query.java | 105 +- .../cloud/rest_api/model/QueryJson.java | 105 +- .../cloud/rest_api/model/QueryRanges.java | 105 +- .../cloud/rest_api/model/QueryReader.java | 105 +- .../cloud/rest_api/model/ReadState.java | 105 +- .../rest_api/model/RegisteredTaskGraph.java | 105 +- .../model/ResetUserPasswordRequest.java | 105 +- .../cloud/rest_api/model/RetryStrategy.java | 105 +- .../cloud/rest_api/model/SQLParameters.java | 105 +- .../cloud/rest_api/model/SSODomainConfig.java | 105 +- .../model/SSODomainConfigResponse.java | 105 +- .../cloud/rest_api/model/SSODomainSetup.java | 105 +- .../rest_api/model/SharePaymentRequest.java | 105 +- .../rest_api/model/SingleFragmentInfo.java | 105 +- .../cloud/rest_api/model/StorageLocation.java | 105 +- .../tiledb/cloud/rest_api/model/Subarray.java | 105 +- .../rest_api/model/SubarrayPartitioner.java | 105 +- .../model/SubarrayPartitionerCurrent.java | 105 +- .../model/SubarrayPartitionerState.java | 105 +- .../cloud/rest_api/model/SubarrayRanges.java | 105 +- .../cloud/rest_api/model/Subscription.java | 105 +- .../cloud/rest_api/model/TGArrayNodeData.java | 105 +- .../cloud/rest_api/model/TGInputNodeData.java | 105 +- .../cloud/rest_api/model/TGQueryRanges.java | 105 +- .../cloud/rest_api/model/TGSQLNodeData.java | 105 +- .../cloud/rest_api/model/TGUDFArgument.java | 105 +- .../rest_api/model/TGUDFEnvironment.java | 134 +- .../model/TGUDFEnvironmentResources.java | 105 +- .../cloud/rest_api/model/TGUDFNodeData.java | 105 +- .../cloud/rest_api/model/TGUDFStorage.java | 145 +- .../cloud/rest_api/model/TaskGraph.java | 105 +- .../model/TaskGraphClientNodeStatus.java | 105 +- .../cloud/rest_api/model/TaskGraphLog.java | 148 +- .../rest_api/model/TaskGraphLogsData.java | 105 +- .../cloud/rest_api/model/TaskGraphNode.java | 105 +- .../rest_api/model/TaskGraphNodeMetadata.java | 105 +- .../rest_api/model/TaskGraphSharing.java | 105 +- .../cloud/rest_api/model/TaskGraphType.java | 4 +- .../cloud/rest_api/model/TaskGraphs.java | 105 +- .../cloud/rest_api/model/TileDBConfig.java | 105 +- .../model/TileDBConfigEntriesInner.java | 105 +- .../io/tiledb/cloud/rest_api/model/Token.java | 105 +- .../cloud/rest_api/model/TokenRequest.java | 105 +- .../cloud/rest_api/model/UDFArrayDetails.java | 105 +- .../cloud/rest_api/model/UDFCopied.java | 105 +- .../tiledb/cloud/rest_api/model/UDFCopy.java | 105 +- .../cloud/rest_api/model/UDFFavorite.java | 105 +- .../rest_api/model/UDFFavoritesData.java | 105 +- .../tiledb/cloud/rest_api/model/UDFImage.java | 105 +- .../cloud/rest_api/model/UDFImageVersion.java | 105 +- .../tiledb/cloud/rest_api/model/UDFInfo.java | 105 +- .../cloud/rest_api/model/UDFInfoUpdate.java | 105 +- .../cloud/rest_api/model/UDFLanguage.java | 4 +- .../cloud/rest_api/model/UDFSharing.java | 105 +- .../cloud/rest_api/model/UDFSubarray.java | 105 +- .../rest_api/model/UDFSubarrayRange.java | 105 +- .../tiledb/cloud/rest_api/model/UDFType.java | 4 +- .../io/tiledb/cloud/rest_api/model/User.java | 105 +- .../tiledb/cloud/rest_api/model/Writer.java | 105 +- .../cloud/rest_api/api/ArrayApiTest.java | 132 +- .../cloud/rest_api/api/AssetsApiTest.java | 20 +- .../cloud/rest_api/api/FavoritesApiTest.java | 57 +- .../cloud/rest_api/api/FilesApiTest.java | 15 +- .../cloud/rest_api/api/GroupsApiTest.java | 57 +- .../cloud/rest_api/api/InvitationApiTest.java | 30 +- .../cloud/rest_api/api/NotebookApiTest.java | 25 +- .../cloud/rest_api/api/NotebooksApiTest.java | 14 +- .../rest_api/api/OrganizationApiTest.java | 25 +- .../cloud/rest_api/api/QueryApiTest.java | 25 +- .../api/RegisteredTaskGraphsApiTest.java | 24 +- .../tiledb/cloud/rest_api/api/SqlApiTest.java | 5 +- .../rest_api/api/TaskGraphLogsApiTest.java | 33 +- .../cloud/rest_api/api/TaskGraphsApiTest.java | 21 +- .../cloud/rest_api/api/TasksApiTest.java | 5 +- .../tiledb/cloud/rest_api/api/UdfApiTest.java | 47 +- .../cloud/rest_api/api/UserApiTest.java | 29 +- .../cloud/rest_api/model/ArrayInfoTest.java | 8 + .../ChangeAssetCredentialsRequestTest.java | 58 + .../rest_api/model/FileUploadedTest.java | 8 + .../rest_api/model/TGUDFEnvironmentTest.java | 7 +- .../rest_api/model/TGUDFStorageTest.java | 8 + .../rest_api/model/TaskGraphLogTest.java | 16 + 236 files changed, 6584 insertions(+), 17373 deletions(-) create mode 100644 docs/ChangeAssetCredentialsRequest.md create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequestTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8fad433..ef206e5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -42,6 +42,7 @@ docs/Attribute.md docs/AttributeBufferHeader.md docs/AttributeBufferSize.md docs/Backoff.md +docs/ChangeAssetCredentialsRequest.md docs/Datatype.md docs/Dimension.md docs/DimensionCoordinate.md @@ -301,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 @@ -459,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/docs/ActivityEventType.md b/docs/ActivityEventType.md index d8562a3..2890d0e 100644 --- a/docs/ActivityEventType.md +++ b/docs/ActivityEventType.md @@ -37,5 +37,7 @@ * `READ_ENUMERATIONS` (value: `"read_enumerations"`) +* `NEXTFLOW` (value: `"nextflow"`) + diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index dad6d50..4949da7 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -4,45 +4,45 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**arrayActivityLog**](ArrayApi.md#arrayActivityLog) | **GET** /arrays/{namespace}/{array}/activity | | +| [**arrayActivityLog**](ArrayApi.md#arrayActivityLog) | **GET** /arrays/{workspace}/{teamspace}/{array}/activity | | | [**arraysBrowserOwnedGet**](ArrayApi.md#arraysBrowserOwnedGet) | **GET** /arrays/browser/owned | | | [**arraysBrowserOwnedSidebarGet**](ArrayApi.md#arraysBrowserOwnedSidebarGet) | **GET** /arrays/browser/owned/sidebar | | | [**arraysBrowserPublicGet**](ArrayApi.md#arraysBrowserPublicGet) | **GET** /arrays/browser/public | | | [**arraysBrowserPublicSidebarGet**](ArrayApi.md#arraysBrowserPublicSidebarGet) | **GET** /arrays/browser/public/sidebar | | | [**arraysBrowserSharedGet**](ArrayApi.md#arraysBrowserSharedGet) | **GET** /arrays/browser/shared | | | [**arraysBrowserSharedSidebarGet**](ArrayApi.md#arraysBrowserSharedSidebarGet) | **GET** /arrays/browser/shared/sidebar | | -| [**arraysNamespaceArrayEndTimestampsGet**](ArrayApi.md#arraysNamespaceArrayEndTimestampsGet) | **GET** /arrays/{namespace}/{array}/end_timestamps | | -| [**consolidateArray**](ArrayApi.md#consolidateArray) | **POST** /arrays/{namespace}/{array}/consolidate | | -| [**createArray**](ArrayApi.md#createArray) | **POST** /arrays/{namespace}/{array} | | -| [**deleteArray**](ArrayApi.md#deleteArray) | **DELETE** /arrays/{namespace}/{array} | | -| [**deregisterArray**](ArrayApi.md#deregisterArray) | **DELETE** /arrays/{namespace}/{array}/deregister | | -| [**fragmentInfo**](ArrayApi.md#fragmentInfo) | **POST** /arrays/{namespace}/{array}/fragment_info | | -| [**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | | +| [**arraysWorkspaceTeamspaceArrayEndTimestampsGet**](ArrayApi.md#arraysWorkspaceTeamspaceArrayEndTimestampsGet) | **GET** /arrays/{workspace}/{teamspace}/{array}/end_timestamps | | +| [**consolidateArray**](ArrayApi.md#consolidateArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/consolidate | | +| [**createArray**](ArrayApi.md#createArray) | **POST** /arrays/{workspace}/{teamspace}/{array} | | +| [**deleteArray**](ArrayApi.md#deleteArray) | **DELETE** /arrays/{workspace}/{teamspace}/{array} | | +| [**deregisterArray**](ArrayApi.md#deregisterArray) | **DELETE** /arrays/{workspace}/{teamspace}/{array}/deregister | | +| [**fragmentInfo**](ArrayApi.md#fragmentInfo) | **POST** /arrays/{workspace}/{teamspace}/{array}/fragment_info | | +| [**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{workspace}/{teamspace}/{array}/activity/{id} | | | [**getAllArrayMetadata**](ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | | -| [**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | | -| [**getArrayMaxBufferSizes**](ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{namespace}/{array}/max_buffer_sizes | | -| [**getArrayMetaDataJson**](ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{namespace}/{array}/metadata_json | | -| [**getArrayMetadata**](ArrayApi.md#getArrayMetadata) | **GET** /arrays/{namespace}/{array}/metadata | | -| [**getArrayMetadataCapnp**](ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{namespace}/{array}/array_metadata | | -| [**getArrayNonEmptyDomain**](ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{namespace}/{array}/non_empty_domain | | -| [**getArrayNonEmptyDomainJson**](ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{namespace}/{array}/non_empty_domain_json | | -| [**getArraySampleData**](ArrayApi.md#getArraySampleData) | **GET** /arrays/{namespace}/{array}/sample | | -| [**getArraySharingPolicies**](ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{namespace}/{array}/share | | -| [**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | | -| [**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | | +| [**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{workspace}/{teamspace}/{array} | | +| [**getArrayMaxBufferSizes**](ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{workspace}/{teamspace}/{array}/max_buffer_sizes | | +| [**getArrayMetaDataJson**](ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{workspace}/{teamspace}/{array}/metadata_json | | +| [**getArrayMetadata**](ArrayApi.md#getArrayMetadata) | **GET** /arrays/{workspace}/{teamspace}/{array}/metadata | | +| [**getArrayMetadataCapnp**](ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{workspace}/{teamspace}/{array}/array_metadata | | +| [**getArrayNonEmptyDomain**](ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{workspace}/{teamspace}/{array}/non_empty_domain | | +| [**getArrayNonEmptyDomainJson**](ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{workspace}/{teamspace}/{array}/non_empty_domain_json | | +| [**getArraySampleData**](ArrayApi.md#getArraySampleData) | **GET** /arrays/{workspace}/{teamspace}/{array}/sample | | +| [**getArraySharingPolicies**](ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{workspace}/{teamspace}/{array}/share | | +| [**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{workspace}/{teamspace} | | +| [**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{workspace}/{teamspace}/{array}/fragment_end_timestamp | | | [**getLastAccessedArrays**](ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | | -| [**loadArraySchema**](ArrayApi.md#loadArraySchema) | **POST** /arrays/{namespace}/{array}/schema | | -| [**loadEnumerations**](ArrayApi.md#loadEnumerations) | **POST** /arrays/{namespace}/{array}/enumerations | | -| [**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | | -| [**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | | -| [**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | | -| [**updateArrayMetadataCapnp**](ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{namespace}/{array}/array_metadata | | -| [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | | +| [**loadArraySchema**](ArrayApi.md#loadArraySchema) | **POST** /arrays/{workspace}/{teamspace}/{array}/schema | | +| [**loadEnumerations**](ArrayApi.md#loadEnumerations) | **POST** /arrays/{workspace}/{teamspace}/{array}/enumerations | | +| [**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/register | | +| [**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{workspace}/{teamspace}/{array}/share | | +| [**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{workspace}/{teamspace}/{array}/metadata | | +| [**updateArrayMetadataCapnp**](ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{workspace}/{teamspace}/{array}/array_metadata | | +| [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/vacuum | | # **arrayActivityLog** -> List<ArrayActivityLog> arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId) +> List<ArrayActivityLog> arrayActivityLog(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId) @@ -75,7 +75,8 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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) @@ -83,7 +84,7 @@ public class Example { String taskId = "taskId_example"; // String | Array task ID To filter activity to Boolean hasTaskId = true; // Boolean | Excludes activity log results that do not contain an array task UUID try { - List result = apiInstance.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); + 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"); @@ -100,7 +101,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **start** | **Integer**| Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) | [optional] | | **end** | **Integer**| End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) | [optional] | @@ -666,9 +668,9 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - -# **arraysNamespaceArrayEndTimestampsGet** -> ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) + +# **arraysWorkspaceTeamspaceArrayEndTimestampsGet** +> ArrayEndTimestampData arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage) @@ -701,15 +703,16 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + ArrayEndTimestampData result = apiInstance.arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysNamespaceArrayEndTimestampsGet"); + 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()); @@ -723,7 +726,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -750,7 +754,7 @@ public class Example { # **consolidateArray** -> consolidateArray(namespace, array, consolidateRequest) +> consolidateArray(workspace, teamspace, array, consolidateRequest) @@ -783,11 +787,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, consolidateRequest); + apiInstance.consolidateArray(workspace, teamspace, array, consolidateRequest); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#consolidateArray"); System.err.println("Status code: " + e.getCode()); @@ -803,7 +808,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **consolidateRequest** | [**ArrayConsolidationRequest**](ArrayConsolidationRequest.md)| Consolidate Request | | @@ -829,7 +835,7 @@ null (empty response body) # **createArray** -> createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) +> createArray(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) @@ -862,13 +868,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + 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()); @@ -884,7 +891,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **arraySchema** | [**ArraySchema**](ArraySchema.md)| ArraySchema being created | | @@ -912,7 +920,7 @@ null (empty response body) # **deleteArray** -> deleteArray(namespace, array, contentType) +> deleteArray(workspace, teamspace, array, contentType) @@ -945,11 +953,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType); + apiInstance.deleteArray(workspace, teamspace, array, contentType); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#deleteArray"); System.err.println("Status code: " + e.getCode()); @@ -965,7 +974,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -991,7 +1001,7 @@ null (empty response body) # **deregisterArray** -> deregisterArray(namespace, array) +> deregisterArray(workspace, teamspace, array) @@ -1024,10 +1034,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array); + apiInstance.deregisterArray(workspace, teamspace, array); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#deregisterArray"); System.err.println("Status code: " + e.getCode()); @@ -1043,7 +1054,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1068,7 +1080,7 @@ null (empty response body) # **fragmentInfo** -> FragmentInfo fragmentInfo(namespace, array, contentType, fragmentInfoRequest) +> FragmentInfo fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest) @@ -1101,12 +1113,13 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType, fragmentInfoRequest); + FragmentInfo result = apiInstance.fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#fragmentInfo"); @@ -1123,7 +1136,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **fragmentInfoRequest** | [**FragmentInfoRequest**](FragmentInfoRequest.md)| ArraySchema being created | | @@ -1149,7 +1163,7 @@ public class Example { # **getActivityLogById** -> ArrayActivityLog getActivityLogById(namespace, array, id) +> ArrayActivityLog getActivityLogById(workspace, teamspace, array, id) @@ -1182,11 +1196,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, id); + ArrayActivityLog result = apiInstance.getActivityLogById(workspace, teamspace, array, id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getActivityLogById"); @@ -1203,7 +1218,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **id** | **String**| ID of the activity | | @@ -1305,7 +1321,7 @@ public class Example { # **getArray** -> ArraySchema getArray(namespace, array, contentType) +> ArraySchema getArray(workspace, teamspace, array, contentType) @@ -1338,11 +1354,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType); + ArraySchema result = apiInstance.getArray(workspace, teamspace, array, contentType); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArray"); @@ -1359,7 +1376,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -1385,7 +1403,7 @@ public class Example { # **getArrayMaxBufferSizes** -> MaxBufferSizes getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer) +> MaxBufferSizes getArrayMaxBufferSizes(workspace, teamspace, array, subarray, contentType, xPayer) @@ -1418,13 +1436,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, subarray, contentType, xPayer); + 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"); @@ -1441,7 +1460,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **subarray** | **String**| CSV string of subarray to get max buffer sizes for | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -1469,7 +1489,7 @@ public class Example { # **getArrayMetaDataJson** -> Map<String, Object> getArrayMetaDataJson(namespace, array, length, endTimestamp) +> Map<String, Object> getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp) @@ -1502,12 +1522,13 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, length, endTimestamp); + Map result = apiInstance.getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArrayMetaDataJson"); @@ -1524,7 +1545,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **length** | **Integer**| (optional) limit character length of returned values | [optional] | | **endTimestamp** | **Integer**| Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp | [optional] | @@ -1551,7 +1573,7 @@ public class Example { # **getArrayMetadata** -> ArrayInfo getArrayMetadata(namespace, array) +> ArrayInfo getArrayMetadata(workspace, teamspace, array) @@ -1584,10 +1606,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array); + ArrayInfo result = apiInstance.getArrayMetadata(workspace, teamspace, array); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArrayMetadata"); @@ -1604,7 +1627,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1629,7 +1653,7 @@ public class Example { # **getArrayMetadataCapnp** -> ArrayMetadata getArrayMetadataCapnp(namespace, array) +> ArrayMetadata getArrayMetadataCapnp(workspace, teamspace, array) @@ -1662,10 +1686,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array); + ArrayMetadata result = apiInstance.getArrayMetadataCapnp(workspace, teamspace, array); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArrayMetadataCapnp"); @@ -1682,7 +1707,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1707,7 +1733,7 @@ public class Example { # **getArrayNonEmptyDomain** -> NonEmptyDomain getArrayNonEmptyDomain(namespace, array, contentType, xPayer) +> NonEmptyDomain getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer) @@ -1740,12 +1766,13 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType, xPayer); + NonEmptyDomain result = apiInstance.getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomain"); @@ -1762,7 +1789,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | @@ -1789,7 +1817,7 @@ public class Example { # **getArrayNonEmptyDomainJson** -> Map<String, Object> getArrayNonEmptyDomainJson(namespace, array) +> Map<String, Object> getArrayNonEmptyDomainJson(workspace, teamspace, array) @@ -1822,10 +1850,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array); + Map result = apiInstance.getArrayNonEmptyDomainJson(workspace, teamspace, array); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomainJson"); @@ -1842,7 +1871,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -1867,7 +1897,7 @@ public class Example { # **getArraySampleData** -> ArraySample getArraySampleData(namespace, array, samples) +> ArraySample getArraySampleData(workspace, teamspace, array, samples) @@ -1900,11 +1930,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, samples); + ArraySample result = apiInstance.getArraySampleData(workspace, teamspace, array, samples); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraySampleData"); @@ -1921,7 +1952,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **samples** | **BigDecimal**| Number of sample results to return | [optional] [default to 5.0] | @@ -1947,7 +1979,7 @@ public class Example { # **getArraySharingPolicies** -> List<ArraySharing> getArraySharingPolicies(namespace, array) +> List<ArraySharing> getArraySharingPolicies(workspace, teamspace, array) @@ -1980,10 +2012,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array); + List result = apiInstance.getArraySharingPolicies(workspace, teamspace, array); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraySharingPolicies"); @@ -2000,7 +2033,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | ### Return type @@ -2026,7 +2060,7 @@ public class Example { # **getArraysInNamespace** -> List<ArrayInfo> getArraysInNamespace(namespace, withMetadata) +> List<ArrayInfo> getArraysInNamespace(workspace, teamspace, withMetadata) @@ -2059,10 +2093,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, withMetadata); + List result = apiInstance.getArraysInNamespace(workspace, teamspace, withMetadata); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); @@ -2079,7 +2114,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **withMetadata** | **Boolean**| include the metadata of the arrays | [optional] | ### Return type @@ -2104,7 +2140,7 @@ public class Example { # **getFragmentEndTimestamp** -> Integer getFragmentEndTimestamp(namespace, array, endTimestamp) +> Integer getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp) @@ -2137,11 +2173,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, endTimestamp); + Integer result = apiInstance.getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getFragmentEndTimestamp"); @@ -2158,7 +2195,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **endTimestamp** | **Integer**| Milliseconds since Unix epoch | [optional] | @@ -2254,7 +2292,7 @@ This endpoint does not need any parameter. # **loadArraySchema** -> LoadArraySchemaResponse loadArraySchema(namespace, array, loadArraySchemaRequest) +> LoadArraySchemaResponse loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest) @@ -2287,11 +2325,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, loadArraySchemaRequest); + LoadArraySchemaResponse result = apiInstance.loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#loadArraySchema"); @@ -2308,7 +2347,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **loadArraySchemaRequest** | [**LoadArraySchemaRequest**](LoadArraySchemaRequest.md)| Load Array Schema Request | | @@ -2335,7 +2375,7 @@ public class Example { # **loadEnumerations** -> LoadEnumerationsResponse loadEnumerations(namespace, array, loadEnumerationsRequest) +> LoadEnumerationsResponse loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest) @@ -2368,11 +2408,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, loadEnumerationsRequest); + LoadEnumerationsResponse result = apiInstance.loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#loadEnumerations"); @@ -2389,7 +2430,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **loadEnumerationsRequest** | [**LoadEnumerationsRequest**](LoadEnumerationsRequest.md)| Load Enumerations Request | | @@ -2416,7 +2458,7 @@ public class Example { # **registerArray** -> ArrayInfo registerArray(namespace, array, arrayMetadata) +> ArrayInfo registerArray(workspace, teamspace, array, arrayMetadata) @@ -2449,11 +2491,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded + String 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(namespace, array, arrayMetadata); + ArrayInfo result = apiInstance.registerArray(workspace, teamspace, array, arrayMetadata); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#registerArray"); @@ -2470,8 +2513,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | -| **array** | **String**| name/uri of array that is url-encoded | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | +| **array** | **String**| asset id or path of array that is url-encoded | | | **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| metadata associated with array | | ### Return type @@ -2496,7 +2540,7 @@ public class Example { # **shareArray** -> shareArray(namespace, array, arraySharing) +> shareArray(workspace, teamspace, array, arraySharing) @@ -2529,11 +2573,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, arraySharing); + apiInstance.shareArray(workspace, teamspace, array, arraySharing); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#shareArray"); System.err.println("Status code: " + e.getCode()); @@ -2549,7 +2594,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arraySharing** | [**ArraySharing**](ArraySharing.md)| Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. | | @@ -2576,7 +2622,7 @@ null (empty response body) # **updateArrayMetadata** -> updateArrayMetadata(namespace, array, arrayMetadata) +> updateArrayMetadata(workspace, teamspace, array, arrayMetadata) @@ -2609,11 +2655,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, arrayMetadata); + apiInstance.updateArrayMetadata(workspace, teamspace, array, arrayMetadata); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#updateArrayMetadata"); System.err.println("Status code: " + e.getCode()); @@ -2629,7 +2676,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| array metadata to update | | @@ -2655,7 +2703,7 @@ null (empty response body) # **updateArrayMetadataCapnp** -> updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries) +> updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries) @@ -2688,11 +2736,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, arrayMetadataEntries); + apiInstance.updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#updateArrayMetadataCapnp"); System.err.println("Status code: " + e.getCode()); @@ -2708,7 +2757,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **arrayMetadataEntries** | [**ArrayMetadata**](ArrayMetadata.md)| List of metadata entries | | @@ -2734,7 +2784,7 @@ null (empty response body) # **vacuumArray** -> vacuumArray(namespace, array, vaccumRequest) +> vacuumArray(workspace, teamspace, array, vaccumRequest) @@ -2767,11 +2817,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, vaccumRequest); + apiInstance.vacuumArray(workspace, teamspace, array, vaccumRequest); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#vacuumArray"); System.err.println("Status code: " + e.getCode()); @@ -2787,7 +2838,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **vaccumRequest** | [**ArrayVacuumRequest**](ArrayVacuumRequest.md)| Vaccum Request | | diff --git a/docs/ArrayInfo.md b/docs/ArrayInfo.md index 9fae9b7..56c4150 100644 --- a/docs/ArrayInfo.md +++ b/docs/ArrayInfo.md @@ -9,6 +9,7 @@ metadata of an array | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **String** | unique ID of registered array | [optional] | +|**assetId** | **String** | The asset id of the created array | [optional] | |**fileType** | **FileType** | | [optional] | |**fileProperties** | **Map<String, String>** | map of file properties created for this array | [optional] | |**uri** | **String** | uri of array | [optional] | diff --git a/docs/AssetsApi.md b/docs/AssetsApi.md index f7ddd98..d89b1b8 100644 --- a/docs/AssetsApi.md +++ b/docs/AssetsApi.md @@ -4,13 +4,93 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**listAssets**](AssetsApi.md#listAssets) | **GET** /assets/{namespace} | | +| [**changeAssetCredentials**](AssetsApi.md#changeAssetCredentials) | **POST** /assets/{workspace}/{teamspace}/change_credentials | | +| [**listAssets**](AssetsApi.md#listAssets) | **GET** /assets/{workspace}/{teamspace} | | | [**listPublicAssets**](AssetsApi.md#listPublicAssets) | **GET** /public_assets | | + +# **changeAssetCredentials** +> changeAssetCredentials(workspace, teamspace, changeCredentialsRequest) + + + +Changes the access credentials to the given assets + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.api.AssetsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | +| **changeCredentialsRequest** | [**ChangeAssetCredentialsRequest**](ChangeAssetCredentialsRequest.md)| aws access credentials to store for a namespace | | + +### Return type + +null (empty response body) + +### Authorization + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Credentials changed successfully | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + # **listAssets** -> AssetListResponse listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand) +> AssetListResponse listAssets(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand) @@ -43,7 +123,8 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); AssetsApi apiInstance = new AssetsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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 @@ -53,7 +134,7 @@ public class Example { String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. String expand = "expand_example"; // String | expansion option for the AssetInfo object to be added to the response try { - AssetListResponse result = apiInstance.listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + 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"); @@ -70,7 +151,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **assetType** | **String**| asset_type to filter to | [optional] | | **ownershipLevel** | **String**| ownership_level to filter to (owned, shared) | [optional] | | **depth** | **String**| depth of assets to be returned | [optional] | diff --git a/docs/ChangeAssetCredentialsRequest.md b/docs/ChangeAssetCredentialsRequest.md new file mode 100644 index 0000000..a277a74 --- /dev/null +++ b/docs/ChangeAssetCredentialsRequest.md @@ -0,0 +1,15 @@ + + +# ChangeAssetCredentialsRequest + +Request body to change the credentials of the given assets + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessCredentials** | **String** | The name or uuid of the access credentials | | +|**assetUuids** | **List<String>** | The list of asset uuids to have their credentials changed | | + + + diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index 95fbd64..20ee437 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -4,18 +4,18 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addArrayFavorite**](FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{namespace}/{name} | | -| [**addMLModelFavorite**](FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{namespace}/{name} | | -| [**addNotebookFavorite**](FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{namespace}/{name} | | -| [**addUDFFavorite**](FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{namespace}/{name} | | -| [**deleteArrayFavorite**](FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{namespace}/{name} | | -| [**deleteMLModelFavorite**](FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{namespace}/{name} | | -| [**deleteNotebookFavorite**](FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{namespace}/{name} | | -| [**deleteUDFFavorite**](FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{namespace}/{name} | | -| [**getArrayFavorite**](FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{namespace}/{name} | | -| [**getMLModelFavorite**](FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{namespace}/{name} | | -| [**getNotebookFavorite**](FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{namespace}/{name} | | -| [**getUDFFavorite**](FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{namespace}/{name} | | +| [**addArrayFavorite**](FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{workspace}/{teamspace}/{name} | | +| [**addMLModelFavorite**](FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{workspace}/{teamspace}/{name} | | +| [**addNotebookFavorite**](FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{workspace}/{teamspace}/{name} | | +| [**addUDFFavorite**](FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{workspace}/{name} | | +| [**deleteArrayFavorite**](FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{workspace}/{teamspace}/{name} | | +| [**deleteMLModelFavorite**](FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{workspace}/{teamspace}/{name} | | +| [**deleteNotebookFavorite**](FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{workspace}/{teamspace}/{name} | | +| [**deleteUDFFavorite**](FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{workspace}/{name} | | +| [**getArrayFavorite**](FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{workspace}/{teamspace}/{name} | | +| [**getMLModelFavorite**](FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{workspace}/{teamspace}/{name} | | +| [**getNotebookFavorite**](FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{workspace}/{teamspace}/{name} | | +| [**getUDFFavorite**](FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{workspace}/{name} | | | [**listArrayFavorites**](FavoritesApi.md#listArrayFavorites) | **GET** /arrays/favorites | | | [**listArrayFavoritesUUIDs**](FavoritesApi.md#listArrayFavoritesUUIDs) | **GET** /arrays/favorites/uuids | | | [**listMLModelFavorites**](FavoritesApi.md#listMLModelFavorites) | **GET** /ml_models/favorites | | @@ -28,7 +28,7 @@ All URIs are relative to */v1* # **addArrayFavorite** -> addArrayFavorite(namespace, name) +> addArrayFavorite(workspace, teamspace, name) @@ -61,10 +61,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array + 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(namespace, name); + apiInstance.addArrayFavorite(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#addArrayFavorite"); System.err.println("Status code: " + e.getCode()); @@ -80,7 +81,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the array | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the array | | ### Return type @@ -105,7 +107,7 @@ null (empty response body) # **addMLModelFavorite** -> addMLModelFavorite(namespace, name) +> addMLModelFavorite(workspace, teamspace, name) @@ -138,10 +140,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model + 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(namespace, name); + apiInstance.addMLModelFavorite(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#addMLModelFavorite"); System.err.println("Status code: " + e.getCode()); @@ -157,7 +160,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the ML model | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the ML model | | ### Return type @@ -182,7 +186,7 @@ null (empty response body) # **addNotebookFavorite** -> addNotebookFavorite(namespace, name) +> addNotebookFavorite(workspace, teamspace, name) @@ -215,10 +219,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook + 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(namespace, name); + apiInstance.addNotebookFavorite(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#addNotebookFavorite"); System.err.println("Status code: " + e.getCode()); @@ -234,7 +239,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the notebook | | ### Return type @@ -259,7 +265,7 @@ null (empty response body) # **addUDFFavorite** -> addUDFFavorite(namespace, name) +> addUDFFavorite(workspace, name) @@ -292,10 +298,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF + 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(namespace, name); + apiInstance.addUDFFavorite(workspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#addUDFFavorite"); System.err.println("Status code: " + e.getCode()); @@ -311,7 +317,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the UDF | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the UDF | | ### Return type @@ -336,7 +342,7 @@ null (empty response body) # **deleteArrayFavorite** -> deleteArrayFavorite(namespace, name) +> deleteArrayFavorite(workspace, teamspace, name) @@ -369,10 +375,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array + 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(namespace, name); + apiInstance.deleteArrayFavorite(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#deleteArrayFavorite"); System.err.println("Status code: " + e.getCode()); @@ -388,7 +395,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the array | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the array | | ### Return type @@ -413,7 +421,7 @@ null (empty response body) # **deleteMLModelFavorite** -> deleteMLModelFavorite(namespace, name) +> deleteMLModelFavorite(workspace, teamspace, name) @@ -446,10 +454,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model + 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(namespace, name); + apiInstance.deleteMLModelFavorite(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#deleteMLModelFavorite"); System.err.println("Status code: " + e.getCode()); @@ -465,7 +474,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the ML model | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the ML model | | ### Return type @@ -490,7 +500,7 @@ null (empty response body) # **deleteNotebookFavorite** -> deleteNotebookFavorite(namespace, name) +> deleteNotebookFavorite(workspace, teamspace, name) @@ -523,10 +533,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook + 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(namespace, name); + apiInstance.deleteNotebookFavorite(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#deleteNotebookFavorite"); System.err.println("Status code: " + e.getCode()); @@ -542,7 +553,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the notebook | | ### Return type @@ -567,7 +579,7 @@ null (empty response body) # **deleteUDFFavorite** -> deleteUDFFavorite(namespace, name) +> deleteUDFFavorite(workspace, name) @@ -600,10 +612,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF + 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(namespace, name); + apiInstance.deleteUDFFavorite(workspace, name); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#deleteUDFFavorite"); System.err.println("Status code: " + e.getCode()); @@ -619,7 +631,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the UDF | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the UDF | | ### Return type @@ -644,7 +656,7 @@ null (empty response body) # **getArrayFavorite** -> ArrayFavorite getArrayFavorite(namespace, name) +> ArrayFavorite getArrayFavorite(workspace, teamspace, name) @@ -677,10 +689,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array + 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(namespace, name); + ArrayFavorite result = apiInstance.getArrayFavorite(workspace, teamspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#getArrayFavorite"); @@ -697,7 +710,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the array | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the array | | ### Return type @@ -722,7 +736,7 @@ public class Example { # **getMLModelFavorite** -> MLModelFavorite getMLModelFavorite(namespace, name) +> MLModelFavorite getMLModelFavorite(workspace, teamspace, name) @@ -755,10 +769,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model + 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(namespace, name); + MLModelFavorite result = apiInstance.getMLModelFavorite(workspace, teamspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#getMLModelFavorite"); @@ -775,7 +790,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the ML model | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the ML model | | ### Return type @@ -800,7 +816,7 @@ public class Example { # **getNotebookFavorite** -> NotebookFavorite getNotebookFavorite(namespace, name) +> NotebookFavorite getNotebookFavorite(workspace, teamspace, name) @@ -833,10 +849,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook + 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(namespace, name); + NotebookFavorite result = apiInstance.getNotebookFavorite(workspace, teamspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#getNotebookFavorite"); @@ -853,7 +870,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **name** | **String**| The name of the notebook | | ### Return type @@ -878,7 +896,7 @@ public class Example { # **getUDFFavorite** -> UDFFavorite getUDFFavorite(namespace, name) +> UDFFavorite getUDFFavorite(workspace, name) @@ -911,10 +929,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF + 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(namespace, name); + UDFFavorite result = apiInstance.getUDFFavorite(workspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FavoritesApi#getUDFFavorite"); @@ -931,7 +949,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the UDF | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the UDF | | ### Return type diff --git a/docs/FileUploaded.md b/docs/FileUploaded.md index 43308c9..3993003 100644 --- a/docs/FileUploaded.md +++ b/docs/FileUploaded.md @@ -10,6 +10,7 @@ Uploaded file name and information |------------ | ------------- | ------------- | -------------| |**outputUri** | **String** | output location of the TileDB File | [optional] | |**fileName** | **String** | name of the file uploaded | [optional] | +|**assetId** | **String** | The asset id of the created Group | | |**id** | **String** | unique ID of the uploaded file | | diff --git a/docs/FilesApi.md b/docs/FilesApi.md index c2e9765..1809bdb 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -4,14 +4,14 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**handleCreateFile**](FilesApi.md#handleCreateFile) | **POST** /files/{namespace} | | -| [**handleExportFile**](FilesApi.md#handleExportFile) | **POST** /files/{namespace}/{file}/export | | -| [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | | +| [**handleCreateFile**](FilesApi.md#handleCreateFile) | **POST** /files/{workspace}/{teamspace} | | +| [**handleExportFile**](FilesApi.md#handleExportFile) | **POST** /files/{workspace}/{teamspace}/{file}/export | | +| [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{workspace}/{teamspace}/upload | | # **handleCreateFile** -> FileCreated handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) +> FileCreated handleCreateFile(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) @@ -44,11 +44,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file + 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(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + 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"); @@ -65,7 +66,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the file | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **fileCreate** | [**FileCreate**](FileCreate.md)| Input/Output information to create a new TileDB file | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | @@ -91,7 +93,7 @@ public class Example { # **handleExportFile** -> FileExported handleExportFile(namespace, _file, fileExport) +> FileExported handleExportFile(workspace, teamspace, _file, fileExport) @@ -124,11 +126,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file + 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(namespace, _file, fileExport); + FileExported result = apiInstance.handleExportFile(workspace, teamspace, _file, fileExport); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FilesApi#handleExportFile"); @@ -145,7 +148,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the file | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **_file** | **String**| The file identifier | | | **fileExport** | [**FileExport**](FileExport.md)| Export configuration information | | @@ -171,7 +175,7 @@ public class Example { # **handleUploadFile** -> FileUploaded handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) +> FileUploaded handleUploadFile(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) @@ -204,13 +208,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file + 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(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + 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"); @@ -227,7 +232,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the file | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **inputFile** | **File**| the file to upload | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | | **outputUri** | **String**| output location of the TileDB File | [optional] | diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 5e2a015..8a31860 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -4,28 +4,28 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**changeGroupContents**](GroupsApi.md#changeGroupContents) | **POST** /groups/{group_namespace}/{group_name}/contents | | -| [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups/{namespace}/create | | -| [**deleteGroup**](GroupsApi.md#deleteGroup) | **DELETE** /groups/{group_namespace}/{group_name} | | -| [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{group_namespace}/{group_name} | | -| [**getGroupActivity**](GroupsApi.md#getGroupActivity) | **GET** /groups/{group_namespace}/{group_name}/content_activity | | -| [**getGroupContents**](GroupsApi.md#getGroupContents) | **GET** /groups/{group_namespace}/{group_name}/contents | | -| [**getGroupSharingPolicies**](GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{group_namespace}/{group_name}/share | | +| [**changeGroupContents**](GroupsApi.md#changeGroupContents) | **POST** /groups/{workspace}/{teamspace}/{group_name}/contents | | +| [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups/{workspace}/{teamspace}/create | | +| [**deleteGroup**](GroupsApi.md#deleteGroup) | **DELETE** /groups/{workspace}/{teamspace}/{group_name} | | +| [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{workspace}/{teamspace}/{group_name} | | +| [**getGroupActivity**](GroupsApi.md#getGroupActivity) | **GET** /groups/{workspace}/{teamspace}/{group_name}/content_activity | | +| [**getGroupContents**](GroupsApi.md#getGroupContents) | **GET** /groups/{workspace}/{teamspace}/{group_name}/contents | | +| [**getGroupSharingPolicies**](GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{workspace}/{teamspace}/{group_name}/share | | | [**groupsBrowserOwnedFiltersGet**](GroupsApi.md#groupsBrowserOwnedFiltersGet) | **GET** /groups/browser/owned/filters | | | [**groupsBrowserPublicFiltersGet**](GroupsApi.md#groupsBrowserPublicFiltersGet) | **GET** /groups/browser/public/filters | | | [**groupsBrowserSharedFiltersGet**](GroupsApi.md#groupsBrowserSharedFiltersGet) | **GET** /groups/browser/shared/filters | | -| [**groupsGroupNamespaceGroupNameContentsFiltersGet**](GroupsApi.md#groupsGroupNamespaceGroupNameContentsFiltersGet) | **GET** /groups/{group_namespace}/{group_name}/contents/filters | | +| [**groupsWorkspaceTeamspaceGroupNameContentsFiltersGet**](GroupsApi.md#groupsWorkspaceTeamspaceGroupNameContentsFiltersGet) | **GET** /groups/{workspace}/{teamspace}/{group_name}/contents/filters | | | [**listOwnedGroups**](GroupsApi.md#listOwnedGroups) | **GET** /groups/browser/owned | | | [**listPublicGroups**](GroupsApi.md#listPublicGroups) | **GET** /groups/browser/public | | | [**listSharedGroups**](GroupsApi.md#listSharedGroups) | **GET** /groups/browser/shared | | -| [**registerGroup**](GroupsApi.md#registerGroup) | **POST** /groups/{namespace}/{array}/register | | -| [**shareGroup**](GroupsApi.md#shareGroup) | **PATCH** /groups/{group_namespace}/{group_name}/share | | -| [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | | +| [**registerGroup**](GroupsApi.md#registerGroup) | **POST** /groups/{workspace}/{teamspace}/{array}/register | | +| [**shareGroup**](GroupsApi.md#shareGroup) | **PATCH** /groups/{workspace}/{teamspace}/{group_name}/share | | +| [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{workspace}/{teamspace}/{group_name} | | # **changeGroupContents** -> changeGroupContents(groupNamespace, groupName, groupChanges) +> changeGroupContents(workspace, teamspace, groupName, groupChanges) @@ -58,11 +58,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName, groupChanges); + apiInstance.changeGroupContents(workspace, teamspace, groupName, groupChanges); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#changeGroupContents"); System.err.println("Status code: " + e.getCode()); @@ -78,7 +79,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **groupChanges** | [**GroupChanges**](GroupChanges.md)| | [optional] | @@ -104,7 +106,7 @@ null (empty response body) # **createGroup** -> createGroup(namespace, groupCreate) +> createGroup(workspace, teamspace, groupCreate) @@ -137,10 +139,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the group + 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(namespace, groupCreate); + apiInstance.createGroup(workspace, teamspace, groupCreate); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#createGroup"); System.err.println("Status code: " + e.getCode()); @@ -156,7 +159,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupCreate** | [**GroupCreate**](GroupCreate.md)| | [optional] | ### Return type @@ -181,7 +185,7 @@ null (empty response body) # **deleteGroup** -> deleteGroup(groupNamespace, groupName) +> deleteGroup(workspace, teamspace, groupName) @@ -214,10 +218,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName); + apiInstance.deleteGroup(workspace, teamspace, groupName); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#deleteGroup"); System.err.println("Status code: " + e.getCode()); @@ -233,7 +238,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -258,7 +264,7 @@ null (empty response body) # **getGroup** -> GroupInfo getGroup(groupNamespace, groupName) +> GroupInfo getGroup(workspace, teamspace, groupName) @@ -291,10 +297,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName); + GroupInfo result = apiInstance.getGroup(workspace, teamspace, groupName); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#getGroup"); @@ -311,7 +318,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -336,7 +344,7 @@ public class Example { # **getGroupActivity** -> GroupContentActivityResponse getGroupActivity(groupNamespace, groupName, page, perPage) +> GroupContentActivityResponse getGroupActivity(workspace, teamspace, groupName, page, perPage) @@ -369,12 +377,13 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName, page, perPage); + GroupContentActivityResponse result = apiInstance.getGroupActivity(workspace, teamspace, groupName, page, perPage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#getGroupActivity"); @@ -391,7 +400,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -418,7 +428,7 @@ public class Example { # **getGroupContents** -> GroupContents getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType) +> GroupContents getGroupContents(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType) @@ -451,7 +461,8 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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 @@ -463,7 +474,7 @@ public class Example { List memberType = Arrays.asList(); // List | member type to search for, more than one can be included List excludeMemberType = Arrays.asList(); // List | member type to exclude matching groups in results, more than one can be included try { - GroupContents result = apiInstance.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + 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"); @@ -480,7 +491,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **page** | **Integer**| pagination offset for assets | [optional] | | **perPage** | **Integer**| pagination limit for assets | [optional] | @@ -514,7 +526,7 @@ public class Example { # **getGroupSharingPolicies** -> List<GroupSharing> getGroupSharingPolicies(groupNamespace, groupName) +> List<GroupSharing> getGroupSharingPolicies(workspace, teamspace, groupName) @@ -547,10 +559,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName); + List result = apiInstance.getGroupSharingPolicies(workspace, teamspace, groupName); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#getGroupSharingPolicies"); @@ -567,7 +580,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -815,9 +829,9 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - -# **groupsGroupNamespaceGroupNameContentsFiltersGet** -> GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName) + +# **groupsWorkspaceTeamspaceGroupNameContentsFiltersGet** +> GroupContentsFilterData groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName) @@ -850,13 +864,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); + GroupContentsFilterData result = apiInstance.groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsGroupNamespaceGroupNameContentsFiltersGet"); + 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()); @@ -870,7 +885,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -1191,7 +1207,7 @@ public class Example { # **registerGroup** -> registerGroup(namespace, array, groupRegister) +> registerGroup(workspace, teamspace, array, groupRegister) @@ -1224,11 +1240,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the group + 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(namespace, array, groupRegister); + apiInstance.registerGroup(workspace, teamspace, array, groupRegister); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#registerGroup"); System.err.println("Status code: " + e.getCode()); @@ -1244,7 +1261,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **array** | **String**| The unique name or id of the group | | | **groupRegister** | [**GroupRegister**](GroupRegister.md)| | [optional] | @@ -1270,7 +1288,7 @@ null (empty response body) # **shareGroup** -> shareGroup(groupNamespace, groupName, groupSharingRequest) +> shareGroup(workspace, teamspace, groupName, groupSharingRequest) @@ -1303,11 +1321,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName, groupSharingRequest); + apiInstance.shareGroup(workspace, teamspace, groupName, groupSharingRequest); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#shareGroup"); System.err.println("Status code: " + e.getCode()); @@ -1323,7 +1342,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **groupSharingRequest** | [**GroupSharingRequest**](GroupSharingRequest.md)| Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. | | @@ -1350,7 +1370,7 @@ null (empty response body) # **updateGroup** -> updateGroup(groupNamespace, groupName, groupUpdate) +> updateGroup(workspace, teamspace, groupName, groupUpdate) @@ -1383,11 +1403,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + 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(groupNamespace, groupName, groupUpdate); + apiInstance.updateGroup(workspace, teamspace, groupName, groupUpdate); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#updateGroup"); System.err.println("Status code: " + e.getCode()); @@ -1403,7 +1424,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **groupNamespace** | **String**| The namespace of the group | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **groupName** | **String**| The unique name or id of the group | | | **groupUpdate** | [**GroupUpdate**](GroupUpdate.md)| | [optional] | diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index 0e605d0..ad5ec0e 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -6,14 +6,14 @@ All URIs are relative to */v1* |------------- | ------------- | -------------| | [**acceptInvitation**](InvitationApi.md#acceptInvitation) | **POST** /invitations/{invitation} | | | [**cancelJoinOrganization**](InvitationApi.md#cancelJoinOrganization) | **DELETE** /invitations/{invitation}/{organization}/join | | -| [**cancelShareArrayByInvite**](InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{namespace}/{array}/share | | -| [**cancelShareGroupByInvite**](InvitationApi.md#cancelShareGroupByInvite) | **DELETE** /invitations/group/{invitation}/{namespace}/{group_name}/share | | -| [**cancelSharePayment**](InvitationApi.md#cancelSharePayment) | **DELETE** /invitations/share_payment/{namespace}/{target} | | +| [**cancelShareArrayByInvite**](InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{workspace}/{teamspace}/{array}/share | | +| [**cancelShareGroupByInvite**](InvitationApi.md#cancelShareGroupByInvite) | **DELETE** /invitations/group/{invitation}/{workspace}/{teamspace}/{group_name}/share | | +| [**cancelSharePayment**](InvitationApi.md#cancelSharePayment) | **DELETE** /invitations/share_payment/{workspace}/{teamspace}/{target} | | | [**fetchInvitations**](InvitationApi.md#fetchInvitations) | **GET** /invitations | | | [**joinOrganization**](InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | | -| [**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | | -| [**shareGroupByInvite**](InvitationApi.md#shareGroupByInvite) | **POST** /invitations/group/{namespace}/{group}/share | | -| [**sharePayment**](InvitationApi.md#sharePayment) | **POST** /invitations/share_payment/{namespace} | | +| [**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{workspace}/{teamspace}/{array}/share | | +| [**shareGroupByInvite**](InvitationApi.md#shareGroupByInvite) | **POST** /invitations/group/{workspace}/{teamspace}/{group}/share | | +| [**sharePayment**](InvitationApi.md#sharePayment) | **POST** /invitations/share_payment/{workspace}/{teamspace} | | @@ -172,7 +172,7 @@ null (empty response body) # **cancelShareArrayByInvite** -> cancelShareArrayByInvite(namespace, invitation, array) +> cancelShareArrayByInvite(workspace, teamspace, invitation, array) @@ -205,11 +205,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, invitation, array); + apiInstance.cancelShareArrayByInvite(workspace, teamspace, invitation, array); } catch (ApiException e) { System.err.println("Exception when calling InvitationApi#cancelShareArrayByInvite"); System.err.println("Status code: " + e.getCode()); @@ -225,7 +226,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **invitation** | **String**| the ID of invitation about to be cancelled | | | **array** | **String**| name/uri of array that is url-encoded | | @@ -252,7 +254,7 @@ null (empty response body) # **cancelShareGroupByInvite** -> cancelShareGroupByInvite(namespace, invitation, groupName) +> cancelShareGroupByInvite(workspace, teamspace, invitation, groupName) @@ -285,11 +287,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) + String 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(namespace, invitation, groupName); + apiInstance.cancelShareGroupByInvite(workspace, teamspace, invitation, groupName); } catch (ApiException e) { System.err.println("Exception when calling InvitationApi#cancelShareGroupByInvite"); System.err.println("Status code: " + e.getCode()); @@ -305,7 +308,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace group is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **invitation** | **String**| the ID of invitation about to be cancelled | | | **groupName** | **String**| name/uuid of group that is url-encoded | | @@ -332,7 +336,7 @@ null (empty response body) # **cancelSharePayment** -> cancelSharePayment(namespace, target) +> cancelSharePayment(workspace, teamspace, target) @@ -365,10 +369,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | name or UUID of namespace sharing their payment info + 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(namespace, target); + apiInstance.cancelSharePayment(workspace, teamspace, target); } catch (ApiException e) { System.err.println("Exception when calling InvitationApi#cancelSharePayment"); System.err.println("Status code: " + e.getCode()); @@ -384,7 +389,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| name or UUID of namespace sharing their payment info | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **target** | **String**| name or UUID of recipient namespace | | ### Return type @@ -582,7 +588,7 @@ null (empty response body) # **shareArrayByInvite** -> shareArrayByInvite(namespace, array, emailInvite) +> shareArrayByInvite(workspace, teamspace, array, emailInvite) @@ -615,11 +621,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, emailInvite); + apiInstance.shareArrayByInvite(workspace, teamspace, array, emailInvite); } catch (ApiException e) { System.err.println("Exception when calling InvitationApi#shareArrayByInvite"); System.err.println("Status code: " + e.getCode()); @@ -635,7 +642,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **emailInvite** | [**InvitationArrayShareEmail**](InvitationArrayShareEmail.md)| list of email recipients | | @@ -663,7 +671,7 @@ null (empty response body) # **shareGroupByInvite** -> shareGroupByInvite(namespace, group, emailInvite) +> shareGroupByInvite(workspace, teamspace, group, emailInvite) @@ -696,11 +704,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) + String 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(namespace, group, emailInvite); + apiInstance.shareGroupByInvite(workspace, teamspace, group, emailInvite); } catch (ApiException e) { System.err.println("Exception when calling InvitationApi#shareGroupByInvite"); System.err.println("Status code: " + e.getCode()); @@ -716,7 +725,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace group is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **group** | **String**| name/uri of group that is url-encoded | | | **emailInvite** | [**InvitationGroupShareEmail**](InvitationGroupShareEmail.md)| list of email/namespace recipients | | @@ -744,7 +754,7 @@ null (empty response body) # **sharePayment** -> sharePayment(namespace, emailInvite) +> sharePayment(workspace, teamspace, emailInvite) @@ -777,10 +787,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | name or UUID of namespace sharing their payment info + 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(namespace, emailInvite); + apiInstance.sharePayment(workspace, teamspace, emailInvite); } catch (ApiException e) { System.err.println("Exception when calling InvitationApi#sharePayment"); System.err.println("Status code: " + e.getCode()); @@ -796,7 +807,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| name or UUID of namespace sharing their payment info | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **emailInvite** | [**SharePaymentRequest**](SharePaymentRequest.md)| Recipients of the invitation. These may only be namespaces, not email addresses. | [optional] | ### Return type diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 6c4a51f..fffa49e 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -4,16 +4,16 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getNotebookServerStatus**](NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{namespace}/status | | -| [**handleCopyNotebook**](NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{namespace}/{array}/copy | | -| [**handleUploadNotebook**](NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{namespace}/upload | | -| [**shutdownNotebookServer**](NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{namespace} | | -| [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | | +| [**getNotebookServerStatus**](NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{workspace}/{teamspace}/status | | +| [**handleCopyNotebook**](NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{workspace}/{teamspace}/{array}/copy | | +| [**handleUploadNotebook**](NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{workspace}/{teamspace}/upload | | +| [**shutdownNotebookServer**](NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{workspace}/{teamspace} | | +| [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{workspace}/{teamspace}/{array}/rename | | # **getNotebookServerStatus** -> NotebookStatus getNotebookServerStatus(namespace) +> NotebookStatus getNotebookServerStatus(workspace, teamspace) @@ -46,9 +46,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) + 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(namespace); + NotebookStatus result = apiInstance.getNotebookServerStatus(workspace, teamspace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotebookApi#getNotebookServerStatus"); @@ -65,7 +66,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace notebook is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | ### Return type @@ -91,7 +93,7 @@ public class Example { # **handleCopyNotebook** -> NotebookCopied handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) +> NotebookCopied handleCopyNotebook(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) @@ -124,13 +126,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook + 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(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + 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"); @@ -147,7 +150,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **array** | **String**| The name of the notebook | | | **notebookCopy** | [**NotebookCopy**](NotebookCopy.md)| Input/Output information to create a new TileDB file | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | @@ -175,7 +179,7 @@ public class Example { # **handleUploadNotebook** -> FileUploaded handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) +> FileUploaded handleUploadNotebook(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) @@ -208,13 +212,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook + 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(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + 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"); @@ -231,7 +236,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace of the notebook | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **inputFile** | **File**| the notebook to upload | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | | **outputUri** | **String**| output location of the TileDB File | [optional] | @@ -259,7 +265,7 @@ public class Example { # **shutdownNotebookServer** -> shutdownNotebookServer(namespace) +> shutdownNotebookServer(workspace, teamspace) @@ -292,9 +298,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) + 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(namespace); + apiInstance.shutdownNotebookServer(workspace, teamspace); } catch (ApiException e) { System.err.println("Exception when calling NotebookApi#shutdownNotebookServer"); System.err.println("Status code: " + e.getCode()); @@ -310,7 +317,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace notebook is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | ### Return type @@ -335,7 +343,7 @@ null (empty response body) # **updateNotebookName** -> updateNotebookName(namespace, array, notebookMetadata) +> updateNotebookName(workspace, teamspace, array, notebookMetadata) @@ -368,11 +376,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, notebookMetadata); + apiInstance.updateNotebookName(workspace, teamspace, array, notebookMetadata); } catch (ApiException e) { System.err.println("Exception when calling NotebookApi#updateNotebookName"); System.err.println("Status code: " + e.getCode()); @@ -388,7 +397,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the array belongs to | | | **array** | **String**| name/uri of notebook (array) that is url-encoded | | | **notebookMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| notebook (array) metadata to update | | diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index 0432197..d4b401b 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -4,13 +4,13 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**notebooksNamespaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | | -| [**notebooksNamespaceArrayPrunePost**](NotebooksApi.md#notebooksNamespaceArrayPrunePost) | **POST** /notebooks/{namespace}/{array}/prune | | +| [**notebooksWorkspaceTeamspaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksWorkspaceTeamspaceArrayEndTimestampsGet) | **GET** /notebooks/{workspace}/{teamspace}/{array}/end_timestamps | | +| [**notebooksWorkspaceTeamspaceArrayPrunePost**](NotebooksApi.md#notebooksWorkspaceTeamspaceArrayPrunePost) | **POST** /notebooks/{workspace}/{teamspace}/{array}/prune | | - -# **notebooksNamespaceArrayEndTimestampsGet** -> ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) + +# **notebooksWorkspaceTeamspaceArrayEndTimestampsGet** +> ArrayEndTimestampData notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage) @@ -43,15 +43,16 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + ArrayEndTimestampData result = apiInstance.notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayEndTimestampsGet"); + 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()); @@ -65,7 +66,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -90,9 +92,9 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - -# **notebooksNamespaceArrayPrunePost** -> notebooksNamespaceArrayPrunePost(namespace, array, keepVersions) + +# **notebooksWorkspaceTeamspaceArrayPrunePost** +> notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions) @@ -125,13 +127,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); + apiInstance.notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions); } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayPrunePost"); + 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()); @@ -145,7 +148,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **keepVersions** | **Integer**| The number of most recents fragment to preserve | [optional] | diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index e257b59..5fc979e 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -4,14 +4,14 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addAWSAccessCredentials**](OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | | +| [**addAWSAccessCredentials**](OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{workspace}/{teamspace}/aws | | | [**addUserToOrganization**](OrganizationApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | | -| [**checkAWSAccessCredentials**](OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | | -| [**checkAWSAccessCredentialsByName**](OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | | +| [**checkAWSAccessCredentials**](OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{workspace}/{teamspace}/aws | | +| [**checkAWSAccessCredentialsByName**](OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**checkSSODomain**](OrganizationApi.md#checkSSODomain) | **POST** /organizations/{organization}/sso_domains/{uuid}/run_check | | | [**createOrganization**](OrganizationApi.md#createOrganization) | **POST** /organization | | | [**createSSODomain**](OrganizationApi.md#createSSODomain) | **POST** /organizations/{organization}/sso_domain | | -| [**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | +| [**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**deleteOrganization**](OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | | | [**deleteSSODomain**](OrganizationApi.md#deleteSSODomain) | **DELETE** /organizations/{organization}/sso_domains/{uuid} | | | [**deleteUserFromOrganization**](OrganizationApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | | @@ -20,7 +20,7 @@ All URIs are relative to */v1* | [**getOrganizationUser**](OrganizationApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | | | [**getSSODomain**](OrganizationApi.md#getSSODomain) | **GET** /organizations/{organization}/sso_domains/{uuid} | | | [**getSSODomains**](OrganizationApi.md#getSSODomains) | **GET** /organizations/{organization}/sso_domains | | -| [**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | +| [**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**updateOrganization**](OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | | | [**updateSSODomain**](OrganizationApi.md#updateSSODomain) | **PATCH** /organizations/{organization}/sso_domains/{uuid} | | | [**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | @@ -28,7 +28,7 @@ All URIs are relative to */v1* # **addAWSAccessCredentials** -> addAWSAccessCredentials(namespace, awsAccessCredentials) +> addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials) @@ -61,10 +61,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, awsAccessCredentials); + apiInstance.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); } catch (ApiException e) { System.err.println("Exception when calling OrganizationApi#addAWSAccessCredentials"); System.err.println("Status code: " + e.getCode()); @@ -80,7 +81,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing 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 @@ -182,7 +184,7 @@ null (empty response body) # **checkAWSAccessCredentials** -> List<AWSAccessCredentials> checkAWSAccessCredentials(namespace) +> List<AWSAccessCredentials> checkAWSAccessCredentials(workspace, teamspace) @@ -215,9 +217,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace); + List result = apiInstance.checkAWSAccessCredentials(workspace, teamspace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentials"); @@ -234,7 +237,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | ### Return type @@ -258,7 +262,7 @@ public class Example { # **checkAWSAccessCredentialsByName** -> AWSAccessCredentials checkAWSAccessCredentialsByName(namespace, name) +> AWSAccessCredentials checkAWSAccessCredentialsByName(workspace, teamspace, name) @@ -291,10 +295,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, name); + AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(workspace, teamspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentialsByName"); @@ -311,7 +316,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -565,7 +571,7 @@ public class Example { # **deleteAWSAccessCredentials** -> deleteAWSAccessCredentials(namespace, name) +> deleteAWSAccessCredentials(workspace, teamspace, name) @@ -598,10 +604,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, name); + apiInstance.deleteAWSAccessCredentials(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling OrganizationApi#deleteAWSAccessCredentials"); System.err.println("Status code: " + e.getCode()); @@ -617,7 +624,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -1252,7 +1260,7 @@ public class Example { # **updateAWSAccessCredentials** -> updateAWSAccessCredentials(namespace, name, awsAccessCredentials) +> updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials) @@ -1285,11 +1293,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, name, awsAccessCredentials); + apiInstance.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); } catch (ApiException e) { System.err.println("Exception when calling OrganizationApi#updateAWSAccessCredentials"); System.err.println("Status code: " + e.getCode()); @@ -1305,7 +1314,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing 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 | | diff --git a/docs/OrganizationRoles.md b/docs/OrganizationRoles.md index 764cc4a..e0c6f08 100644 --- a/docs/OrganizationRoles.md +++ b/docs/OrganizationRoles.md @@ -9,6 +9,8 @@ * `ADMIN` (value: `"admin"`) +* `READ_WRITE_DELETE` (value: `"read_write_delete"`) + * `READ_WRITE` (value: `"read_write"`) * `READ_ONLY` (value: `"read_only"`) diff --git a/docs/QueryApi.md b/docs/QueryApi.md index 226e72d..b4159db 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -4,16 +4,16 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**finalizeQuery**](QueryApi.md#finalizeQuery) | **POST** /arrays/{namespace}/{array}/query/finalize | | -| [**getEstResultSizes**](QueryApi.md#getEstResultSizes) | **POST** /arrays/{namespace}/{array}/query/est_result_sizes | | -| [**getFile**](QueryApi.md#getFile) | **GET** /arrays/{namespace}/{array}/query/get_file | | -| [**submitQuery**](QueryApi.md#submitQuery) | **POST** /arrays/{namespace}/{array}/query/submit | | -| [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | | +| [**finalizeQuery**](QueryApi.md#finalizeQuery) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/finalize | | +| [**getEstResultSizes**](QueryApi.md#getEstResultSizes) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/est_result_sizes | | +| [**getFile**](QueryApi.md#getFile) | **GET** /arrays/{workspace}/{teamspace}/{array}/query/get_file | | +| [**submitQuery**](QueryApi.md#submitQuery) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/submit | | +| [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/submit_query_json | | # **finalizeQuery** -> Query finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt) +> Query finalizeQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt) @@ -46,7 +46,8 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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 @@ -54,7 +55,7 @@ public class Example { String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request Integer openAt = 56; // Integer | open_at for array in unix epoch try { - Query result = apiInstance.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); + 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"); @@ -71,7 +72,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **type** | **String**| type of query | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -102,7 +104,7 @@ public class Example { # **getEstResultSizes** -> Query getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt) +> Query getEstResultSizes(workspace, teamspace, array, type, contentType, query, xPayer, openAt) @@ -135,7 +137,8 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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 @@ -143,7 +146,7 @@ public class Example { String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request Integer openAt = 56; // Integer | open_at for array in unix epoch try { - Query result = apiInstance.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); + 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"); @@ -160,7 +163,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **type** | **String**| type of query | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -191,7 +195,7 @@ public class Example { # **getFile** -> File getFile(namespace, array, contentType, xPayer) +> File getFile(workspace, teamspace, array, contentType, xPayer) @@ -224,12 +228,13 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType, xPayer); + File result = apiInstance.getFile(workspace, teamspace, array, contentType, xPayer); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling QueryApi#getFile"); @@ -246,7 +251,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | @@ -273,7 +279,7 @@ public class Example { # **submitQuery** -> Query submitQuery(namespace, array, type, contentType, query, xPayer, openAt) +> Query submitQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt) @@ -306,7 +312,8 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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 @@ -314,7 +321,7 @@ public class Example { String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request Integer openAt = 56; // Integer | open_at for array in unix epoch try { - Query result = apiInstance.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); + 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"); @@ -331,7 +338,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **type** | **String**| type of query | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | @@ -362,7 +370,7 @@ public class Example { # **submitQueryJson** -> Object submitQueryJson(namespace, array, contentType, queryJson, xPayer) +> Object submitQueryJson(workspace, teamspace, array, contentType, queryJson, xPayer) @@ -395,13 +403,14 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, contentType, queryJson, xPayer); + 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"); @@ -418,7 +427,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **contentType** | **String**| Content Type of input and return mime | [default to application/json] | | **queryJson** | [**QueryJson**](QueryJson.md)| query to run | | diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index dbbafb9..f95d794 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -4,17 +4,17 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**deleteRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{namespace}/registered/{name} | | -| [**getRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{namespace}/registered/{name} | | -| [**getRegisteredTaskGraphSharingPolicies**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{namespace}/registered/{name}/share | | -| [**registerRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{namespace}/registered/{name} | | -| [**shareRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name}/share | | -| [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | | +| [**deleteRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{workspace}/registered/{name} | | +| [**getRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{workspace}/registered/{name} | | +| [**getRegisteredTaskGraphSharingPolicies**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{workspace}/registered/{name}/share | | +| [**registerRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{workspace}/registered/{name} | | +| [**shareRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{workspace}/registered/{name}/share | | +| [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{workspace}/registered/{name} | | # **deleteRegisteredTaskGraph** -> deleteRegisteredTaskGraph(namespace, name) +> deleteRegisteredTaskGraph(workspace, name) @@ -47,10 +47,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + 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(namespace, name); + apiInstance.deleteRegisteredTaskGraph(workspace, name); } catch (ApiException e) { System.err.println("Exception when calling RegisteredTaskGraphsApi#deleteRegisteredTaskGraph"); System.err.println("Status code: " + e.getCode()); @@ -66,7 +66,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | ### Return type @@ -91,7 +91,7 @@ null (empty response body) # **getRegisteredTaskGraph** -> RegisteredTaskGraph getRegisteredTaskGraph(namespace, name) +> RegisteredTaskGraph getRegisteredTaskGraph(workspace, name) @@ -124,10 +124,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + 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(namespace, name); + RegisteredTaskGraph result = apiInstance.getRegisteredTaskGraph(workspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraph"); @@ -144,7 +144,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | ### Return type @@ -169,7 +169,7 @@ public class Example { # **getRegisteredTaskGraphSharingPolicies** -> List<TaskGraphSharing> getRegisteredTaskGraphSharingPolicies(namespace, name) +> List<TaskGraphSharing> getRegisteredTaskGraphSharingPolicies(workspace, name) @@ -202,10 +202,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. + 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(namespace, name); + List result = apiInstance.getRegisteredTaskGraphSharingPolicies(workspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraphSharingPolicies"); @@ -222,7 +222,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns the registered task graph. | | +| **workspace** | **String**| The workspace that owns the registered task graph. | | | **name** | **String**| The name of the task graph. | | ### Return type @@ -248,7 +248,7 @@ public class Example { # **registerRegisteredTaskGraph** -> registerRegisteredTaskGraph(namespace, name, graph) +> registerRegisteredTaskGraph(workspace, name, graph) @@ -281,11 +281,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + 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(namespace, name, graph); + apiInstance.registerRegisteredTaskGraph(workspace, name, graph); } catch (ApiException e) { System.err.println("Exception when calling RegisteredTaskGraphsApi#registerRegisteredTaskGraph"); System.err.println("Status code: " + e.getCode()); @@ -301,7 +301,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | | **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| Task graph to register. | [optional] | @@ -327,7 +327,7 @@ null (empty response body) # **shareRegisteredTaskGraph** -> shareRegisteredTaskGraph(namespace, name, taskGraphSharing) +> shareRegisteredTaskGraph(workspace, name, taskGraphSharing) @@ -360,11 +360,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. + 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(namespace, name, taskGraphSharing); + apiInstance.shareRegisteredTaskGraph(workspace, name, taskGraphSharing); } catch (ApiException e) { System.err.println("Exception when calling RegisteredTaskGraphsApi#shareRegisteredTaskGraph"); System.err.println("Status code: " + e.getCode()); @@ -380,7 +380,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns the registered task graph. | | +| **workspace** | **String**| The workspace that owns the registered task graph. | | | **name** | **String**| The name of the task graph. | | | **taskGraphSharing** | [**TaskGraphSharing**](TaskGraphSharing.md)| Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. | | @@ -407,7 +407,7 @@ null (empty response body) # **updateRegisteredTaskGraph** -> updateRegisteredTaskGraph(namespace, name, graph) +> updateRegisteredTaskGraph(workspace, name, graph) @@ -440,11 +440,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + 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(namespace, name, graph); + apiInstance.updateRegisteredTaskGraph(workspace, name, graph); } catch (ApiException e) { System.err.println("Exception when calling RegisteredTaskGraphsApi#updateRegisteredTaskGraph"); System.err.println("Status code: " + e.getCode()); @@ -460,7 +460,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| The name of the registered task graph. | | | **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| The new contents of the task graph. | [optional] | diff --git a/docs/SqlApi.md b/docs/SqlApi.md index 0f8feeb..c8167dc 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -4,12 +4,12 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{namespace} | | +| [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{workspace}/{teamspace} | | # **runSQL** -> List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding) +> List<Map<String, Object>> runSQL(workspace, teamspace, sql, acceptEncoding) @@ -42,11 +42,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); SqlApi apiInstance = new SqlApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) + 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(namespace, sql, acceptEncoding); + List> result = apiInstance.runSQL(workspace, teamspace, sql, acceptEncoding); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SqlApi#runSQL"); @@ -63,7 +64,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing 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] | diff --git a/docs/TGUDFEnvironment.md b/docs/TGUDFEnvironment.md index 0d4ed3e..b641109 100644 --- a/docs/TGUDFEnvironment.md +++ b/docs/TGUDFEnvironment.md @@ -17,7 +17,7 @@ Metadata about the environment where we want to execute a UDF. |**resources** | [**TGUDFEnvironmentResources**](TGUDFEnvironmentResources.md) | | [optional] | |**runClientSide** | **Boolean** | A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. | [optional] | |**timeout** | **BigDecimal** | The maximum length of time this UDF is allowed to execute for before it is killed and fails. If not present (or zero), the function is allowed to run indefinitely (subject to the server’s global limits). | [optional] | -|**paths** | **List<Object>** | Mapping for storage paths to mount | [optional] | +|**storage** | [**List<TGUDFStorage>**](TGUDFStorage.md) | Storage options for mounting persistent volumes. | [optional] | diff --git a/docs/TGUDFStorage.md b/docs/TGUDFStorage.md index 0bf99ea..d83b38a 100644 --- a/docs/TGUDFStorage.md +++ b/docs/TGUDFStorage.md @@ -2,15 +2,16 @@ # TGUDFStorage -Storage mount details +Storage options for mounting persistent volumes. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**path** | **String** | mount path | [optional] | -|**size** | **Integer** | storage size in bytes | [optional] | -|**storageClass** | **String** | storage class | [optional] | +|**path** | **String** | Mount path for the attached volume. | [optional] | +|**tiledbUri** | **String** | TileDB filesystem to mount | [optional] | +|**size** | **String** | Storage size. | [optional] | +|**storageClass** | **String** | Storage class to use for creating the volume. | [optional] | diff --git a/docs/TaskGraphLog.md b/docs/TaskGraphLog.md index de630c8..837a039 100644 --- a/docs/TaskGraphLog.md +++ b/docs/TaskGraphLog.md @@ -26,6 +26,8 @@ Logging information about the execution of a task graph. |**taskGraphId** | **String** | The UUID of the task graph. | [optional] | |**cloudProvider** | **String** | The name of the cloud provider where this task graph executed. | [optional] | |**cloudRegion** | **String** | The region of the cloud provider where this task graph executed. | [optional] | +|**rootTaskGraphUuid** | **String** | The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. | [optional] | +|**childrenTaskGraphUuids** | **List<String>** | If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. | [optional] | diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index b32e444..9cf7d39 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -4,20 +4,20 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createTaskGraphLog**](TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{namespace}/log | | -| [**getTaskGraphLog**](TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{namespace}/logs/{id} | | +| [**createTaskGraphLog**](TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{workspace}/log | | +| [**getTaskGraphLog**](TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{workspace}/logs/{id} | | | [**listTaskGraphLogs**](TaskGraphLogsApi.md#listTaskGraphLogs) | **GET** /taskgraphs/logs | | -| [**reportClientNode**](TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{namespace}/logs/{id}/report_client_node | | -| [**resubmitTaskGraphExecution**](TaskGraphLogsApi.md#resubmitTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/resubmit | | -| [**retryTaskGraphExecution**](TaskGraphLogsApi.md#retryTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/retry | | -| [**stopTaskGraphExecution**](TaskGraphLogsApi.md#stopTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/stop | | -| [**submitTaskGraph**](TaskGraphLogsApi.md#submitTaskGraph) | **POST** /taskgraphs/{namespace}/graphs/{id}/submit | | -| [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | | +| [**reportClientNode**](TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{workspace}/logs/{id}/report_client_node | | +| [**resubmitTaskGraphExecution**](TaskGraphLogsApi.md#resubmitTaskGraphExecution) | **POST** /taskgraphs/{workspace}/executions/{id}/resubmit | | +| [**retryTaskGraphExecution**](TaskGraphLogsApi.md#retryTaskGraphExecution) | **POST** /taskgraphs/{workspace}/executions/{id}/retry | | +| [**stopTaskGraphExecution**](TaskGraphLogsApi.md#stopTaskGraphExecution) | **POST** /taskgraphs/{workspace}/executions/{id}/stop | | +| [**submitTaskGraph**](TaskGraphLogsApi.md#submitTaskGraph) | **POST** /taskgraphs/{workspace}/graphs/{id}/submit | | +| [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{workspace}/logs/{id} | | # **createTaskGraphLog** -> TaskGraphLog createTaskGraphLog(namespace, log) +> TaskGraphLog createTaskGraphLog(workspace, log) @@ -50,10 +50,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that will own this task graph log. + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | try { - TaskGraphLog result = apiInstance.createTaskGraphLog(namespace, log); + TaskGraphLog result = apiInstance.createTaskGraphLog(workspace, log); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#createTaskGraphLog"); @@ -70,7 +70,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that will own this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **log** | [**TaskGraphLog**](TaskGraphLog.md)| | | ### Return type @@ -95,7 +95,7 @@ public class Example { # **getTaskGraphLog** -> TaskGraphLog getTaskGraphLog(namespace, id) +> TaskGraphLog getTaskGraphLog(workspace, id) @@ -128,10 +128,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. + 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(namespace, id); + TaskGraphLog result = apiInstance.getTaskGraphLog(workspace, id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#getTaskGraphLog"); @@ -148,7 +148,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph log entry. | | ### Return type @@ -263,7 +263,7 @@ public class Example { # **reportClientNode** -> reportClientNode(namespace, id, report) +> reportClientNode(workspace, id, report) @@ -294,11 +294,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. + 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(namespace, id, report); + apiInstance.reportClientNode(workspace, id, report); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#reportClientNode"); System.err.println("Status code: " + e.getCode()); @@ -314,7 +314,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph log entry. | | | **report** | [**TaskGraphClientNodeStatus**](TaskGraphClientNodeStatus.md)| The node status to report. | | @@ -340,7 +340,7 @@ null (empty response body) # **resubmitTaskGraphExecution** -> TaskGraphLog resubmitTaskGraphExecution(namespace, id) +> TaskGraphLog resubmitTaskGraphExecution(workspace, id) @@ -373,10 +373,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. + 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(namespace, id); + TaskGraphLog result = apiInstance.resubmitTaskGraphExecution(workspace, id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#resubmitTaskGraphExecution"); @@ -393,7 +393,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | ### Return type @@ -418,7 +418,7 @@ public class Example { # **retryTaskGraphExecution** -> TaskGraphLog retryTaskGraphExecution(namespace, id) +> TaskGraphLog retryTaskGraphExecution(workspace, id) @@ -451,10 +451,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. + 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(namespace, id); + TaskGraphLog result = apiInstance.retryTaskGraphExecution(workspace, id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#retryTaskGraphExecution"); @@ -471,7 +471,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | ### Return type @@ -496,7 +496,7 @@ public class Example { # **stopTaskGraphExecution** -> stopTaskGraphExecution(namespace, id) +> stopTaskGraphExecution(workspace, id) @@ -529,10 +529,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. + 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(namespace, id); + apiInstance.stopTaskGraphExecution(workspace, id); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#stopTaskGraphExecution"); System.err.println("Status code: " + e.getCode()); @@ -548,7 +548,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | ### Return type @@ -573,7 +573,7 @@ null (empty response body) # **submitTaskGraph** -> TaskGraphLog submitTaskGraph(namespace, id) +> TaskGraphLog submitTaskGraph(workspace, id, rootTaskGraphUuid) @@ -606,10 +606,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. + 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(namespace, id); + TaskGraphLog result = apiInstance.submitTaskGraph(workspace, id, rootTaskGraphUuid); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#submitTaskGraph"); @@ -626,8 +627,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | +| **rootTaskGraphUuid** | **String**| UUID of the root taskgraph that this graph is assosiated with | [optional] | ### Return type @@ -651,7 +653,7 @@ public class Example { # **updateTaskGraphLog** -> updateTaskGraphLog(namespace, id, log) +> updateTaskGraphLog(workspace, id, log) @@ -684,11 +686,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. + 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(namespace, id, log); + apiInstance.updateTaskGraphLog(workspace, id, log); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphLogsApi#updateTaskGraphLog"); System.err.println("Status code: " + e.getCode()); @@ -704,7 +706,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph log. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph log entry. | | | **log** | [**TaskGraphLog**](TaskGraphLog.md)| Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. | | diff --git a/docs/TaskGraphType.md b/docs/TaskGraphType.md index 3632126..6218d10 100644 --- a/docs/TaskGraphType.md +++ b/docs/TaskGraphType.md @@ -9,5 +9,7 @@ * `REALTIME` (value: `"realtime"`) +* `NEXTFLOW` (value: `"nextflow"`) + diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md index cc5f736..ff259ab 100644 --- a/docs/TaskGraphsApi.md +++ b/docs/TaskGraphsApi.md @@ -4,16 +4,16 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createTaskGraph**](TaskGraphsApi.md#createTaskGraph) | **POST** /taskgraphs/{namespace}/graphs | | -| [**getTaskGraph**](TaskGraphsApi.md#getTaskGraph) | **GET** /taskgraphs/{namespace}/graphs/{id} | | -| [**listTaskGraphs**](TaskGraphsApi.md#listTaskGraphs) | **GET** /taskgraphs/{namespace}/graphs | | -| [**submitTaskGraph**](TaskGraphsApi.md#submitTaskGraph) | **POST** /taskgraphs/{namespace}/graphs/{id}/submit | | -| [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{namespace}/graphs/{id} | | +| [**createTaskGraph**](TaskGraphsApi.md#createTaskGraph) | **POST** /taskgraphs/{workspace}/graphs | | +| [**getTaskGraph**](TaskGraphsApi.md#getTaskGraph) | **GET** /taskgraphs/{workspace}/graphs/{id} | | +| [**listTaskGraphs**](TaskGraphsApi.md#listTaskGraphs) | **GET** /taskgraphs/{workspace}/graphs | | +| [**submitTaskGraph**](TaskGraphsApi.md#submitTaskGraph) | **POST** /taskgraphs/{workspace}/graphs/{id}/submit | | +| [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{workspace}/graphs/{id} | | # **createTaskGraph** -> TaskGraph createTaskGraph(namespace, graph) +> TaskGraph createTaskGraph(workspace, graph) @@ -46,10 +46,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | Include graphs for this namespace. + 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(namespace, graph); + TaskGraph result = apiInstance.createTaskGraph(workspace, graph); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphsApi#createTaskGraph"); @@ -66,7 +66,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| Include graphs for this namespace. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **graph** | [**TaskGraph**](TaskGraph.md)| Create the task graph. | | ### Return type @@ -91,7 +91,7 @@ public class Example { # **getTaskGraph** -> TaskGraph getTaskGraph(namespace, id) +> TaskGraph getTaskGraph(workspace, id) @@ -124,10 +124,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. + 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(namespace, id); + TaskGraph result = apiInstance.getTaskGraph(workspace, id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphsApi#getTaskGraph"); @@ -144,7 +144,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | ### Return type @@ -169,7 +169,7 @@ public class Example { # **listTaskGraphs** -> TaskGraphs listTaskGraphs(namespace) +> TaskGraphs listTaskGraphs(workspace) @@ -202,9 +202,9 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | Namespace for graphs + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to try { - TaskGraphs result = apiInstance.listTaskGraphs(namespace); + TaskGraphs result = apiInstance.listTaskGraphs(workspace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphsApi#listTaskGraphs"); @@ -221,7 +221,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| Namespace for graphs | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | ### Return type @@ -245,7 +245,7 @@ public class Example { # **submitTaskGraph** -> TaskGraphLog submitTaskGraph(namespace, id) +> TaskGraphLog submitTaskGraph(workspace, id, rootTaskGraphUuid) @@ -278,10 +278,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. + 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(namespace, id); + TaskGraphLog result = apiInstance.submitTaskGraph(workspace, id, rootTaskGraphUuid); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphsApi#submitTaskGraph"); @@ -298,8 +299,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | +| **rootTaskGraphUuid** | **String**| UUID of the root taskgraph that this graph is assosiated with | [optional] | ### Return type @@ -323,7 +325,7 @@ public class Example { # **updateTaskGraph** -> updateTaskGraph(namespace, id, graph) +> updateTaskGraph(workspace, id, graph) @@ -356,11 +358,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. + 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(namespace, id, graph); + apiInstance.updateTaskGraph(workspace, id, graph); } catch (ApiException e) { System.err.println("Exception when calling TaskGraphsApi#updateTaskGraph"); System.err.println("Status code: " + e.getCode()); @@ -376,7 +378,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| The namespace that owns this task graph. | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **id** | **String**| The UUID of the task graph entry. | | | **graph** | [**TaskGraph**](TaskGraph.md)| Updates to make to the task graph. | | diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 61e4e3a..160cb10 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -4,7 +4,7 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**runSQL**](TasksApi.md#runSQL) | **POST** /sql/{namespace} | | +| [**runSQL**](TasksApi.md#runSQL) | **POST** /sql/{workspace}/{teamspace} | | | [**taskIdGet**](TasksApi.md#taskIdGet) | **GET** /task/{id} | | | [**taskIdResultGet**](TasksApi.md#taskIdResultGet) | **GET** /task/{id}/result | | | [**tasksGet**](TasksApi.md#tasksGet) | **GET** /tasks | | @@ -12,7 +12,7 @@ All URIs are relative to */v1* # **runSQL** -> List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding) +> List<Map<String, Object>> runSQL(workspace, teamspace, sql, acceptEncoding) @@ -45,11 +45,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); TasksApi apiInstance = new TasksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) + 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(namespace, sql, acceptEncoding); + List> result = apiInstance.runSQL(workspace, teamspace, sql, acceptEncoding); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TasksApi#runSQL"); @@ -66,7 +67,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing 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] | diff --git a/docs/UdfApi.md b/docs/UdfApi.md index 88929df..32f3893 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -4,22 +4,22 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**deleteUDFInfo**](UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{namespace}/{name} | | -| [**getUDFInfo**](UdfApi.md#getUDFInfo) | **GET** /udf/{namespace}/{name} | | -| [**getUDFInfoSharingPolicies**](UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{namespace}/{name}/share | | -| [**handleCopyUDF**](UdfApi.md#handleCopyUDF) | **POST** /udf/{namespace}/{name}/copy | | -| [**registerUDFInfo**](UdfApi.md#registerUDFInfo) | **POST** /udf/{namespace}/{name} | | -| [**shareUDFInfo**](UdfApi.md#shareUDFInfo) | **PATCH** /udf/{namespace}/{name}/share | | -| [**submitGenericUDF**](UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{namespace} | | -| [**submitMultiArrayUDF**](UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{namespace} | | -| [**submitUDF**](UdfApi.md#submitUDF) | **POST** /arrays/{namespace}/{array}/udf/submit | | -| [**udfNamespaceArrayEndTimestampsGet**](UdfApi.md#udfNamespaceArrayEndTimestampsGet) | **GET** /udf/{namespace}/{array}/end_timestamps | | -| [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | | +| [**deleteUDFInfo**](UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{workspace}/{name} | | +| [**getUDFInfo**](UdfApi.md#getUDFInfo) | **GET** /udf/{workspace}/{name} | | +| [**getUDFInfoSharingPolicies**](UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{workspace}/{name}/share | | +| [**handleCopyUDF**](UdfApi.md#handleCopyUDF) | **POST** /udf/{workspace}/{name}/copy | | +| [**registerUDFInfo**](UdfApi.md#registerUDFInfo) | **POST** /udf/{workspace}/{name} | | +| [**shareUDFInfo**](UdfApi.md#shareUDFInfo) | **PATCH** /udf/{workspace}/{name}/share | | +| [**submitGenericUDF**](UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{workspace} | | +| [**submitMultiArrayUDF**](UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{workspace} | | +| [**submitUDF**](UdfApi.md#submitUDF) | **POST** /arrays/{workspace}/{teamspace}/{array}/udf/submit | | +| [**udfWorkspaceArrayEndTimestampsGet**](UdfApi.md#udfWorkspaceArrayEndTimestampsGet) | **GET** /udf/{workspace}/{array}/end_timestamps | | +| [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{workspace}/{name} | | # **deleteUDFInfo** -> deleteUDFInfo(namespace, name) +> deleteUDFInfo(workspace, name) @@ -52,10 +52,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name); + apiInstance.deleteUDFInfo(workspace, name); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#deleteUDFInfo"); System.err.println("Status code: " + e.getCode()); @@ -71,7 +71,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | ### Return type @@ -96,7 +96,7 @@ null (empty response body) # **getUDFInfo** -> UDFInfo getUDFInfo(namespace, name) +> UDFInfo getUDFInfo(workspace, name) @@ -129,10 +129,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name); + UDFInfo result = apiInstance.getUDFInfo(workspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#getUDFInfo"); @@ -149,7 +149,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | ### Return type @@ -175,7 +175,7 @@ public class Example { # **getUDFInfoSharingPolicies** -> List<UDFSharing> getUDFInfoSharingPolicies(namespace, name) +> List<UDFSharing> getUDFInfoSharingPolicies(workspace, name) @@ -208,10 +208,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name); + List result = apiInstance.getUDFInfoSharingPolicies(workspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#getUDFInfoSharingPolicies"); @@ -228,7 +228,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name of UDFInfo | | ### Return type @@ -254,7 +254,7 @@ public class Example { # **handleCopyUDF** -> UDFCopied handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) +> UDFCopied handleCopyUDF(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) @@ -287,13 +287,13 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + 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"); @@ -310,7 +310,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name of UDFInfo | | | **udFCopy** | [**UDFCopy**](UDFCopy.md)| Input/Output information to copy a UDF | | | **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | @@ -338,7 +338,7 @@ public class Example { # **registerUDFInfo** -> registerUDFInfo(namespace, name, udf) +> registerUDFInfo(workspace, name, udf) @@ -371,11 +371,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name, udf); + apiInstance.registerUDFInfo(workspace, name, udf); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#registerUDFInfo"); System.err.println("Status code: " + e.getCode()); @@ -391,7 +391,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | | **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to register | | @@ -417,7 +417,7 @@ null (empty response body) # **shareUDFInfo** -> shareUDFInfo(namespace, name, udfSharing) +> shareUDFInfo(workspace, name, udfSharing) @@ -450,11 +450,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name, udfSharing); + apiInstance.shareUDFInfo(workspace, name, udfSharing); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#shareUDFInfo"); System.err.println("Status code: " + e.getCode()); @@ -470,7 +470,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name of UDFInfo | | | **udfSharing** | [**UDFSharing**](UDFSharing.md)| Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. | | @@ -497,7 +497,7 @@ null (empty response body) # **submitGenericUDF** -> File submitGenericUDF(namespace, udf, acceptEncoding) +> File submitGenericUDF(workspace, udf, acceptEncoding) @@ -530,11 +530,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, udf, acceptEncoding); + File result = apiInstance.submitGenericUDF(workspace, udf, acceptEncoding); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#submitGenericUDF"); @@ -551,7 +551,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **udf** | [**GenericUDF**](GenericUDF.md)| UDF to run | | | **acceptEncoding** | **String**| Encoding to use | [optional] | @@ -577,7 +577,7 @@ public class Example { # **submitMultiArrayUDF** -> File submitMultiArrayUDF(namespace, udf, acceptEncoding) +> File submitMultiArrayUDF(workspace, udf, acceptEncoding) @@ -610,11 +610,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, udf, acceptEncoding); + File result = apiInstance.submitMultiArrayUDF(workspace, udf, acceptEncoding); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#submitMultiArrayUDF"); @@ -631,7 +631,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | | | **acceptEncoding** | **String**| Encoding to use | [optional] | @@ -657,7 +657,7 @@ public class Example { # **submitUDF** -> File submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2) +> File submitUDF(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2) @@ -690,14 +690,15 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, array, udf, xPayer, acceptEncoding, v2); + 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"); @@ -714,7 +715,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **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 | | | **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | | | **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | @@ -741,9 +743,9 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - -# **udfNamespaceArrayEndTimestampsGet** -> ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) + +# **udfWorkspaceArrayEndTimestampsGet** +> ArrayEndTimestampData udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage) @@ -776,15 +778,15 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + ArrayEndTimestampData result = apiInstance.udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#udfNamespaceArrayEndTimestampsGet"); + 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()); @@ -798,7 +800,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **array** | **String**| name/uri of array that is url-encoded | | | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | @@ -825,7 +827,7 @@ public class Example { # **updateUDFInfo** -> updateUDFInfo(namespace, name, udf) +> updateUDFInfo(workspace, name, udf) @@ -858,11 +860,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String 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(namespace, name, udf); + apiInstance.updateUDFInfo(workspace, name, udf); } catch (ApiException e) { System.err.println("Exception when calling UdfApi#updateUDFInfo"); System.err.println("Status code: " + e.getCode()); @@ -878,7 +880,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **name** | **String**| name to register UDF under | | | **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to update | | diff --git a/docs/UserApi.md b/docs/UserApi.md index 35b9dba..898b5c7 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -4,13 +4,13 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addAWSAccessCredentials**](UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | | +| [**addAWSAccessCredentials**](UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{workspace}/{teamspace}/aws | | | [**addUserToOrganization**](UserApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | | -| [**checkAWSAccessCredentials**](UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | | -| [**checkAWSAccessCredentialsByName**](UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | | +| [**checkAWSAccessCredentials**](UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{workspace}/{teamspace}/aws | | +| [**checkAWSAccessCredentialsByName**](UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**confirmEmail**](UserApi.md#confirmEmail) | **POST** /user/confirm_email | | | [**createUser**](UserApi.md#createUser) | **POST** /user | | -| [**deleteAWSAccessCredentials**](UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | +| [**deleteAWSAccessCredentials**](UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /users/{username} | | | [**deleteUserFromOrganization**](UserApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | | | [**getOrganizationUser**](UserApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | | @@ -23,14 +23,14 @@ All URIs are relative to */v1* | [**revokeToken**](UserApi.md#revokeToken) | **DELETE** /tokens/{token} | | | [**tokensGet**](UserApi.md#tokensGet) | **GET** /tokens | | | [**tokensSessionGet**](UserApi.md#tokensSessionGet) | **GET** /tokens/session | | -| [**updateAWSAccessCredentials**](UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | +| [**updateAWSAccessCredentials**](UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{workspace}/{teamspace}/aws/{name} | | | [**updateUser**](UserApi.md#updateUser) | **PATCH** /users/{username} | | | [**updateUserInOrganization**](UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | # **addAWSAccessCredentials** -> addAWSAccessCredentials(namespace, awsAccessCredentials) +> addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials) @@ -63,10 +63,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, awsAccessCredentials); + apiInstance.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); } catch (ApiException e) { System.err.println("Exception when calling UserApi#addAWSAccessCredentials"); System.err.println("Status code: " + e.getCode()); @@ -82,7 +83,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing 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 @@ -184,7 +186,7 @@ null (empty response body) # **checkAWSAccessCredentials** -> List<AWSAccessCredentials> checkAWSAccessCredentials(namespace) +> List<AWSAccessCredentials> checkAWSAccessCredentials(workspace, teamspace) @@ -217,9 +219,10 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace); + List result = apiInstance.checkAWSAccessCredentials(workspace, teamspace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#checkAWSAccessCredentials"); @@ -236,7 +239,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | ### Return type @@ -260,7 +264,7 @@ public class Example { # **checkAWSAccessCredentialsByName** -> AWSAccessCredentials checkAWSAccessCredentialsByName(namespace, name) +> AWSAccessCredentials checkAWSAccessCredentialsByName(workspace, teamspace, name) @@ -293,10 +297,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, name); + AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(workspace, teamspace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#checkAWSAccessCredentialsByName"); @@ -313,7 +318,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -472,7 +478,7 @@ No authorization required # **deleteAWSAccessCredentials** -> deleteAWSAccessCredentials(namespace, name) +> deleteAWSAccessCredentials(workspace, teamspace, name) @@ -505,10 +511,11 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, name); + apiInstance.deleteAWSAccessCredentials(workspace, teamspace, name); } catch (ApiException e) { System.err.println("Exception when calling UserApi#deleteAWSAccessCredentials"); System.err.println("Status code: " + e.getCode()); @@ -524,7 +531,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -780,7 +788,7 @@ public class Example { # **getSession** -> Token getSession(rememberMe) +> Token getSession(rememberMe, expires) @@ -814,8 +822,9 @@ public class Example { 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); + Token result = apiInstance.getSession(rememberMe, expires); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#getSession"); @@ -833,6 +842,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **rememberMe** | **String**| flag to create a token with expiration of 30 days, default is false | [optional] | +| **expires** | **OffsetDateTime**| Expiration date for token, if empty token defaults to 30 minutes | [optional] | ### Return type @@ -1448,7 +1458,7 @@ This endpoint does not need any parameter. # **updateAWSAccessCredentials** -> updateAWSAccessCredentials(namespace, name, awsAccessCredentials) +> updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials) @@ -1481,11 +1491,12 @@ public class Example { //ApiKeyAuth.setApiKeyPrefix("Token"); UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace + 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(namespace, name, awsAccessCredentials); + apiInstance.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateAWSAccessCredentials"); System.err.println("Status code: " + e.getCode()); @@ -1501,7 +1512,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| namespace | | +| **workspace** | **String**| the workspace containing 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 | | diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java index 808e648..764c77e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java index c2eae8b..b237260 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Configuration { public static final String VERSION = "2.17.51"; diff --git a/src/main/java/io/tiledb/cloud/rest_api/JSON.java b/src/main/java/io/tiledb/cloud/rest_api/JSON.java index 4f699ea..1dfec31 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/JSON.java +++ b/src/main/java/io/tiledb/cloud/rest_api/JSON.java @@ -121,6 +121,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AttributeBufferHeader.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AttributeBufferSize.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Backoff.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Dimension.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DimensionCoordinate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DimensionTileExtent.CustomTypeAdapterFactory()); diff --git a/src/main/java/io/tiledb/cloud/rest_api/Pair.java b/src/main/java/io/tiledb/cloud/rest_api/Pair.java index 5fbb234..3960c7e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Pair.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Pair.java @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java b/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java index d39750a..d2a6463 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java @@ -5,7 +5,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java b/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java index c9db9f5..a4c0431 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java @@ -5,7 +5,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java index c207942..0d82fe9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +++ b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java index 0f6dcfb..6de559a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java @@ -96,7 +96,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for arrayActivityLog - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -114,7 +115,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arrayActivityLogCall(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,8 +132,9 @@ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/activity" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/activity" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -181,10 +183,15 @@ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling arrayActivityLog(Async)"); + private okhttp3.Call arrayActivityLogValidateBeforeCall(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling arrayActivityLog(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling arrayActivityLog(Async)"); } // verify the required parameter 'array' is set @@ -192,14 +199,15 @@ private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'array' when calling arrayActivityLog(Async)"); } - return arrayActivityLogCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + return arrayActivityLogCall(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId, _callback); } /** * * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -216,15 +224,16 @@ private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String 0 error response - */ - public List arrayActivityLog(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { - ApiResponse> localVarResp = arrayActivityLogWithHttpInfo(namespace, array, start, end, eventTypes, taskId, hasTaskId); + public List arrayActivityLog(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { + ApiResponse> localVarResp = arrayActivityLogWithHttpInfo(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId); return localVarResp.getData(); } /** * * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -241,8 +250,8 @@ public List arrayActivityLog(String namespace, String array, I 0 error response - */ - public ApiResponse> arrayActivityLogWithHttpInfo(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { - okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, null); + public ApiResponse> arrayActivityLogWithHttpInfo(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId) throws ApiException { + okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -250,7 +259,8 @@ public ApiResponse> arrayActivityLogWithHttpInfo(String n /** * (asynchronously) * get array activity logs - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) @@ -268,9 +278,9 @@ public ApiResponse> arrayActivityLogWithHttpInfo(String n 0 error response - */ - public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call arrayActivityLogAsync(String workspace, String teamspace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1378,8 +1388,9 @@ public okhttp3.Call arraysBrowserSharedSidebarGetAsync(List fileType, Li return localVarCall; } /** - * Build call for arraysNamespaceArrayEndTimestampsGet - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for arraysWorkspaceTeamspaceArrayEndTimestampsGet + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1394,7 +1405,7 @@ public okhttp3.Call arraysBrowserSharedSidebarGetAsync(List fileType, Li 0 error response - */ - public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysWorkspaceTeamspaceArrayEndTimestampsGetCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1411,8 +1422,9 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/end_timestamps" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/end_timestamps" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1449,25 +1461,31 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling arraysNamespaceArrayEndTimestampsGet(Async)"); + private okhttp3.Call arraysWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling arraysWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling arraysWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling arraysNamespaceArrayEndTimestampsGet(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling arraysWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } - return arraysNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + return arraysWorkspaceTeamspaceArrayEndTimestampsGetCall(workspace, teamspace, array, page, perPage, _callback); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1481,15 +1499,16 @@ private okhttp3.Call arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(Stri 0 error response - */ - public ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(String namespace, String array, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = arraysNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + public ArrayEndTimestampData arraysWorkspaceTeamspaceArrayEndTimestampsGet(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = arraysWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(workspace, teamspace, array, page, perPage); return localVarResp.getData(); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1503,8 +1522,8 @@ public ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(String namespa 0 error response - */ - public ApiResponse arraysNamespaceArrayEndTimestampsGetWithHttpInfo(String namespace, String array, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + public ApiResponse arraysWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = arraysWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1512,7 +1531,8 @@ public ApiResponse arraysNamespaceArrayEndTimestampsGetWi /** * (asynchronously) * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1527,16 +1547,17 @@ public ApiResponse arraysNamespaceArrayEndTimestampsGetWi 0 error response - */ - public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysWorkspaceTeamspaceArrayEndTimestampsGetAsync(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = arraysWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for consolidateArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @param _callback Callback for upload/download progress @@ -1550,7 +1571,7 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync(String namespace, 0 error response - */ - public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call consolidateArrayCall(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1567,8 +1588,9 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayCo Object localVarPostBody = consolidateRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/consolidate" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/consolidate" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1598,10 +1620,15 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayCo } @SuppressWarnings("rawtypes") - private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling consolidateArray(Async)"); + private okhttp3.Call consolidateArrayValidateBeforeCall(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling consolidateArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling consolidateArray(Async)"); } // verify the required parameter 'array' is set @@ -1614,14 +1641,15 @@ private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'consolidateRequest' when calling consolidateArray(Async)"); } - return consolidateArrayCall(namespace, array, consolidateRequest, _callback); + return consolidateArrayCall(workspace, teamspace, array, consolidateRequest, _callback); } /** * * consolidate an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1633,14 +1661,15 @@ private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String 0 error response - */ - public void consolidateArray(String namespace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { - consolidateArrayWithHttpInfo(namespace, array, consolidateRequest); + public void consolidateArray(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { + consolidateArrayWithHttpInfo(workspace, teamspace, array, consolidateRequest); } /** * * consolidate an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @return ApiResponse<Void> @@ -1653,15 +1682,16 @@ public void consolidateArray(String namespace, String array, ArrayConsolidationR 0 error response - */ - public ApiResponse consolidateArrayWithHttpInfo(String namespace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { - okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, null); + public ApiResponse consolidateArrayWithHttpInfo(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(workspace, teamspace, array, consolidateRequest, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * consolidate an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param consolidateRequest Consolidate Request (required) * @param _callback The callback to be executed when the API call finishes @@ -1675,15 +1705,16 @@ public ApiResponse consolidateArrayWithHttpInfo(String namespace, String a 0 error response - */ - public okhttp3.Call consolidateArrayAsync(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call consolidateArrayAsync(String workspace, String teamspace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, _callback); + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(workspace, teamspace, array, consolidateRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1699,7 +1730,7 @@ public okhttp3.Call consolidateArrayAsync(String namespace, String array, ArrayC 0 error response - */ - public okhttp3.Call createArrayCall(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createArrayCall(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1716,8 +1747,9 @@ public okhttp3.Call createArrayCall(String namespace, String array, String conte Object localVarPostBody = arraySchema; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1755,10 +1787,15 @@ public okhttp3.Call createArrayCall(String namespace, String array, String conte } @SuppressWarnings("rawtypes") - private okhttp3.Call createArrayValidateBeforeCall(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createArray(Async)"); + private okhttp3.Call createArrayValidateBeforeCall(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling createArray(Async)"); } // verify the required parameter 'array' is set @@ -1776,14 +1813,15 @@ private okhttp3.Call createArrayValidateBeforeCall(String namespace, String arra throw new ApiException("Missing the required parameter 'arraySchema' when calling createArray(Async)"); } - return createArrayCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + return createArrayCall(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); } /** * * create a array schema at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1797,14 +1835,15 @@ private okhttp3.Call createArrayValidateBeforeCall(String namespace, String arra 0 error response - */ - public void createArray(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - createArrayWithHttpInfo(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + public void createArray(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + createArrayWithHttpInfo(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); } /** * * create a array schema at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1819,15 +1858,16 @@ public void createArray(String namespace, String array, String contentType, Arra 0 error response - */ - public ApiResponse createArrayWithHttpInfo(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - okhttp3.Call localVarCall = createArrayValidateBeforeCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); + public ApiResponse createArrayWithHttpInfo(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + okhttp3.Call localVarCall = createArrayValidateBeforeCall(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * create a array schema at a specified URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param arraySchema ArraySchema being created (required) @@ -1843,15 +1883,16 @@ public ApiResponse createArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call createArrayAsync(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createArrayAsync(String workspace, String teamspace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createArrayValidateBeforeCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + okhttp3.Call localVarCall = createArrayValidateBeforeCall(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback Callback for upload/download progress @@ -1865,7 +1906,7 @@ public okhttp3.Call createArrayAsync(String namespace, String array, String cont 0 error response - */ - public okhttp3.Call deleteArrayCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1882,8 +1923,9 @@ public okhttp3.Call deleteArrayCall(String namespace, String array, String conte Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1916,10 +1958,15 @@ public okhttp3.Call deleteArrayCall(String namespace, String array, String conte } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteArray(Async)"); + private okhttp3.Call deleteArrayValidateBeforeCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteArray(Async)"); } // verify the required parameter 'array' is set @@ -1932,14 +1979,15 @@ private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String arra throw new ApiException("Missing the required parameter 'contentType' when calling deleteArray(Async)"); } - return deleteArrayCall(namespace, array, contentType, _callback); + return deleteArrayCall(workspace, teamspace, array, contentType, _callback); } /** * * delete a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1951,14 +1999,15 @@ private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String arra 0 error response - */ - public void deleteArray(String namespace, String array, String contentType) throws ApiException { - deleteArrayWithHttpInfo(namespace, array, contentType); + public void deleteArray(String workspace, String teamspace, String array, String contentType) throws ApiException { + deleteArrayWithHttpInfo(workspace, teamspace, array, contentType); } /** * * delete a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @return ApiResponse<Void> @@ -1971,15 +2020,16 @@ public void deleteArray(String namespace, String array, String contentType) thro 0 error response - */ - public ApiResponse deleteArrayWithHttpInfo(String namespace, String array, String contentType) throws ApiException { - okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(namespace, array, contentType, null); + public ApiResponse deleteArrayWithHttpInfo(String workspace, String teamspace, String array, String contentType) throws ApiException { + okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(workspace, teamspace, array, contentType, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback The callback to be executed when the API call finishes @@ -1993,15 +2043,16 @@ public ApiResponse deleteArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call deleteArrayAsync(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayAsync(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(namespace, array, contentType, _callback); + okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(workspace, teamspace, array, contentType, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deregisterArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2014,7 +2065,7 @@ public okhttp3.Call deleteArrayAsync(String namespace, String array, String cont 0 error response - */ - public okhttp3.Call deregisterArrayCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deregisterArrayCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2031,8 +2082,9 @@ public okhttp3.Call deregisterArrayCall(String namespace, String array, final Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/deregister" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/deregister" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -2061,10 +2113,15 @@ public okhttp3.Call deregisterArrayCall(String namespace, String array, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deregisterArray(Async)"); + private okhttp3.Call deregisterArrayValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deregisterArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deregisterArray(Async)"); } // verify the required parameter 'array' is set @@ -2072,14 +2129,15 @@ private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'array' when calling deregisterArray(Async)"); } - return deregisterArrayCall(namespace, array, _callback); + return deregisterArrayCall(workspace, teamspace, array, _callback); } /** * * deregister a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2090,14 +2148,15 @@ private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String 0 error response - */ - public void deregisterArray(String namespace, String array) throws ApiException { - deregisterArrayWithHttpInfo(namespace, array); + public void deregisterArray(String workspace, String teamspace, String array) throws ApiException { + deregisterArrayWithHttpInfo(workspace, teamspace, array); } /** * * deregister a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2109,15 +2168,16 @@ public void deregisterArray(String namespace, String array) throws ApiException 0 error response - */ - public ApiResponse deregisterArrayWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(namespace, array, null); + public ApiResponse deregisterArrayWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(workspace, teamspace, array, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * deregister a array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2130,15 +2190,16 @@ public ApiResponse deregisterArrayWithHttpInfo(String namespace, String ar 0 error response - */ - public okhttp3.Call deregisterArrayAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deregisterArrayAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(workspace, teamspace, array, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for fragmentInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2152,7 +2213,7 @@ public okhttp3.Call deregisterArrayAsync(String namespace, String array, final A 0 error response - */ - public okhttp3.Call fragmentInfoCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fragmentInfoCall(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2169,8 +2230,9 @@ public okhttp3.Call fragmentInfoCall(String namespace, String array, String cont Object localVarPostBody = fragmentInfoRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/fragment_info" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/fragment_info" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -2204,10 +2266,15 @@ public okhttp3.Call fragmentInfoCall(String namespace, String array, String cont } @SuppressWarnings("rawtypes") - private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling fragmentInfo(Async)"); + private okhttp3.Call fragmentInfoValidateBeforeCall(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling fragmentInfo(Async)"); } // verify the required parameter 'array' is set @@ -2225,14 +2292,15 @@ private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String arr throw new ApiException("Missing the required parameter 'fragmentInfoRequest' when calling fragmentInfo(Async)"); } - return fragmentInfoCall(namespace, array, contentType, fragmentInfoRequest, _callback); + return fragmentInfoCall(workspace, teamspace, array, contentType, fragmentInfoRequest, _callback); } /** * * fetch an array's fragment info - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2245,15 +2313,16 @@ private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String arr 0 error response - */ - public FragmentInfo fragmentInfo(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { - ApiResponse localVarResp = fragmentInfoWithHttpInfo(namespace, array, contentType, fragmentInfoRequest); + public FragmentInfo fragmentInfo(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { + ApiResponse localVarResp = fragmentInfoWithHttpInfo(workspace, teamspace, array, contentType, fragmentInfoRequest); return localVarResp.getData(); } /** * * fetch an array's fragment info - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2266,8 +2335,8 @@ public FragmentInfo fragmentInfo(String namespace, String array, String contentT 0 error response - */ - public ApiResponse fragmentInfoWithHttpInfo(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { - okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, null); + public ApiResponse fragmentInfoWithHttpInfo(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(workspace, teamspace, array, contentType, fragmentInfoRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2275,7 +2344,8 @@ public ApiResponse fragmentInfoWithHttpInfo(String namespace, Stri /** * (asynchronously) * fetch an array's fragment info - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param fragmentInfoRequest ArraySchema being created (required) @@ -2289,16 +2359,17 @@ public ApiResponse fragmentInfoWithHttpInfo(String namespace, Stri 0 error response - */ - public okhttp3.Call fragmentInfoAsync(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fragmentInfoAsync(String workspace, String teamspace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, _callback); + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(workspace, teamspace, array, contentType, fragmentInfoRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getActivityLogById - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @param _callback Callback for upload/download progress @@ -2312,7 +2383,7 @@ public okhttp3.Call fragmentInfoAsync(String namespace, String array, String con 0 error response - */ - public okhttp3.Call getActivityLogByIdCall(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getActivityLogByIdCall(String workspace, String teamspace, String array, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2329,8 +2400,9 @@ public okhttp3.Call getActivityLogByIdCall(String namespace, String array, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/activity/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/activity/{id}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); @@ -2360,10 +2432,15 @@ public okhttp3.Call getActivityLogByIdCall(String namespace, String array, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getActivityLogById(Async)"); + private okhttp3.Call getActivityLogByIdValidateBeforeCall(String workspace, String teamspace, String array, String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getActivityLogById(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getActivityLogById(Async)"); } // verify the required parameter 'array' is set @@ -2376,14 +2453,15 @@ private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'id' when calling getActivityLogById(Async)"); } - return getActivityLogByIdCall(namespace, array, id, _callback); + return getActivityLogByIdCall(workspace, teamspace, array, id, _callback); } /** * * get activity log by ID - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @return ArrayActivityLog @@ -2396,15 +2474,16 @@ private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, Stri 0 error response - */ - public ArrayActivityLog getActivityLogById(String namespace, String array, String id) throws ApiException { - ApiResponse localVarResp = getActivityLogByIdWithHttpInfo(namespace, array, id); + public ArrayActivityLog getActivityLogById(String workspace, String teamspace, String array, String id) throws ApiException { + ApiResponse localVarResp = getActivityLogByIdWithHttpInfo(workspace, teamspace, array, id); return localVarResp.getData(); } /** * * get activity log by ID - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @return ApiResponse<ArrayActivityLog> @@ -2417,8 +2496,8 @@ public ArrayActivityLog getActivityLogById(String namespace, String array, Strin 0 error response - */ - public ApiResponse getActivityLogByIdWithHttpInfo(String namespace, String array, String id) throws ApiException { - okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(namespace, array, id, null); + public ApiResponse getActivityLogByIdWithHttpInfo(String workspace, String teamspace, String array, String id) throws ApiException { + okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(workspace, teamspace, array, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2426,7 +2505,8 @@ public ApiResponse getActivityLogByIdWithHttpInfo(String names /** * (asynchronously) * get activity log by ID - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param id ID of the activity (required) * @param _callback The callback to be executed when the API call finishes @@ -2440,9 +2520,9 @@ public ApiResponse getActivityLogByIdWithHttpInfo(String names 0 error response - */ - public okhttp3.Call getActivityLogByIdAsync(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getActivityLogByIdAsync(String workspace, String teamspace, String array, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(namespace, array, id, _callback); + okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(workspace, teamspace, array, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2578,7 +2658,8 @@ public okhttp3.Call getAllArrayMetadataAsync(String publicShare, final ApiCallba } /** * Build call for getArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback Callback for upload/download progress @@ -2592,7 +2673,7 @@ public okhttp3.Call getAllArrayMetadataAsync(String publicShare, final ApiCallba 0 error response - */ - public okhttp3.Call getArrayCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2609,8 +2690,9 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -2644,10 +2726,15 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArray(Async)"); + private okhttp3.Call getArrayValidateBeforeCall(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArray(Async)"); } // verify the required parameter 'array' is set @@ -2660,14 +2747,15 @@ private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, throw new ApiException("Missing the required parameter 'contentType' when calling getArray(Async)"); } - return getArrayCall(namespace, array, contentType, _callback); + return getArrayCall(workspace, teamspace, array, contentType, _callback); } /** * * get an ArraySchema using a url encoded uri - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @return ArraySchema @@ -2680,15 +2768,16 @@ private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, 0 error response - */ - public ArraySchema getArray(String namespace, String array, String contentType) throws ApiException { - ApiResponse localVarResp = getArrayWithHttpInfo(namespace, array, contentType); + public ArraySchema getArray(String workspace, String teamspace, String array, String contentType) throws ApiException { + ApiResponse localVarResp = getArrayWithHttpInfo(workspace, teamspace, array, contentType); return localVarResp.getData(); } /** * * get an ArraySchema using a url encoded uri - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @return ApiResponse<ArraySchema> @@ -2701,8 +2790,8 @@ public ArraySchema getArray(String namespace, String array, String contentType) 0 error response - */ - public ApiResponse getArrayWithHttpInfo(String namespace, String array, String contentType) throws ApiException { - okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, null); + public ApiResponse getArrayWithHttpInfo(String workspace, String teamspace, String array, String contentType) throws ApiException { + okhttp3.Call localVarCall = getArrayValidateBeforeCall(workspace, teamspace, array, contentType, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2710,7 +2799,8 @@ public ApiResponse getArrayWithHttpInfo(String namespace, String ar /** * (asynchronously) * get an ArraySchema using a url encoded uri - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param _callback The callback to be executed when the API call finishes @@ -2724,16 +2814,17 @@ public ApiResponse getArrayWithHttpInfo(String namespace, String ar 0 error response - */ - public okhttp3.Call getArrayAsync(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayAsync(String workspace, String teamspace, String array, String contentType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, _callback); + okhttp3.Call localVarCall = getArrayValidateBeforeCall(workspace, teamspace, array, contentType, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMaxBufferSizes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2749,7 +2840,7 @@ public okhttp3.Call getArrayAsync(String namespace, String array, String content 0 error response - */ - public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMaxBufferSizesCall(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2766,8 +2857,9 @@ public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/max_buffer_sizes" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/max_buffer_sizes" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -2808,10 +2900,15 @@ public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, S } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMaxBufferSizes(Async)"); + private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMaxBufferSizes(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMaxBufferSizes(Async)"); } // verify the required parameter 'array' is set @@ -2829,14 +2926,15 @@ private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'contentType' when calling getArrayMaxBufferSizes(Async)"); } - return getArrayMaxBufferSizesCall(namespace, array, subarray, contentType, xPayer, _callback); + return getArrayMaxBufferSizesCall(workspace, teamspace, array, subarray, contentType, xPayer, _callback); } /** * * get the max buffer sizes of an array for a subarray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2851,15 +2949,16 @@ private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, 0 error response - */ - public MaxBufferSizes getArrayMaxBufferSizes(String namespace, String array, String subarray, String contentType, String xPayer) throws ApiException { - ApiResponse localVarResp = getArrayMaxBufferSizesWithHttpInfo(namespace, array, subarray, contentType, xPayer); + public MaxBufferSizes getArrayMaxBufferSizes(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getArrayMaxBufferSizesWithHttpInfo(workspace, teamspace, array, subarray, contentType, xPayer); return localVarResp.getData(); } /** * * get the max buffer sizes of an array for a subarray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2874,8 +2973,8 @@ public MaxBufferSizes getArrayMaxBufferSizes(String namespace, String array, Str 0 error response - */ - public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String namespace, String array, String subarray, String contentType, String xPayer) throws ApiException { - okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(namespace, array, subarray, contentType, xPayer, null); + public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(workspace, teamspace, array, subarray, contentType, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2883,7 +2982,8 @@ public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String nam /** * (asynchronously) * get the max buffer sizes of an array for a subarray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param subarray CSV string of subarray to get max buffer sizes for (required) * @param contentType Content Type of input and return mime (required) @@ -2899,16 +2999,17 @@ public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String nam 0 error response - */ - public okhttp3.Call getArrayMaxBufferSizesAsync(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMaxBufferSizesAsync(String workspace, String teamspace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(namespace, array, subarray, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(workspace, teamspace, array, subarray, contentType, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMetaDataJson - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) @@ -2923,7 +3024,7 @@ public okhttp3.Call getArrayMaxBufferSizesAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetaDataJsonCall(String workspace, String teamspace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2940,8 +3041,9 @@ public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Int Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/metadata_json" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/metadata_json" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -2978,10 +3080,15 @@ public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Int } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetaDataJson(Async)"); + private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String workspace, String teamspace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMetaDataJson(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMetaDataJson(Async)"); } // verify the required parameter 'array' is set @@ -2989,14 +3096,15 @@ private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, St throw new ApiException("Missing the required parameter 'array' when calling getArrayMetaDataJson(Async)"); } - return getArrayMetaDataJsonCall(namespace, array, length, endTimestamp, _callback); + return getArrayMetaDataJsonCall(workspace, teamspace, array, length, endTimestamp, _callback); } /** * * get metadata from the array in JSON format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) @@ -3010,15 +3118,16 @@ private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, St 0 error response - */ - public Map getArrayMetaDataJson(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { - ApiResponse> localVarResp = getArrayMetaDataJsonWithHttpInfo(namespace, array, length, endTimestamp); + public Map getArrayMetaDataJson(String workspace, String teamspace, String array, Integer length, Integer endTimestamp) throws ApiException { + ApiResponse> localVarResp = getArrayMetaDataJsonWithHttpInfo(workspace, teamspace, array, length, endTimestamp); return localVarResp.getData(); } /** * * get metadata from the array in JSON format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) @@ -3032,8 +3141,8 @@ public Map getArrayMetaDataJson(String namespace, String array, 0 error response - */ - public ApiResponse> getArrayMetaDataJsonWithHttpInfo(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(namespace, array, length, endTimestamp, null); + public ApiResponse> getArrayMetaDataJsonWithHttpInfo(String workspace, String teamspace, String array, Integer length, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(workspace, teamspace, array, length, endTimestamp, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3041,7 +3150,8 @@ public ApiResponse> getArrayMetaDataJsonWithHttpInfo(String /** * (asynchronously) * get metadata from the array in JSON format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param length (optional) limit character length of returned values (optional) * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp (optional) @@ -3056,16 +3166,17 @@ public ApiResponse> getArrayMetaDataJsonWithHttpInfo(String 0 error response - */ - public okhttp3.Call getArrayMetaDataJsonAsync(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArrayMetaDataJsonAsync(String workspace, String teamspace, String array, Integer length, Integer endTimestamp, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(namespace, array, length, endTimestamp, _callback); + okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(workspace, teamspace, array, length, endTimestamp, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMetadata - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3078,7 +3189,7 @@ public okhttp3.Call getArrayMetaDataJsonAsync(String namespace, String array, In 0 error response - */ - public okhttp3.Call getArrayMetadataCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3095,8 +3206,9 @@ public okhttp3.Call getArrayMetadataCall(String namespace, String array, final A Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/metadata" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -3125,10 +3237,15 @@ public okhttp3.Call getArrayMetadataCall(String namespace, String array, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetadata(Async)"); + private okhttp3.Call getArrayMetadataValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMetadata(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMetadata(Async)"); } // verify the required parameter 'array' is set @@ -3136,14 +3253,15 @@ private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'array' when calling getArrayMetadata(Async)"); } - return getArrayMetadataCall(namespace, array, _callback); + return getArrayMetadataCall(workspace, teamspace, array, _callback); } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ArrayInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3155,15 +3273,16 @@ private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String 0 error response - */ - public ArrayInfo getArrayMetadata(String namespace, String array) throws ApiException { - ApiResponse localVarResp = getArrayMetadataWithHttpInfo(namespace, array); + public ArrayInfo getArrayMetadata(String workspace, String teamspace, String array) throws ApiException { + ApiResponse localVarResp = getArrayMetadataWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<ArrayInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3175,8 +3294,8 @@ public ArrayInfo getArrayMetadata(String namespace, String array) throws ApiExce 0 error response - */ - public ApiResponse getArrayMetadataWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(namespace, array, null); + public ApiResponse getArrayMetadataWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3184,7 +3303,8 @@ public ApiResponse getArrayMetadataWithHttpInfo(String namespace, Str /** * (asynchronously) * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3197,16 +3317,17 @@ public ApiResponse getArrayMetadataWithHttpInfo(String namespace, Str 0 error response - */ - public okhttp3.Call getArrayMetadataAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayMetadataCapnp - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3219,7 +3340,7 @@ public okhttp3.Call getArrayMetadataAsync(String namespace, String array, final 0 error response - */ - public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataCapnpCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3236,8 +3357,9 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/array_metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/array_metadata" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -3267,10 +3389,15 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetadataCapnp(Async)"); + private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayMetadataCapnp(Async)"); } // verify the required parameter 'array' is set @@ -3278,14 +3405,15 @@ private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, S throw new ApiException("Missing the required parameter 'array' when calling getArrayMetadataCapnp(Async)"); } - return getArrayMetadataCapnpCall(namespace, array, _callback); + return getArrayMetadataCapnpCall(workspace, teamspace, array, _callback); } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ArrayMetadata * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3297,15 +3425,16 @@ private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, S 0 error response - */ - public ArrayMetadata getArrayMetadataCapnp(String namespace, String array) throws ApiException { - ApiResponse localVarResp = getArrayMetadataCapnpWithHttpInfo(namespace, array); + public ArrayMetadata getArrayMetadataCapnp(String workspace, String teamspace, String array) throws ApiException { + ApiResponse localVarResp = getArrayMetadataCapnpWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<ArrayMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3317,8 +3446,8 @@ public ArrayMetadata getArrayMetadataCapnp(String namespace, String array) throw 0 error response - */ - public ApiResponse getArrayMetadataCapnpWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(namespace, array, null); + public ApiResponse getArrayMetadataCapnpWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3326,7 +3455,8 @@ public ApiResponse getArrayMetadataCapnpWithHttpInfo(String names /** * (asynchronously) * get metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3339,16 +3469,17 @@ public ApiResponse getArrayMetadataCapnpWithHttpInfo(String names 0 error response - */ - public okhttp3.Call getArrayMetadataCapnpAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayMetadataCapnpAsync(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayNonEmptyDomain - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3363,7 +3494,7 @@ public okhttp3.Call getArrayMetadataCapnpAsync(String namespace, String array, f 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3380,8 +3511,9 @@ public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/non_empty_domain" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/non_empty_domain" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -3418,10 +3550,15 @@ public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, S } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayNonEmptyDomain(Async)"); + private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayNonEmptyDomain(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayNonEmptyDomain(Async)"); } // verify the required parameter 'array' is set @@ -3434,14 +3571,15 @@ private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'contentType' when calling getArrayNonEmptyDomain(Async)"); } - return getArrayNonEmptyDomainCall(namespace, array, contentType, xPayer, _callback); + return getArrayNonEmptyDomainCall(workspace, teamspace, array, contentType, xPayer, _callback); } /** * * get the non empty domain of an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3455,15 +3593,16 @@ private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, 0 error response - */ - public NonEmptyDomain getArrayNonEmptyDomain(String namespace, String array, String contentType, String xPayer) throws ApiException { - ApiResponse localVarResp = getArrayNonEmptyDomainWithHttpInfo(namespace, array, contentType, xPayer); + public NonEmptyDomain getArrayNonEmptyDomain(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getArrayNonEmptyDomainWithHttpInfo(workspace, teamspace, array, contentType, xPayer); return localVarResp.getData(); } /** * * get the non empty domain of an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3477,8 +3616,8 @@ public NonEmptyDomain getArrayNonEmptyDomain(String namespace, String array, Str 0 error response - */ - public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String namespace, String array, String contentType, String xPayer) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(namespace, array, contentType, xPayer, null); + public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3486,7 +3625,8 @@ public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String nam /** * (asynchronously) * get the non empty domain of an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -3501,16 +3641,17 @@ public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String nam 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainAsync(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainAsync(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(namespace, array, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArrayNonEmptyDomainJson - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3523,7 +3664,7 @@ public okhttp3.Call getArrayNonEmptyDomainAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainJsonCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3540,8 +3681,9 @@ public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String arra Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/non_empty_domain_json" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/non_empty_domain_json" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -3570,10 +3712,15 @@ public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String arra } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayNonEmptyDomainJson(Async)"); + private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayNonEmptyDomainJson(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayNonEmptyDomainJson(Async)"); } // verify the required parameter 'array' is set @@ -3581,14 +3728,15 @@ private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'array' when calling getArrayNonEmptyDomainJson(Async)"); } - return getArrayNonEmptyDomainJsonCall(namespace, array, _callback); + return getArrayNonEmptyDomainJsonCall(workspace, teamspace, array, _callback); } /** * * get non-empty domain from the array in json format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return Map<String, Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3600,15 +3748,16 @@ private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespa 0 error response - */ - public Map getArrayNonEmptyDomainJson(String namespace, String array) throws ApiException { - ApiResponse> localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(namespace, array); + public Map getArrayNonEmptyDomainJson(String workspace, String teamspace, String array) throws ApiException { + ApiResponse> localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * get non-empty domain from the array in json format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<Map<String, Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3620,8 +3769,8 @@ public Map getArrayNonEmptyDomainJson(String namespace, String a 0 error response - */ - public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, null); + public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3629,7 +3778,8 @@ public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(S /** * (asynchronously) * get non-empty domain from the array in json format - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3642,16 +3792,17 @@ public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(S 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String namespace, String array, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String workspace, String teamspace, String array, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArraySampleData - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @param _callback Callback for upload/download progress @@ -3665,7 +3816,7 @@ public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String namespace, String arr 0 error response - */ - public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraySampleDataCall(String workspace, String teamspace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3682,8 +3833,9 @@ public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDe Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/sample" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/sample" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -3716,10 +3868,15 @@ public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDe } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArraySampleData(Async)"); + private okhttp3.Call getArraySampleDataValidateBeforeCall(String workspace, String teamspace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArraySampleData(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArraySampleData(Async)"); } // verify the required parameter 'array' is set @@ -3727,14 +3884,15 @@ private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'array' when calling getArraySampleData(Async)"); } - return getArraySampleDataCall(namespace, array, samples, _callback); + return getArraySampleDataCall(workspace, teamspace, array, samples, _callback); } /** * * get an sample set of data from the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @return ArraySample @@ -3747,15 +3905,16 @@ private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, Stri 0 error response - */ - public ArraySample getArraySampleData(String namespace, String array, BigDecimal samples) throws ApiException { - ApiResponse localVarResp = getArraySampleDataWithHttpInfo(namespace, array, samples); + public ArraySample getArraySampleData(String workspace, String teamspace, String array, BigDecimal samples) throws ApiException { + ApiResponse localVarResp = getArraySampleDataWithHttpInfo(workspace, teamspace, array, samples); return localVarResp.getData(); } /** * * get an sample set of data from the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @return ApiResponse<ArraySample> @@ -3768,8 +3927,8 @@ public ArraySample getArraySampleData(String namespace, String array, BigDecimal 0 error response - */ - public ApiResponse getArraySampleDataWithHttpInfo(String namespace, String array, BigDecimal samples) throws ApiException { - okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(namespace, array, samples, null); + public ApiResponse getArraySampleDataWithHttpInfo(String workspace, String teamspace, String array, BigDecimal samples) throws ApiException { + okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(workspace, teamspace, array, samples, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3777,7 +3936,8 @@ public ApiResponse getArraySampleDataWithHttpInfo(String namespace, /** * (asynchronously) * get an sample set of data from the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param samples Number of sample results to return (optional, default to 5.0) * @param _callback The callback to be executed when the API call finishes @@ -3791,16 +3951,17 @@ public ApiResponse getArraySampleDataWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call getArraySampleDataAsync(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraySampleDataAsync(String workspace, String teamspace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(namespace, array, samples, _callback); + okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(workspace, teamspace, array, samples, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArraySharingPolicies - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3814,7 +3975,7 @@ public okhttp3.Call getArraySampleDataAsync(String namespace, String array, BigD 0 error response - */ - public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraySharingPoliciesCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3831,8 +3992,9 @@ public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -3861,10 +4023,15 @@ public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArraySharingPolicies(Async)"); + private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String workspace, String teamspace, String array, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArraySharingPolicies(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArraySharingPolicies(Async)"); } // verify the required parameter 'array' is set @@ -3872,14 +4039,15 @@ private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'array' when calling getArraySharingPolicies(Async)"); } - return getArraySharingPoliciesCall(namespace, array, _callback); + return getArraySharingPoliciesCall(workspace, teamspace, array, _callback); } /** * * Get all sharing details of the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return List<ArraySharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3892,15 +4060,16 @@ private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, 0 error response - */ - public List getArraySharingPolicies(String namespace, String array) throws ApiException { - ApiResponse> localVarResp = getArraySharingPoliciesWithHttpInfo(namespace, array); + public List getArraySharingPolicies(String workspace, String teamspace, String array) throws ApiException { + ApiResponse> localVarResp = getArraySharingPoliciesWithHttpInfo(workspace, teamspace, array); return localVarResp.getData(); } /** * * Get all sharing details of the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<List<ArraySharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3913,8 +4082,8 @@ public List getArraySharingPolicies(String namespace, String array 0 error response - */ - public ApiResponse> getArraySharingPoliciesWithHttpInfo(String namespace, String array) throws ApiException { - okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(namespace, array, null); + public ApiResponse> getArraySharingPoliciesWithHttpInfo(String workspace, String teamspace, String array) throws ApiException { + okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(workspace, teamspace, array, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3922,7 +4091,8 @@ public ApiResponse> getArraySharingPoliciesWithHttpInfo(Strin /** * (asynchronously) * Get all sharing details of the array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3936,16 +4106,17 @@ public ApiResponse> getArraySharingPoliciesWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArraySharingPoliciesAsync(String workspace, String teamspace, String array, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(namespace, array, _callback); + okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(workspace, teamspace, array, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getArraysInNamespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3958,7 +4129,7 @@ public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraysInNamespaceCall(String workspace, String teamspace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3975,8 +4146,9 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetad Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/arrays/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4008,20 +4180,26 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetad } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArraysInNamespace(Async)"); + private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String workspace, String teamspace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArraysInNamespace(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArraysInNamespace(Async)"); } - return getArraysInNamespaceCall(namespace, withMetadata, _callback); + return getArraysInNamespaceCall(workspace, teamspace, withMetadata, _callback); } /** * * get metadata on all arrays in a namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @return List<ArrayInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4033,15 +4211,16 @@ private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, Bo 0 error response - */ - public List getArraysInNamespace(String namespace, Boolean withMetadata) throws ApiException { - ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(namespace, withMetadata); + public List getArraysInNamespace(String workspace, String teamspace, Boolean withMetadata) throws ApiException { + ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(workspace, teamspace, withMetadata); return localVarResp.getData(); } /** * * get metadata on all arrays in a namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @return ApiResponse<List<ArrayInfo>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4053,8 +4232,8 @@ public List getArraysInNamespace(String namespace, Boolean withMetada 0 error response - */ - public ApiResponse> getArraysInNamespaceWithHttpInfo(String namespace, Boolean withMetadata) throws ApiException { - okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, null); + public ApiResponse> getArraysInNamespaceWithHttpInfo(String workspace, String teamspace, Boolean withMetadata) throws ApiException { + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(workspace, teamspace, withMetadata, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4062,7 +4241,8 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name /** * (asynchronously) * get metadata on all arrays in a namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param withMetadata include the metadata of the arrays (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -4075,16 +4255,17 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name 0 error response - */ - public okhttp3.Call getArraysInNamespaceAsync(String namespace, Boolean withMetadata, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArraysInNamespaceAsync(String workspace, String teamspace, Boolean withMetadata, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, _callback); + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(workspace, teamspace, withMetadata, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getFragmentEndTimestamp - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @param _callback Callback for upload/download progress @@ -4098,7 +4279,7 @@ public okhttp3.Call getArraysInNamespaceAsync(String namespace, Boolean withMeta 0 error response - */ - public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFragmentEndTimestampCall(String workspace, String teamspace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4115,8 +4296,9 @@ public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/fragment_end_timestamp" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/fragment_end_timestamp" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -4149,10 +4331,15 @@ public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, } @SuppressWarnings("rawtypes") - private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getFragmentEndTimestamp(Async)"); + private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String workspace, String teamspace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getFragmentEndTimestamp(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getFragmentEndTimestamp(Async)"); } // verify the required parameter 'array' is set @@ -4160,14 +4347,15 @@ private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'array' when calling getFragmentEndTimestamp(Async)"); } - return getFragmentEndTimestampCall(namespace, array, endTimestamp, _callback); + return getFragmentEndTimestampCall(workspace, teamspace, array, endTimestamp, _callback); } /** * * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @return Integer @@ -4180,15 +4368,16 @@ private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, 0 error response - */ - public Integer getFragmentEndTimestamp(String namespace, String array, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = getFragmentEndTimestampWithHttpInfo(namespace, array, endTimestamp); + public Integer getFragmentEndTimestamp(String workspace, String teamspace, String array, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = getFragmentEndTimestampWithHttpInfo(workspace, teamspace, array, endTimestamp); return localVarResp.getData(); } /** * * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @return ApiResponse<Integer> @@ -4201,8 +4390,8 @@ public Integer getFragmentEndTimestamp(String namespace, String array, Integer e 0 error response - */ - public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace, String array, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(namespace, array, endTimestamp, null); + public ApiResponse getFragmentEndTimestampWithHttpInfo(String workspace, String teamspace, String array, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(workspace, teamspace, array, endTimestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4210,7 +4399,8 @@ public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace /** * (asynchronously) * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param endTimestamp Milliseconds since Unix epoch (optional) * @param _callback The callback to be executed when the API call finishes @@ -4224,9 +4414,9 @@ public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call getFragmentEndTimestampAsync(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFragmentEndTimestampAsync(String workspace, String teamspace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(namespace, array, endTimestamp, _callback); + okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(workspace, teamspace, array, endTimestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4354,7 +4544,8 @@ public okhttp3.Call getLastAccessedArraysAsync(final ApiCallback 0 error response - */ - public okhttp3.Call loadArraySchemaCall(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadArraySchemaCall(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4386,8 +4577,9 @@ public okhttp3.Call loadArraySchemaCall(String namespace, String array, LoadArra Object localVarPostBody = loadArraySchemaRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/schema" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/schema" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -4417,10 +4609,15 @@ public okhttp3.Call loadArraySchemaCall(String namespace, String array, LoadArra } @SuppressWarnings("rawtypes") - private okhttp3.Call loadArraySchemaValidateBeforeCall(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling loadArraySchema(Async)"); + private okhttp3.Call loadArraySchemaValidateBeforeCall(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling loadArraySchema(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling loadArraySchema(Async)"); } // verify the required parameter 'array' is set @@ -4433,14 +4630,15 @@ private okhttp3.Call loadArraySchemaValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'loadArraySchemaRequest' when calling loadArraySchema(Async)"); } - return loadArraySchemaCall(namespace, array, loadArraySchemaRequest, _callback); + return loadArraySchemaCall(workspace, teamspace, array, loadArraySchemaRequest, _callback); } /** * * request to get the array schema - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadArraySchemaRequest Load Array Schema Request (required) * @return LoadArraySchemaResponse @@ -4454,15 +4652,16 @@ private okhttp3.Call loadArraySchemaValidateBeforeCall(String namespace, String 0 error response - */ - public LoadArraySchemaResponse loadArraySchema(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { - ApiResponse localVarResp = loadArraySchemaWithHttpInfo(namespace, array, loadArraySchemaRequest); + public LoadArraySchemaResponse loadArraySchema(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { + ApiResponse localVarResp = loadArraySchemaWithHttpInfo(workspace, teamspace, array, loadArraySchemaRequest); return localVarResp.getData(); } /** * * request to get the array schema - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadArraySchemaRequest Load Array Schema Request (required) * @return ApiResponse<LoadArraySchemaResponse> @@ -4476,8 +4675,8 @@ public LoadArraySchemaResponse loadArraySchema(String namespace, String array, L 0 error response - */ - public ApiResponse loadArraySchemaWithHttpInfo(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { - okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(namespace, array, loadArraySchemaRequest, null); + public ApiResponse loadArraySchemaWithHttpInfo(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest) throws ApiException { + okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(workspace, teamspace, array, loadArraySchemaRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4485,7 +4684,8 @@ public ApiResponse loadArraySchemaWithHttpInfo(String n /** * (asynchronously) * request to get the array schema - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadArraySchemaRequest Load Array Schema Request (required) * @param _callback The callback to be executed when the API call finishes @@ -4500,16 +4700,17 @@ public ApiResponse loadArraySchemaWithHttpInfo(String n 0 error response - */ - public okhttp3.Call loadArraySchemaAsync(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadArraySchemaAsync(String workspace, String teamspace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(namespace, array, loadArraySchemaRequest, _callback); + okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(workspace, teamspace, array, loadArraySchemaRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for loadEnumerations - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @param _callback Callback for upload/download progress @@ -4524,7 +4725,7 @@ public okhttp3.Call loadArraySchemaAsync(String namespace, String array, LoadArr 0 error response - */ - public okhttp3.Call loadEnumerationsCall(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadEnumerationsCall(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4541,8 +4742,9 @@ public okhttp3.Call loadEnumerationsCall(String namespace, String array, LoadEnu Object localVarPostBody = loadEnumerationsRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/enumerations" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/enumerations" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -4572,10 +4774,15 @@ public okhttp3.Call loadEnumerationsCall(String namespace, String array, LoadEnu } @SuppressWarnings("rawtypes") - private okhttp3.Call loadEnumerationsValidateBeforeCall(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling loadEnumerations(Async)"); + private okhttp3.Call loadEnumerationsValidateBeforeCall(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling loadEnumerations(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling loadEnumerations(Async)"); } // verify the required parameter 'array' is set @@ -4588,14 +4795,15 @@ private okhttp3.Call loadEnumerationsValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'loadEnumerationsRequest' when calling loadEnumerations(Async)"); } - return loadEnumerationsCall(namespace, array, loadEnumerationsRequest, _callback); + return loadEnumerationsCall(workspace, teamspace, array, loadEnumerationsRequest, _callback); } /** * * request to get the enumerations of the arrays' attributes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @return LoadEnumerationsResponse @@ -4609,15 +4817,16 @@ private okhttp3.Call loadEnumerationsValidateBeforeCall(String namespace, String 0 error response - */ - public LoadEnumerationsResponse loadEnumerations(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { - ApiResponse localVarResp = loadEnumerationsWithHttpInfo(namespace, array, loadEnumerationsRequest); + public LoadEnumerationsResponse loadEnumerations(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { + ApiResponse localVarResp = loadEnumerationsWithHttpInfo(workspace, teamspace, array, loadEnumerationsRequest); return localVarResp.getData(); } /** * * request to get the enumerations of the arrays' attributes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @return ApiResponse<LoadEnumerationsResponse> @@ -4631,8 +4840,8 @@ public LoadEnumerationsResponse loadEnumerations(String namespace, String array, 0 error response - */ - public ApiResponse loadEnumerationsWithHttpInfo(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { - okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(namespace, array, loadEnumerationsRequest, null); + public ApiResponse loadEnumerationsWithHttpInfo(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest) throws ApiException { + okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(workspace, teamspace, array, loadEnumerationsRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4640,7 +4849,8 @@ public ApiResponse loadEnumerationsWithHttpInfo(String /** * (asynchronously) * request to get the enumerations of the arrays' attributes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param loadEnumerationsRequest Load Enumerations Request (required) * @param _callback The callback to be executed when the API call finishes @@ -4655,17 +4865,18 @@ public ApiResponse loadEnumerationsWithHttpInfo(String 0 error response - */ - public okhttp3.Call loadEnumerationsAsync(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loadEnumerationsAsync(String workspace, String teamspace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(namespace, array, loadEnumerationsRequest, _callback); + okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(workspace, teamspace, array, loadEnumerationsRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for registerArray - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param array asset id or path of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -4678,7 +4889,7 @@ public okhttp3.Call loadEnumerationsAsync(String namespace, String array, LoadEn 0 error response - */ - public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerArrayCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4695,8 +4906,9 @@ public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoU Object localVarPostBody = arrayMetadata; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/register" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/register" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -4726,10 +4938,15 @@ public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoU } @SuppressWarnings("rawtypes") - private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerArray(Async)"); + private okhttp3.Call registerArrayValidateBeforeCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling registerArray(Async)"); } // verify the required parameter 'array' is set @@ -4742,15 +4959,16 @@ private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String ar throw new ApiException("Missing the required parameter 'arrayMetadata' when calling registerArray(Async)"); } - return registerArrayCall(namespace, array, arrayMetadata, _callback); + return registerArrayCall(workspace, teamspace, array, arrayMetadata, _callback); } /** * * register an array at a specified URI registered to the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param array asset id or path of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @return ArrayInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4762,16 +4980,17 @@ private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String ar 0 error response - */ - public ArrayInfo registerArray(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - ApiResponse localVarResp = registerArrayWithHttpInfo(namespace, array, arrayMetadata); + public ArrayInfo registerArray(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + ApiResponse localVarResp = registerArrayWithHttpInfo(workspace, teamspace, array, arrayMetadata); return localVarResp.getData(); } /** * * register an array at a specified URI registered to the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param array asset id or path of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @return ApiResponse<ArrayInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4783,8 +5002,8 @@ public ArrayInfo registerArray(String namespace, String array, ArrayInfoUpdate a 0 error response - */ - public ApiResponse registerArrayWithHttpInfo(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - okhttp3.Call localVarCall = registerArrayValidateBeforeCall(namespace, array, arrayMetadata, null); + public ApiResponse registerArrayWithHttpInfo(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + okhttp3.Call localVarCall = registerArrayValidateBeforeCall(workspace, teamspace, array, arrayMetadata, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4792,8 +5011,9 @@ public ApiResponse registerArrayWithHttpInfo(String namespace, String /** * (asynchronously) * register an array at a specified URI registered to the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param array asset id or path of array that is url-encoded (required) * @param arrayMetadata metadata associated with array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -4806,16 +5026,17 @@ public ApiResponse registerArrayWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call registerArrayAsync(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerArrayAsync(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerArrayValidateBeforeCall(namespace, array, arrayMetadata, _callback); + okhttp3.Call localVarCall = registerArrayValidateBeforeCall(workspace, teamspace, array, arrayMetadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for shareArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -4830,7 +5051,7 @@ public okhttp3.Call registerArrayAsync(String namespace, String array, ArrayInfo 0 error response - */ - public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayCall(String workspace, String teamspace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4847,8 +5068,9 @@ public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing Object localVarPostBody = arraySharing; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -4878,10 +5100,15 @@ public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing } @SuppressWarnings("rawtypes") - private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareArray(Async)"); + private okhttp3.Call shareArrayValidateBeforeCall(String workspace, String teamspace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareArray(Async)"); } // verify the required parameter 'array' is set @@ -4894,14 +5121,15 @@ private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array throw new ApiException("Missing the required parameter 'arraySharing' when calling shareArray(Async)"); } - return shareArrayCall(namespace, array, arraySharing, _callback); + return shareArrayCall(workspace, teamspace, array, arraySharing, _callback); } /** * * Share an array with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4914,14 +5142,15 @@ private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array 0 error response - */ - public void shareArray(String namespace, String array, ArraySharing arraySharing) throws ApiException { - shareArrayWithHttpInfo(namespace, array, arraySharing); + public void shareArray(String workspace, String teamspace, String array, ArraySharing arraySharing) throws ApiException { + shareArrayWithHttpInfo(workspace, teamspace, array, arraySharing); } /** * * Share an array with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -4935,15 +5164,16 @@ public void shareArray(String namespace, String array, ArraySharing arraySharing 0 error response - */ - public ApiResponse shareArrayWithHttpInfo(String namespace, String array, ArraySharing arraySharing) throws ApiException { - okhttp3.Call localVarCall = shareArrayValidateBeforeCall(namespace, array, arraySharing, null); + public ApiResponse shareArrayWithHttpInfo(String workspace, String teamspace, String array, ArraySharing arraySharing) throws ApiException { + okhttp3.Call localVarCall = shareArrayValidateBeforeCall(workspace, teamspace, array, arraySharing, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share an array with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arraySharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -4958,15 +5188,16 @@ public ApiResponse shareArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call shareArrayAsync(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayAsync(String workspace, String teamspace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareArrayValidateBeforeCall(namespace, array, arraySharing, _callback); + okhttp3.Call localVarCall = shareArrayValidateBeforeCall(workspace, teamspace, array, arraySharing, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateArrayMetadata - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @param _callback Callback for upload/download progress @@ -4980,7 +5211,7 @@ public okhttp3.Call shareArrayAsync(String namespace, String array, ArraySharing 0 error response - */ - public okhttp3.Call updateArrayMetadataCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4997,8 +5228,9 @@ public okhttp3.Call updateArrayMetadataCall(String namespace, String array, Arra Object localVarPostBody = arrayMetadata; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/metadata" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -5028,10 +5260,15 @@ public okhttp3.Call updateArrayMetadataCall(String namespace, String array, Arra } @SuppressWarnings("rawtypes") - private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateArrayMetadata(Async)"); + private okhttp3.Call updateArrayMetadataValidateBeforeCall(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateArrayMetadata(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateArrayMetadata(Async)"); } // verify the required parameter 'array' is set @@ -5044,14 +5281,15 @@ private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, Str throw new ApiException("Missing the required parameter 'arrayMetadata' when calling updateArrayMetadata(Async)"); } - return updateArrayMetadataCall(namespace, array, arrayMetadata, _callback); + return updateArrayMetadataCall(workspace, teamspace, array, arrayMetadata, _callback); } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -5063,14 +5301,15 @@ private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, Str 0 error response - */ - public void updateArrayMetadata(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - updateArrayMetadataWithHttpInfo(namespace, array, arrayMetadata); + public void updateArrayMetadata(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + updateArrayMetadataWithHttpInfo(workspace, teamspace, array, arrayMetadata); } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @return ApiResponse<Void> @@ -5083,15 +5322,16 @@ public void updateArrayMetadata(String namespace, String array, ArrayInfoUpdate 0 error response - */ - public ApiResponse updateArrayMetadataWithHttpInfo(String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(namespace, array, arrayMetadata, null); + public ApiResponse updateArrayMetadataWithHttpInfo(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(workspace, teamspace, array, arrayMetadata, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadata array metadata to update (required) * @param _callback The callback to be executed when the API call finishes @@ -5105,15 +5345,16 @@ public ApiResponse updateArrayMetadataWithHttpInfo(String namespace, Strin 0 error response - */ - public okhttp3.Call updateArrayMetadataAsync(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataAsync(String workspace, String teamspace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(namespace, array, arrayMetadata, _callback); + okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(workspace, teamspace, array, arrayMetadata, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateArrayMetadataCapnp - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @param _callback Callback for upload/download progress @@ -5127,7 +5368,7 @@ public okhttp3.Call updateArrayMetadataAsync(String namespace, String array, Arr 0 error response - */ - public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataCapnpCall(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5144,8 +5385,9 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, Object localVarPostBody = arrayMetadataEntries; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/array_metadata" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/array_metadata" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -5177,10 +5419,15 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, } @SuppressWarnings("rawtypes") - private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateArrayMetadataCapnp(Async)"); + private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateArrayMetadataCapnp(Async)"); } // verify the required parameter 'array' is set @@ -5193,14 +5440,15 @@ private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace throw new ApiException("Missing the required parameter 'arrayMetadataEntries' when calling updateArrayMetadataCapnp(Async)"); } - return updateArrayMetadataCapnpCall(namespace, array, arrayMetadataEntries, _callback); + return updateArrayMetadataCapnpCall(workspace, teamspace, array, arrayMetadataEntries, _callback); } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -5212,14 +5460,15 @@ private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace 0 error response - */ - public void updateArrayMetadataCapnp(String namespace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { - updateArrayMetadataCapnpWithHttpInfo(namespace, array, arrayMetadataEntries); + public void updateArrayMetadataCapnp(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { + updateArrayMetadataCapnpWithHttpInfo(workspace, teamspace, array, arrayMetadataEntries); } /** * * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @return ApiResponse<Void> @@ -5232,15 +5481,16 @@ public void updateArrayMetadataCapnp(String namespace, String array, ArrayMetada 0 error response - */ - public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String namespace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(namespace, array, arrayMetadataEntries, null); + public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { + okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, arrayMetadataEntries, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update metadata on an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param arrayMetadataEntries List of metadata entries (required) * @param _callback The callback to be executed when the API call finishes @@ -5254,15 +5504,16 @@ public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call updateArrayMetadataCapnpAsync(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateArrayMetadataCapnpAsync(String workspace, String teamspace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(namespace, array, arrayMetadataEntries, _callback); + okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(workspace, teamspace, array, arrayMetadataEntries, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for vacuumArray - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @param _callback Callback for upload/download progress @@ -5276,7 +5527,7 @@ public okhttp3.Call updateArrayMetadataCapnpAsync(String namespace, String array 0 error response - */ - public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call vacuumArrayCall(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5293,8 +5544,9 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumR Object localVarPostBody = vaccumRequest; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/vacuum" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/vacuum" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -5324,10 +5576,15 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumR } @SuppressWarnings("rawtypes") - private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling vacuumArray(Async)"); + private okhttp3.Call vacuumArrayValidateBeforeCall(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling vacuumArray(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling vacuumArray(Async)"); } // verify the required parameter 'array' is set @@ -5340,14 +5597,15 @@ private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String arra throw new ApiException("Missing the required parameter 'vaccumRequest' when calling vacuumArray(Async)"); } - return vacuumArrayCall(namespace, array, vaccumRequest, _callback); + return vacuumArrayCall(workspace, teamspace, array, vaccumRequest, _callback); } /** * * vacuum an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -5359,14 +5617,15 @@ private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String arra 0 error response - */ - public void vacuumArray(String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { - vacuumArrayWithHttpInfo(namespace, array, vaccumRequest); + public void vacuumArray(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + vacuumArrayWithHttpInfo(workspace, teamspace, array, vaccumRequest); } /** * * vacuum an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @return ApiResponse<Void> @@ -5379,15 +5638,16 @@ public void vacuumArray(String namespace, String array, ArrayVacuumRequest vaccu 0 error response - */ - public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { - okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, null); + public ApiResponse vacuumArrayWithHttpInfo(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(workspace, teamspace, array, vaccumRequest, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * vacuum an array at a specified URI - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param vaccumRequest Vaccum Request (required) * @param _callback The callback to be executed when the API call finishes @@ -5401,9 +5661,9 @@ public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, 0 error response - */ - public okhttp3.Call vacuumArrayAsync(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call vacuumArrayAsync(String workspace, String teamspace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, _callback); + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(workspace, teamspace, array, vaccumRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java index ee3ff5a..c1f2f2d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java @@ -28,6 +28,7 @@ import io.tiledb.cloud.rest_api.model.AssetListResponse; +import io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest; import io.tiledb.cloud.rest_api.model.Error; import java.lang.reflect.Type; @@ -73,9 +74,157 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } + /** + * Build call for changeAssetCredentials + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeAssetCredentialsCall(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = changeCredentialsRequest; + + // create path and map variables + String localVarPath = "/assets/{workspace}/{teamspace}/change_credentials" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call changeAssetCredentialsValidateBeforeCall(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling changeAssetCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling changeAssetCredentials(Async)"); + } + + // verify the required parameter 'changeCredentialsRequest' is set + if (changeCredentialsRequest == null) { + throw new ApiException("Missing the required parameter 'changeCredentialsRequest' when calling changeAssetCredentials(Async)"); + } + + return changeAssetCredentialsCall(workspace, teamspace, changeCredentialsRequest, _callback); + + } + + /** + * + * Changes the access credentials to the given assets + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public void changeAssetCredentials(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest) throws ApiException { + changeAssetCredentialsWithHttpInfo(workspace, teamspace, changeCredentialsRequest); + } + + /** + * + * Changes the access credentials to the given assets + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse changeAssetCredentialsWithHttpInfo(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest) throws ApiException { + okhttp3.Call localVarCall = changeAssetCredentialsValidateBeforeCall(workspace, teamspace, changeCredentialsRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Changes the access credentials to the given assets + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeAssetCredentialsAsync(String workspace, String teamspace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = changeAssetCredentialsValidateBeforeCall(workspace, teamspace, changeCredentialsRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for listAssets - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -95,7 +244,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call listAssetsCall(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAssetsCall(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -112,8 +261,9 @@ public okhttp3.Call listAssetsCall(String namespace, String assetType, String ow Object localVarPostBody = null; // create path and map variables - String localVarPath = "/assets/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/assets/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -173,20 +323,26 @@ public okhttp3.Call listAssetsCall(String namespace, String assetType, String ow } @SuppressWarnings("rawtypes") - private okhttp3.Call listAssetsValidateBeforeCall(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listAssets(Async)"); + private okhttp3.Call listAssetsValidateBeforeCall(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling listAssets(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling listAssets(Async)"); } - return listAssetsCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + return listAssetsCall(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); } /** * * List assets in a namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -205,15 +361,16 @@ private okhttp3.Call listAssetsValidateBeforeCall(String namespace, String asset 0 error response - */ - public AssetListResponse listAssets(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { - ApiResponse localVarResp = listAssetsWithHttpInfo(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + public AssetListResponse listAssets(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { + ApiResponse localVarResp = listAssetsWithHttpInfo(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); return localVarResp.getData(); } /** * * List assets in a namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -232,8 +389,8 @@ public AssetListResponse listAssets(String namespace, String assetType, String o 0 error response - */ - public ApiResponse listAssetsWithHttpInfo(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { - okhttp3.Call localVarCall = listAssetsValidateBeforeCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, null); + public ApiResponse listAssetsWithHttpInfo(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand) throws ApiException { + okhttp3.Call localVarCall = listAssetsValidateBeforeCall(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -241,7 +398,8 @@ public ApiResponse listAssetsWithHttpInfo(String namespace, S /** * (asynchronously) * List assets in a namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param assetType asset_type to filter to (optional) * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) * @param depth depth of assets to be returned (optional) @@ -261,9 +419,9 @@ public ApiResponse listAssetsWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call listAssetsAsync(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAssetsAsync(String workspace, String teamspace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAssetsValidateBeforeCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + okhttp3.Call localVarCall = listAssetsValidateBeforeCall(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java index 0bddb96..00de0eb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java @@ -82,7 +82,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for addArrayFavorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -95,7 +96,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addArrayFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -112,8 +113,9 @@ public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -142,10 +144,15 @@ public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addArrayFavorite(Async)"); + private okhttp3.Call addArrayFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addArrayFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addArrayFavorite(Async)"); } // verify the required parameter 'name' is set @@ -153,14 +160,15 @@ private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'name' when calling addArrayFavorite(Async)"); } - return addArrayFavoriteCall(namespace, name, _callback); + return addArrayFavoriteCall(workspace, teamspace, name, _callback); } /** * * Add a new array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -171,14 +179,15 @@ private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String 0 error response - */ - public void addArrayFavorite(String namespace, String name) throws ApiException { - addArrayFavoriteWithHttpInfo(namespace, name); + public void addArrayFavorite(String workspace, String teamspace, String name) throws ApiException { + addArrayFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Add a new array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -190,15 +199,16 @@ public void addArrayFavorite(String namespace, String name) throws ApiException 0 error response - */ - public ApiResponse addArrayFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addArrayFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -211,15 +221,16 @@ public ApiResponse addArrayFavoriteWithHttpInfo(String namespace, String n 0 error response - */ - public okhttp3.Call addArrayFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addArrayFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addMLModelFavorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -232,7 +243,7 @@ public okhttp3.Call addArrayFavoriteAsync(String namespace, String name, final A 0 error response - */ - public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addMLModelFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -249,8 +260,9 @@ public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/ml_models/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -279,10 +291,15 @@ public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final } @SuppressWarnings("rawtypes") - private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addMLModelFavorite(Async)"); + private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addMLModelFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addMLModelFavorite(Async)"); } // verify the required parameter 'name' is set @@ -290,14 +307,15 @@ private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'name' when calling addMLModelFavorite(Async)"); } - return addMLModelFavoriteCall(namespace, name, _callback); + return addMLModelFavoriteCall(workspace, teamspace, name, _callback); } /** * * Add a new ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -308,14 +326,15 @@ private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, Stri 0 error response - */ - public void addMLModelFavorite(String namespace, String name) throws ApiException { - addMLModelFavoriteWithHttpInfo(namespace, name); + public void addMLModelFavorite(String workspace, String teamspace, String name) throws ApiException { + addMLModelFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Add a new ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -327,15 +346,16 @@ public void addMLModelFavorite(String namespace, String name) throws ApiExceptio 0 error response - */ - public ApiResponse addMLModelFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addMLModelFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -348,15 +368,16 @@ public ApiResponse addMLModelFavoriteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call addMLModelFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addMLModelFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addNotebookFavorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -369,7 +390,7 @@ public okhttp3.Call addMLModelFavoriteAsync(String namespace, String name, final 0 error response - */ - public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addNotebookFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -386,8 +407,9 @@ public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -416,10 +438,15 @@ public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final } @SuppressWarnings("rawtypes") - private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addNotebookFavorite(Async)"); + private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addNotebookFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addNotebookFavorite(Async)"); } // verify the required parameter 'name' is set @@ -427,14 +454,15 @@ private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, Str throw new ApiException("Missing the required parameter 'name' when calling addNotebookFavorite(Async)"); } - return addNotebookFavoriteCall(namespace, name, _callback); + return addNotebookFavoriteCall(workspace, teamspace, name, _callback); } /** * * Add a new notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -445,14 +473,15 @@ private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, Str 0 error response - */ - public void addNotebookFavorite(String namespace, String name) throws ApiException { - addNotebookFavoriteWithHttpInfo(namespace, name); + public void addNotebookFavorite(String workspace, String teamspace, String name) throws ApiException { + addNotebookFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Add a new notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -464,15 +493,16 @@ public void addNotebookFavorite(String namespace, String name) throws ApiExcepti 0 error response - */ - public ApiResponse addNotebookFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addNotebookFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -485,15 +515,15 @@ public ApiResponse addNotebookFavoriteWithHttpInfo(String namespace, Strin 0 error response - */ - public okhttp3.Call addNotebookFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addNotebookFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addUDFFavorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -506,7 +536,7 @@ public okhttp3.Call addNotebookFavoriteAsync(String namespace, String name, fina 0 error response - */ - public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addUDFFavoriteCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -523,8 +553,8 @@ public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiC Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udfs/favorites/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -553,10 +583,10 @@ public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addUDFFavorite(Async)"); + private okhttp3.Call addUDFFavoriteValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addUDFFavorite(Async)"); } // verify the required parameter 'name' is set @@ -564,14 +594,14 @@ private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String n throw new ApiException("Missing the required parameter 'name' when calling addUDFFavorite(Async)"); } - return addUDFFavoriteCall(namespace, name, _callback); + return addUDFFavoriteCall(workspace, name, _callback); } /** * * Add a new UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -582,14 +612,14 @@ private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String n 0 error response - */ - public void addUDFFavorite(String namespace, String name) throws ApiException { - addUDFFavoriteWithHttpInfo(namespace, name); + public void addUDFFavorite(String workspace, String name) throws ApiException { + addUDFFavoriteWithHttpInfo(workspace, name); } /** * * Add a new UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -601,15 +631,15 @@ public void addUDFFavorite(String namespace, String name) throws ApiException { 0 error response - */ - public ApiResponse addUDFFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse addUDFFavoriteWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add a new UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -622,15 +652,16 @@ public ApiResponse addUDFFavoriteWithHttpInfo(String namespace, String nam 0 error response - */ - public okhttp3.Call addUDFFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addUDFFavoriteAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteArrayFavorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -643,7 +674,7 @@ public okhttp3.Call addUDFFavoriteAsync(String namespace, String name, final Api 0 error response - */ - public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -660,8 +691,9 @@ public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -690,10 +722,15 @@ public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteArrayFavorite(Async)"); + private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteArrayFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteArrayFavorite(Async)"); } // verify the required parameter 'name' is set @@ -701,14 +738,15 @@ private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, Str throw new ApiException("Missing the required parameter 'name' when calling deleteArrayFavorite(Async)"); } - return deleteArrayFavoriteCall(namespace, name, _callback); + return deleteArrayFavoriteCall(workspace, teamspace, name, _callback); } /** * * Delete specific array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -719,14 +757,15 @@ private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, Str 0 error response - */ - public void deleteArrayFavorite(String namespace, String name) throws ApiException { - deleteArrayFavoriteWithHttpInfo(namespace, name); + public void deleteArrayFavorite(String workspace, String teamspace, String name) throws ApiException { + deleteArrayFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Delete specific array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -738,15 +777,16 @@ public void deleteArrayFavorite(String namespace, String name) throws ApiExcepti 0 error response - */ - public ApiResponse deleteArrayFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteArrayFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific array favorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -759,15 +799,16 @@ public ApiResponse deleteArrayFavoriteWithHttpInfo(String namespace, Strin 0 error response - */ - public okhttp3.Call deleteArrayFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteArrayFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteMLModelFavorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -780,7 +821,7 @@ public okhttp3.Call deleteArrayFavoriteAsync(String namespace, String name, fina 0 error response - */ - public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMLModelFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -797,8 +838,9 @@ public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, fin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/ml_models/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -827,10 +869,15 @@ public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteMLModelFavorite(Async)"); + private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteMLModelFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteMLModelFavorite(Async)"); } // verify the required parameter 'name' is set @@ -838,14 +885,15 @@ private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, S throw new ApiException("Missing the required parameter 'name' when calling deleteMLModelFavorite(Async)"); } - return deleteMLModelFavoriteCall(namespace, name, _callback); + return deleteMLModelFavoriteCall(workspace, teamspace, name, _callback); } /** * * Delete specific ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -856,14 +904,15 @@ private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, S 0 error response - */ - public void deleteMLModelFavorite(String namespace, String name) throws ApiException { - deleteMLModelFavoriteWithHttpInfo(namespace, name); + public void deleteMLModelFavorite(String workspace, String teamspace, String name) throws ApiException { + deleteMLModelFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Delete specific ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -875,15 +924,16 @@ public void deleteMLModelFavorite(String namespace, String name) throws ApiExcep 0 error response - */ - public ApiResponse deleteMLModelFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteMLModelFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific ML model favorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -896,15 +946,16 @@ public ApiResponse deleteMLModelFavoriteWithHttpInfo(String namespace, Str 0 error response - */ - public okhttp3.Call deleteMLModelFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMLModelFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteNotebookFavorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -917,7 +968,7 @@ public okhttp3.Call deleteMLModelFavoriteAsync(String namespace, String name, fi 0 error response - */ - public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNotebookFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -934,8 +985,9 @@ public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, fi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -964,10 +1016,15 @@ public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNotebookFavorite(Async)"); + private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteNotebookFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteNotebookFavorite(Async)"); } // verify the required parameter 'name' is set @@ -975,14 +1032,15 @@ private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'name' when calling deleteNotebookFavorite(Async)"); } - return deleteNotebookFavoriteCall(namespace, name, _callback); + return deleteNotebookFavoriteCall(workspace, teamspace, name, _callback); } /** * * Delete specific notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -993,14 +1051,15 @@ private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, 0 error response - */ - public void deleteNotebookFavorite(String namespace, String name) throws ApiException { - deleteNotebookFavoriteWithHttpInfo(namespace, name); + public void deleteNotebookFavorite(String workspace, String teamspace, String name) throws ApiException { + deleteNotebookFavoriteWithHttpInfo(workspace, teamspace, name); } /** * * Delete specific notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1012,15 +1071,16 @@ public void deleteNotebookFavorite(String namespace, String name) throws ApiExce 0 error response - */ - public ApiResponse deleteNotebookFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteNotebookFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific notebook favorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1033,15 +1093,15 @@ public ApiResponse deleteNotebookFavoriteWithHttpInfo(String namespace, St 0 error response - */ - public okhttp3.Call deleteNotebookFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNotebookFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteUDFFavorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1054,7 +1114,7 @@ public okhttp3.Call deleteNotebookFavoriteAsync(String namespace, String name, f 0 error response - */ - public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFFavoriteCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1071,8 +1131,8 @@ public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final A Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udfs/favorites/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1101,10 +1161,10 @@ public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteUDFFavorite(Async)"); + private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteUDFFavorite(Async)"); } // verify the required parameter 'name' is set @@ -1112,14 +1172,14 @@ private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, Strin throw new ApiException("Missing the required parameter 'name' when calling deleteUDFFavorite(Async)"); } - return deleteUDFFavoriteCall(namespace, name, _callback); + return deleteUDFFavoriteCall(workspace, name, _callback); } /** * * Delete specific UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1130,14 +1190,14 @@ private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, Strin 0 error response - */ - public void deleteUDFFavorite(String namespace, String name) throws ApiException { - deleteUDFFavoriteWithHttpInfo(namespace, name); + public void deleteUDFFavorite(String workspace, String name) throws ApiException { + deleteUDFFavoriteWithHttpInfo(workspace, name); } /** * * Delete specific UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1149,15 +1209,15 @@ public void deleteUDFFavorite(String namespace, String name) throws ApiException 0 error response - */ - public ApiResponse deleteUDFFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse deleteUDFFavoriteWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete specific UDF favorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1170,15 +1230,16 @@ public ApiResponse deleteUDFFavoriteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call deleteUDFFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFFavoriteAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getArrayFavorite - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1191,7 +1252,7 @@ public okhttp3.Call deleteUDFFavoriteAsync(String namespace, String name, final 0 error response - */ - public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1208,8 +1269,9 @@ public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1238,10 +1300,15 @@ public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getArrayFavorite(Async)"); + private okhttp3.Call getArrayFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getArrayFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getArrayFavorite(Async)"); } // verify the required parameter 'name' is set @@ -1249,14 +1316,15 @@ private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'name' when calling getArrayFavorite(Async)"); } - return getArrayFavoriteCall(namespace, name, _callback); + return getArrayFavoriteCall(workspace, teamspace, name, _callback); } /** * * Fetch array favorite of a specific array - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ArrayFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1268,15 +1336,16 @@ private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String 0 error response - */ - public ArrayFavorite getArrayFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getArrayFavoriteWithHttpInfo(namespace, name); + public ArrayFavorite getArrayFavorite(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = getArrayFavoriteWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Fetch array favorite of a specific array - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @return ApiResponse<ArrayFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1288,8 +1357,8 @@ public ArrayFavorite getArrayFavorite(String namespace, String name) throws ApiE 0 error response - */ - public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getArrayFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1297,7 +1366,8 @@ public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, /** * (asynchronously) * Fetch array favorite of a specific array - * @param namespace The namespace of the array (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the array (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1310,16 +1380,17 @@ public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call getArrayFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArrayFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getMLModelFavorite - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1332,7 +1403,7 @@ public okhttp3.Call getArrayFavoriteAsync(String namespace, String name, final A 0 error response - */ - public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMLModelFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1349,8 +1420,9 @@ public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/ml_models/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1379,10 +1451,15 @@ public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final } @SuppressWarnings("rawtypes") - private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getMLModelFavorite(Async)"); + private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getMLModelFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getMLModelFavorite(Async)"); } // verify the required parameter 'name' is set @@ -1390,14 +1467,15 @@ private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'name' when calling getMLModelFavorite(Async)"); } - return getMLModelFavoriteCall(namespace, name, _callback); + return getMLModelFavoriteCall(workspace, teamspace, name, _callback); } /** * * Fetch ML model favorite of a specific ML model - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return MLModelFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1409,15 +1487,16 @@ private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, Stri 0 error response - */ - public MLModelFavorite getMLModelFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getMLModelFavoriteWithHttpInfo(namespace, name); + public MLModelFavorite getMLModelFavorite(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = getMLModelFavoriteWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Fetch ML model favorite of a specific ML model - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @return ApiResponse<MLModelFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1429,8 +1508,8 @@ public MLModelFavorite getMLModelFavorite(String namespace, String name) throws 0 error response - */ - public ApiResponse getMLModelFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getMLModelFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1438,7 +1517,8 @@ public ApiResponse getMLModelFavoriteWithHttpInfo(String namesp /** * (asynchronously) * Fetch ML model favorite of a specific ML model - * @param namespace The namespace of the ML model (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the ML model (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1451,16 +1531,17 @@ public ApiResponse getMLModelFavoriteWithHttpInfo(String namesp 0 error response - */ - public okhttp3.Call getMLModelFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMLModelFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getNotebookFavorite - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1473,7 +1554,7 @@ public okhttp3.Call getMLModelFavoriteAsync(String namespace, String name, final 0 error response - */ - public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookFavoriteCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1490,8 +1571,9 @@ public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/favorites/{workspace}/{teamspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1520,10 +1602,15 @@ public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final } @SuppressWarnings("rawtypes") - private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getNotebookFavorite(Async)"); + private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getNotebookFavorite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getNotebookFavorite(Async)"); } // verify the required parameter 'name' is set @@ -1531,14 +1618,15 @@ private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, Str throw new ApiException("Missing the required parameter 'name' when calling getNotebookFavorite(Async)"); } - return getNotebookFavoriteCall(namespace, name, _callback); + return getNotebookFavoriteCall(workspace, teamspace, name, _callback); } /** * * Fetch notebook favorite of a specific notebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return NotebookFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1550,15 +1638,16 @@ private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, Str 0 error response - */ - public NotebookFavorite getNotebookFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getNotebookFavoriteWithHttpInfo(namespace, name); + public NotebookFavorite getNotebookFavorite(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = getNotebookFavoriteWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Fetch notebook favorite of a specific notebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @return ApiResponse<NotebookFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1570,8 +1659,8 @@ public NotebookFavorite getNotebookFavorite(String namespace, String name) throw 0 error response - */ - public ApiResponse getNotebookFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getNotebookFavoriteWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1579,7 +1668,8 @@ public ApiResponse getNotebookFavoriteWithHttpInfo(String name /** * (asynchronously) * Fetch notebook favorite of a specific notebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param name The name of the notebook (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1592,16 +1682,16 @@ public ApiResponse getNotebookFavoriteWithHttpInfo(String name 0 error response - */ - public okhttp3.Call getNotebookFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookFavoriteAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUDFFavorite - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1614,7 +1704,7 @@ public okhttp3.Call getNotebookFavoriteAsync(String namespace, String name, fina 0 error response - */ - public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFFavoriteCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1631,8 +1721,8 @@ public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiC Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udfs/favorites/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1661,10 +1751,10 @@ public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiC } @SuppressWarnings("rawtypes") - private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getUDFFavorite(Async)"); + private okhttp3.Call getUDFFavoriteValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getUDFFavorite(Async)"); } // verify the required parameter 'name' is set @@ -1672,14 +1762,14 @@ private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String n throw new ApiException("Missing the required parameter 'name' when calling getUDFFavorite(Async)"); } - return getUDFFavoriteCall(namespace, name, _callback); + return getUDFFavoriteCall(workspace, name, _callback); } /** * * Fetch UDF favorite of a specific UDF - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return UDFFavorite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1691,15 +1781,15 @@ private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String n 0 error response - */ - public UDFFavorite getUDFFavorite(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getUDFFavoriteWithHttpInfo(namespace, name); + public UDFFavorite getUDFFavorite(String workspace, String name) throws ApiException { + ApiResponse localVarResp = getUDFFavoriteWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Fetch UDF favorite of a specific UDF - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @return ApiResponse<UDFFavorite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1711,8 +1801,8 @@ public UDFFavorite getUDFFavorite(String namespace, String name) throws ApiExcep 0 error response - */ - public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(namespace, name, null); + public ApiResponse getUDFFavoriteWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1720,7 +1810,7 @@ public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, Str /** * (asynchronously) * Fetch UDF favorite of a specific UDF - * @param namespace The namespace of the UDF (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the UDF (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1733,9 +1823,9 @@ public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, Str 0 error response - */ - public okhttp3.Call getUDFFavoriteAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFFavoriteAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java index de5e007..ced13cd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java @@ -80,7 +80,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for handleCreateFile - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param _callback Callback for upload/download progress @@ -94,7 +95,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCreateFileCall(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +112,9 @@ public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate Object localVarPostBody = fileCreate; // create path and map variables - String localVarPath = "/files/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/files/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -145,10 +147,15 @@ public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate } @SuppressWarnings("rawtypes") - private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleCreateFile(Async)"); + private okhttp3.Call handleCreateFileValidateBeforeCall(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleCreateFile(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleCreateFile(Async)"); } // verify the required parameter 'fileCreate' is set @@ -156,14 +163,15 @@ private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCr throw new ApiException("Missing the required parameter 'fileCreate' when calling handleCreateFile(Async)"); } - return handleCreateFileCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + return handleCreateFileCall(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); } /** * * Create a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @return FileCreated @@ -176,15 +184,16 @@ private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCr 0 error response - */ - public FileCreated handleCreateFile(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - ApiResponse localVarResp = handleCreateFileWithHttpInfo(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + public FileCreated handleCreateFile(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + ApiResponse localVarResp = handleCreateFileWithHttpInfo(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); return localVarResp.getData(); } /** * * Create a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @return ApiResponse<FileCreated> @@ -197,8 +206,8 @@ public FileCreated handleCreateFile(String namespace, FileCreate fileCreate, Str 0 error response - */ - public ApiResponse handleCreateFileWithHttpInfo(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { - okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); + public ApiResponse handleCreateFileWithHttpInfo(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) throws ApiException { + okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -206,7 +215,8 @@ public ApiResponse handleCreateFileWithHttpInfo(String namespace, F /** * (asynchronously) * Create a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param fileCreate Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param _callback The callback to be executed when the API call finishes @@ -220,16 +230,17 @@ public ApiResponse handleCreateFileWithHttpInfo(String namespace, F 0 error response - */ - public okhttp3.Call handleCreateFileAsync(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCreateFileAsync(String workspace, String teamspace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleExportFile - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @param _callback Callback for upload/download progress @@ -243,7 +254,7 @@ public okhttp3.Call handleCreateFileAsync(String namespace, FileCreate fileCreat 0 error response - */ - public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleExportFileCall(String workspace, String teamspace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -260,8 +271,9 @@ public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExp Object localVarPostBody = fileExport; // create path and map variables - String localVarPath = "/files/{namespace}/{file}/export" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/files/{workspace}/{teamspace}/{file}/export" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "file" + "}", localVarApiClient.escapeString(_file.toString())); List localVarQueryParams = new ArrayList(); @@ -291,10 +303,15 @@ public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExp } @SuppressWarnings("rawtypes") - private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleExportFile(Async)"); + private okhttp3.Call handleExportFileValidateBeforeCall(String workspace, String teamspace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleExportFile(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleExportFile(Async)"); } // verify the required parameter '_file' is set @@ -307,14 +324,15 @@ private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'fileExport' when calling handleExportFile(Async)"); } - return handleExportFileCall(namespace, _file, fileExport, _callback); + return handleExportFileCall(workspace, teamspace, _file, fileExport, _callback); } /** * * Export a TileDB File back to its original file format - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @return FileExported @@ -327,15 +345,16 @@ private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String 0 error response - */ - public FileExported handleExportFile(String namespace, String _file, FileExport fileExport) throws ApiException { - ApiResponse localVarResp = handleExportFileWithHttpInfo(namespace, _file, fileExport); + public FileExported handleExportFile(String workspace, String teamspace, String _file, FileExport fileExport) throws ApiException { + ApiResponse localVarResp = handleExportFileWithHttpInfo(workspace, teamspace, _file, fileExport); return localVarResp.getData(); } /** * * Export a TileDB File back to its original file format - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @return ApiResponse<FileExported> @@ -348,8 +367,8 @@ public FileExported handleExportFile(String namespace, String _file, FileExport 0 error response - */ - public ApiResponse handleExportFileWithHttpInfo(String namespace, String _file, FileExport fileExport) throws ApiException { - okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(namespace, _file, fileExport, null); + public ApiResponse handleExportFileWithHttpInfo(String workspace, String teamspace, String _file, FileExport fileExport) throws ApiException { + okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(workspace, teamspace, _file, fileExport, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -357,7 +376,8 @@ public ApiResponse handleExportFileWithHttpInfo(String namespace, /** * (asynchronously) * Export a TileDB File back to its original file format - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _file The file identifier (required) * @param fileExport Export configuration information (required) * @param _callback The callback to be executed when the API call finishes @@ -371,16 +391,17 @@ public ApiResponse handleExportFileWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call handleExportFileAsync(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleExportFileAsync(String workspace, String teamspace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(namespace, _file, fileExport, _callback); + okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(workspace, teamspace, _file, fileExport, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleUploadFile - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -396,7 +417,7 @@ public okhttp3.Call handleExportFileAsync(String namespace, String _file, FileEx 0 error response - */ - public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadFileCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -413,8 +434,9 @@ public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/files/{namespace}/upload" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/files/{workspace}/{teamspace}/upload" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -459,10 +481,15 @@ public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadFile(Async)"); + private okhttp3.Call handleUploadFileValidateBeforeCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleUploadFile(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleUploadFile(Async)"); } // verify the required parameter 'inputFile' is set @@ -470,14 +497,15 @@ private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File i throw new ApiException("Missing the required parameter 'inputFile' when calling handleUploadFile(Async)"); } - return handleUploadFileCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + return handleUploadFileCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); } /** * * Upload a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -492,15 +520,16 @@ private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File i 0 error response - */ - public FileUploaded handleUploadFile(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - ApiResponse localVarResp = handleUploadFileWithHttpInfo(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + public FileUploaded handleUploadFile(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + ApiResponse localVarResp = handleUploadFileWithHttpInfo(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); return localVarResp.getData(); } /** * * Upload a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -515,8 +544,8 @@ public FileUploaded handleUploadFile(String namespace, File inputFile, String X_ 0 error response - */ - public ApiResponse handleUploadFileWithHttpInfo(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); + public ApiResponse handleUploadFileWithHttpInfo(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -524,7 +553,8 @@ public ApiResponse handleUploadFileWithHttpInfo(String namespace, /** * (asynchronously) * Upload a tiledb file at the specified location - * @param namespace The namespace of the file (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the file to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -540,9 +570,9 @@ public ApiResponse handleUploadFileWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call handleUploadFileAsync(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadFileAsync(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java index c233bd1..d54b27c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java @@ -86,7 +86,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for changeGroupContents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @param _callback Callback for upload/download progress @@ -100,7 +101,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + public okhttp3.Call changeGroupContentsCall(String workspace, String teamspace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -117,8 +118,9 @@ public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupN Object localVarPostBody = groupChanges; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/contents" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/contents" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -148,10 +150,15 @@ public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupN } @SuppressWarnings("rawtypes") - private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling changeGroupContents(Async)"); + private okhttp3.Call changeGroupContentsValidateBeforeCall(String workspace, String teamspace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling changeGroupContents(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling changeGroupContents(Async)"); } // verify the required parameter 'groupName' is set @@ -159,14 +166,15 @@ private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace throw new ApiException("Missing the required parameter 'groupName' when calling changeGroupContents(Async)"); } - return changeGroupContentsCall(groupNamespace, groupName, groupChanges, _callback); + return changeGroupContentsCall(workspace, teamspace, groupName, groupChanges, _callback); } /** * * Changes the contents of the group by adding/removing members. - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -178,14 +186,15 @@ private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace 0 error response - */ - public void changeGroupContents(String groupNamespace, String groupName, GroupChanges groupChanges) throws ApiException { - changeGroupContentsWithHttpInfo(groupNamespace, groupName, groupChanges); + public void changeGroupContents(String workspace, String teamspace, String groupName, GroupChanges groupChanges) throws ApiException { + changeGroupContentsWithHttpInfo(workspace, teamspace, groupName, groupChanges); } /** * * Changes the contents of the group by adding/removing members. - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @return ApiResponse<Void> @@ -198,15 +207,16 @@ public void changeGroupContents(String groupNamespace, String groupName, GroupCh 0 error response - */ - public ApiResponse changeGroupContentsWithHttpInfo(String groupNamespace, String groupName, GroupChanges groupChanges) throws ApiException { - okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(groupNamespace, groupName, groupChanges, null); + public ApiResponse changeGroupContentsWithHttpInfo(String workspace, String teamspace, String groupName, GroupChanges groupChanges) throws ApiException { + okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(workspace, teamspace, groupName, groupChanges, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Changes the contents of the group by adding/removing members. - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupChanges (optional) * @param _callback The callback to be executed when the API call finishes @@ -220,15 +230,16 @@ public ApiResponse changeGroupContentsWithHttpInfo(String groupNamespace, 0 error response - */ - public okhttp3.Call changeGroupContentsAsync(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + public okhttp3.Call changeGroupContentsAsync(String workspace, String teamspace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(groupNamespace, groupName, groupChanges, _callback); + okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(workspace, teamspace, groupName, groupChanges, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createGroup - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -241,7 +252,7 @@ public okhttp3.Call changeGroupContentsAsync(String groupNamespace, String group 0 error response - */ - public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createGroupCall(String workspace, String teamspace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -258,8 +269,9 @@ public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, f Object localVarPostBody = groupCreate; // create path and map variables - String localVarPath = "/groups/{namespace}/create" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/groups/{workspace}/{teamspace}/create" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -288,20 +300,26 @@ public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, f } @SuppressWarnings("rawtypes") - private okhttp3.Call createGroupValidateBeforeCall(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createGroup(Async)"); + private okhttp3.Call createGroupValidateBeforeCall(String workspace, String teamspace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling createGroup(Async)"); } - return createGroupCall(namespace, groupCreate, _callback); + return createGroupCall(workspace, teamspace, groupCreate, _callback); } /** * * Creates a new group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -312,14 +330,15 @@ private okhttp3.Call createGroupValidateBeforeCall(String namespace, GroupCreate 0 error response - */ - public void createGroup(String namespace, GroupCreate groupCreate) throws ApiException { - createGroupWithHttpInfo(namespace, groupCreate); + public void createGroup(String workspace, String teamspace, GroupCreate groupCreate) throws ApiException { + createGroupWithHttpInfo(workspace, teamspace, groupCreate); } /** * * Creates a new group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -331,15 +350,16 @@ public void createGroup(String namespace, GroupCreate groupCreate) throws ApiExc 0 error response - */ - public ApiResponse createGroupWithHttpInfo(String namespace, GroupCreate groupCreate) throws ApiException { - okhttp3.Call localVarCall = createGroupValidateBeforeCall(namespace, groupCreate, null); + public ApiResponse createGroupWithHttpInfo(String workspace, String teamspace, GroupCreate groupCreate) throws ApiException { + okhttp3.Call localVarCall = createGroupValidateBeforeCall(workspace, teamspace, groupCreate, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Creates a new group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupCreate (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -352,15 +372,16 @@ public ApiResponse createGroupWithHttpInfo(String namespace, GroupCreate g 0 error response - */ - public okhttp3.Call createGroupAsync(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createGroupAsync(String workspace, String teamspace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createGroupValidateBeforeCall(namespace, groupCreate, _callback); + okhttp3.Call localVarCall = createGroupValidateBeforeCall(workspace, teamspace, groupCreate, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -373,7 +394,7 @@ public okhttp3.Call createGroupAsync(String namespace, GroupCreate groupCreate, 0 error response - */ - public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteGroupCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -390,8 +411,9 @@ public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, fin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -420,10 +442,15 @@ public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling deleteGroup(Async)"); + private okhttp3.Call deleteGroupValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteGroup(Async)"); } // verify the required parameter 'groupName' is set @@ -431,14 +458,15 @@ private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String throw new ApiException("Missing the required parameter 'groupName' when calling deleteGroup(Async)"); } - return deleteGroupCall(groupNamespace, groupName, _callback); + return deleteGroupCall(workspace, teamspace, groupName, _callback); } /** * * Deletes the group. The assets are not deleted nor are not relocated to any other group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -449,14 +477,15 @@ private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String 0 error response - */ - public void deleteGroup(String groupNamespace, String groupName) throws ApiException { - deleteGroupWithHttpInfo(groupNamespace, groupName); + public void deleteGroup(String workspace, String teamspace, String groupName) throws ApiException { + deleteGroupWithHttpInfo(workspace, teamspace, groupName); } /** * * Deletes the group. The assets are not deleted nor are not relocated to any other group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -468,15 +497,16 @@ public void deleteGroup(String groupNamespace, String groupName) throws ApiExcep 0 error response - */ - public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse deleteGroupWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(workspace, teamspace, groupName, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Deletes the group. The assets are not deleted nor are not relocated to any other group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -489,15 +519,16 @@ public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String g 0 error response - */ - public okhttp3.Call deleteGroupAsync(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteGroupAsync(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(workspace, teamspace, groupName, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -510,7 +541,7 @@ public okhttp3.Call deleteGroupAsync(String groupNamespace, String groupName, fi 0 error response - */ - public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -527,8 +558,9 @@ public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -557,10 +589,15 @@ public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroup(Async)"); + private okhttp3.Call getGroupValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroup(Async)"); } // verify the required parameter 'groupName' is set @@ -568,14 +605,15 @@ private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String gr throw new ApiException("Missing the required parameter 'groupName' when calling getGroup(Async)"); } - return getGroupCall(groupNamespace, groupName, _callback); + return getGroupCall(workspace, teamspace, groupName, _callback); } /** * * Returns the the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return GroupInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -587,15 +625,16 @@ private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String gr 0 error response - */ - public GroupInfo getGroup(String groupNamespace, String groupName) throws ApiException { - ApiResponse localVarResp = getGroupWithHttpInfo(groupNamespace, groupName); + public GroupInfo getGroup(String workspace, String teamspace, String groupName) throws ApiException { + ApiResponse localVarResp = getGroupWithHttpInfo(workspace, teamspace, groupName); return localVarResp.getData(); } /** * * Returns the the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<GroupInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -607,8 +646,8 @@ public GroupInfo getGroup(String groupNamespace, String groupName) throws ApiExc 0 error response - */ - public ApiResponse getGroupWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse getGroupWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupValidateBeforeCall(workspace, teamspace, groupName, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -616,7 +655,8 @@ public ApiResponse getGroupWithHttpInfo(String groupNamespace, String /** * (asynchronously) * Returns the the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -629,16 +669,17 @@ public ApiResponse getGroupWithHttpInfo(String groupNamespace, String 0 error response - */ - public okhttp3.Call getGroupAsync(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupAsync(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = getGroupValidateBeforeCall(workspace, teamspace, groupName, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGroupActivity - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -653,7 +694,7 @@ public okhttp3.Call getGroupAsync(String groupNamespace, String groupName, final 0 error response - */ - public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupActivityCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -670,8 +711,9 @@ public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/content_activity" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/content_activity" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -708,10 +750,15 @@ public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupActivity(Async)"); + private okhttp3.Call getGroupActivityValidateBeforeCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroupActivity(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroupActivity(Async)"); } // verify the required parameter 'groupName' is set @@ -719,14 +766,15 @@ private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, S throw new ApiException("Missing the required parameter 'groupName' when calling getGroupActivity(Async)"); } - return getGroupActivityCall(groupNamespace, groupName, page, perPage, _callback); + return getGroupActivityCall(workspace, teamspace, groupName, page, perPage, _callback); } /** * * Returns the activity of group content - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -740,15 +788,16 @@ private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, S 0 error response - */ - public GroupContentActivityResponse getGroupActivity(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = getGroupActivityWithHttpInfo(groupNamespace, groupName, page, perPage); + public GroupContentActivityResponse getGroupActivity(String workspace, String teamspace, String groupName, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = getGroupActivityWithHttpInfo(workspace, teamspace, groupName, page, perPage); return localVarResp.getData(); } /** * * Returns the activity of group content - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -762,8 +811,8 @@ public GroupContentActivityResponse getGroupActivity(String groupNamespace, Stri 0 error response - */ - public ApiResponse getGroupActivityWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, null); + public ApiResponse getGroupActivityWithHttpInfo(String workspace, String teamspace, String groupName, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(workspace, teamspace, groupName, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -771,7 +820,8 @@ public ApiResponse getGroupActivityWithHttpInfo(St /** * (asynchronously) * Returns the activity of group content - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -786,16 +836,17 @@ public ApiResponse getGroupActivityWithHttpInfo(St 0 error response - */ - public okhttp3.Call getGroupActivityAsync(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupActivityAsync(String workspace, String teamspace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, _callback); + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(workspace, teamspace, groupName, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGroupContents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -817,7 +868,7 @@ public okhttp3.Call getGroupActivityAsync(String groupNamespace, String groupNam 0 error response - */ - public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupContentsCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -834,8 +885,9 @@ public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/contents" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/contents" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -900,10 +952,15 @@ public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupContents(Async)"); + private okhttp3.Call getGroupContentsValidateBeforeCall(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroupContents(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroupContents(Async)"); } // verify the required parameter 'groupName' is set @@ -911,14 +968,15 @@ private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, S throw new ApiException("Missing the required parameter 'groupName' when calling getGroupContents(Async)"); } - return getGroupContentsCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + return getGroupContentsCall(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); } /** * * Returns the contents of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -939,15 +997,16 @@ private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, S 0 error response - */ - public GroupContents getGroupContents(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { - ApiResponse localVarResp = getGroupContentsWithHttpInfo(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + public GroupContents getGroupContents(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { + ApiResponse localVarResp = getGroupContentsWithHttpInfo(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); return localVarResp.getData(); } /** * * Returns the contents of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -968,8 +1027,8 @@ public GroupContents getGroupContents(String groupNamespace, String groupName, I 0 error response - */ - public ApiResponse getGroupContentsWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { - okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, null); + public ApiResponse getGroupContentsWithHttpInfo(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType) throws ApiException { + okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -977,7 +1036,8 @@ public ApiResponse getGroupContentsWithHttpInfo(String groupNames /** * (asynchronously) * Returns the contents of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param page pagination offset for assets (optional) * @param perPage pagination limit for assets (optional) @@ -999,16 +1059,17 @@ public ApiResponse getGroupContentsWithHttpInfo(String groupNames 0 error response - */ - public okhttp3.Call getGroupContentsAsync(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupContentsAsync(String workspace, String teamspace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGroupSharingPolicies - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1022,7 +1083,7 @@ public okhttp3.Call getGroupContentsAsync(String groupNamespace, String groupNam 0 error response - */ - public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getGroupSharingPoliciesCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1039,8 +1100,9 @@ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String gr Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/share" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -1069,10 +1131,15 @@ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String gr } @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupSharingPolicies(Async)"); + private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getGroupSharingPolicies(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getGroupSharingPolicies(Async)"); } // verify the required parameter 'groupName' is set @@ -1080,14 +1147,15 @@ private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNames throw new ApiException("Missing the required parameter 'groupName' when calling getGroupSharingPolicies(Async)"); } - return getGroupSharingPoliciesCall(groupNamespace, groupName, _callback); + return getGroupSharingPoliciesCall(workspace, teamspace, groupName, _callback); } /** * * Get all sharing details of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return List<GroupSharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1100,15 +1168,16 @@ private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNames 0 error response - */ - public List getGroupSharingPolicies(String groupNamespace, String groupName) throws ApiException { - ApiResponse> localVarResp = getGroupSharingPoliciesWithHttpInfo(groupNamespace, groupName); + public List getGroupSharingPolicies(String workspace, String teamspace, String groupName) throws ApiException { + ApiResponse> localVarResp = getGroupSharingPoliciesWithHttpInfo(workspace, teamspace, groupName); return localVarResp.getData(); } /** * * Get all sharing details of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<List<GroupSharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1121,8 +1190,8 @@ public List getGroupSharingPolicies(String groupNamespace, String 0 error response - */ - public ApiResponse> getGroupSharingPoliciesWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse> getGroupSharingPoliciesWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(workspace, teamspace, groupName, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1130,7 +1199,8 @@ public ApiResponse> getGroupSharingPoliciesWithHttpInfo(Strin /** * (asynchronously) * Get all sharing details of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1144,9 +1214,9 @@ public ApiResponse> getGroupSharingPoliciesWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getGroupSharingPoliciesAsync(String groupNamespace, String groupName, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getGroupSharingPoliciesAsync(String workspace, String teamspace, String groupName, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(workspace, teamspace, groupName, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1531,8 +1601,9 @@ public okhttp3.Call groupsBrowserSharedFiltersGetAsync(String namespace, final A return localVarCall; } /** - * Build call for groupsGroupNamespaceGroupNameContentsFiltersGet - * @param groupNamespace The namespace of the group (required) + * Build call for groupsWorkspaceTeamspaceGroupNameContentsFiltersGet + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1545,7 +1616,7 @@ public okhttp3.Call groupsBrowserSharedFiltersGetAsync(String namespace, final A 0 error response - */ - public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsWorkspaceTeamspaceGroupNameContentsFiltersGetCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1562,8 +1633,9 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String g Object localVarPostBody = null; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/contents/filters" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/contents/filters" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -1592,25 +1664,31 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String g } @SuppressWarnings("rawtypes") - private okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling groupsGroupNamespaceGroupNameContentsFiltersGet(Async)"); + private okhttp3.Call groupsWorkspaceTeamspaceGroupNameContentsFiltersGetValidateBeforeCall(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(Async)"); } // verify the required parameter 'groupName' is set if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling groupsGroupNamespaceGroupNameContentsFiltersGet(Async)"); + throw new ApiException("Missing the required parameter 'groupName' when calling groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(Async)"); } - return groupsGroupNamespaceGroupNameContentsFiltersGetCall(groupNamespace, groupName, _callback); + return groupsWorkspaceTeamspaceGroupNameContentsFiltersGetCall(workspace, teamspace, groupName, _callback); } /** * * Fetch data to initialize filters for the group contents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return GroupContentsFilterData * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1622,15 +1700,16 @@ private okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetValidateBefo 0 error response - */ - public GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(String groupNamespace, String groupName) throws ApiException { - ApiResponse localVarResp = groupsGroupNamespaceGroupNameContentsFiltersGetWithHttpInfo(groupNamespace, groupName); + public GroupContentsFilterData groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(String workspace, String teamspace, String groupName) throws ApiException { + ApiResponse localVarResp = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetWithHttpInfo(workspace, teamspace, groupName); return localVarResp.getData(); } /** * * Fetch data to initialize filters for the group contents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @return ApiResponse<GroupContentsFilterData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1642,8 +1721,8 @@ public GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(S 0 error response - */ - public ApiResponse groupsGroupNamespaceGroupNameContentsFiltersGetWithHttpInfo(String groupNamespace, String groupName) throws ApiException { - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(groupNamespace, groupName, null); + public ApiResponse groupsWorkspaceTeamspaceGroupNameContentsFiltersGetWithHttpInfo(String workspace, String teamspace, String groupName) throws ApiException { + okhttp3.Call localVarCall = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetValidateBeforeCall(workspace, teamspace, groupName, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1651,7 +1730,8 @@ public ApiResponse groupsGroupNamespaceGroupNameContent /** * (asynchronously) * Fetch data to initialize filters for the group contents - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1664,9 +1744,9 @@ public ApiResponse groupsGroupNamespaceGroupNameContent 0 error response - */ - public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsWorkspaceTeamspaceGroupNameContentsFiltersGetAsync(String workspace, String teamspace, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(groupNamespace, groupName, _callback); + okhttp3.Call localVarCall = groupsWorkspaceTeamspaceGroupNameContentsFiltersGetValidateBeforeCall(workspace, teamspace, groupName, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2332,7 +2412,8 @@ public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, String } /** * Build call for registerGroup - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @param _callback Callback for upload/download progress @@ -2346,7 +2427,7 @@ public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, String 0 error response - */ - public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerGroupCall(String workspace, String teamspace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2363,8 +2444,9 @@ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegis Object localVarPostBody = groupRegister; // create path and map variables - String localVarPath = "/groups/{namespace}/{array}/register" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{array}/register" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -2394,10 +2476,15 @@ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegis } @SuppressWarnings("rawtypes") - private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerGroup(Async)"); + private okhttp3.Call registerGroupValidateBeforeCall(String workspace, String teamspace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling registerGroup(Async)"); } // verify the required parameter 'array' is set @@ -2405,14 +2492,15 @@ private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String ar throw new ApiException("Missing the required parameter 'array' when calling registerGroup(Async)"); } - return registerGroupCall(namespace, array, groupRegister, _callback); + return registerGroupCall(workspace, teamspace, array, groupRegister, _callback); } /** * * Registers an existing group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2424,14 +2512,15 @@ private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String ar 0 error response - */ - public void registerGroup(String namespace, String array, GroupRegister groupRegister) throws ApiException { - registerGroupWithHttpInfo(namespace, array, groupRegister); + public void registerGroup(String workspace, String teamspace, String array, GroupRegister groupRegister) throws ApiException { + registerGroupWithHttpInfo(workspace, teamspace, array, groupRegister); } /** * * Registers an existing group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @return ApiResponse<Void> @@ -2444,15 +2533,16 @@ public void registerGroup(String namespace, String array, GroupRegister groupReg 0 error response - */ - public ApiResponse registerGroupWithHttpInfo(String namespace, String array, GroupRegister groupRegister) throws ApiException { - okhttp3.Call localVarCall = registerGroupValidateBeforeCall(namespace, array, groupRegister, null); + public ApiResponse registerGroupWithHttpInfo(String workspace, String teamspace, String array, GroupRegister groupRegister) throws ApiException { + okhttp3.Call localVarCall = registerGroupValidateBeforeCall(workspace, teamspace, array, groupRegister, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Registers an existing group in the namespace. - * @param namespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The unique name or id of the group (required) * @param groupRegister (optional) * @param _callback The callback to be executed when the API call finishes @@ -2466,15 +2556,16 @@ public ApiResponse registerGroupWithHttpInfo(String namespace, String arra 0 error response - */ - public okhttp3.Call registerGroupAsync(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerGroupAsync(String workspace, String teamspace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerGroupValidateBeforeCall(namespace, array, groupRegister, _callback); + okhttp3.Call localVarCall = registerGroupValidateBeforeCall(workspace, teamspace, array, groupRegister, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -2489,7 +2580,7 @@ public okhttp3.Call registerGroupAsync(String namespace, String array, GroupRegi 0 error response - */ - public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupCall(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2506,8 +2597,9 @@ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, Grou Object localVarPostBody = groupSharingRequest; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}/share" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -2537,10 +2629,15 @@ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, Grou } @SuppressWarnings("rawtypes") - private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling shareGroup(Async)"); + private okhttp3.Call shareGroupValidateBeforeCall(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareGroup(Async)"); } // verify the required parameter 'groupName' is set @@ -2553,14 +2650,15 @@ private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String throw new ApiException("Missing the required parameter 'groupSharingRequest' when calling shareGroup(Async)"); } - return shareGroupCall(groupNamespace, groupName, groupSharingRequest, _callback); + return shareGroupCall(workspace, teamspace, groupName, groupSharingRequest, _callback); } /** * * Share a group with a namespace - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2573,14 +2671,15 @@ private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String 0 error response - */ - public void shareGroup(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { - shareGroupWithHttpInfo(groupNamespace, groupName, groupSharingRequest); + public void shareGroup(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { + shareGroupWithHttpInfo(workspace, teamspace, groupName, groupSharingRequest); } /** * * Share a group with a namespace - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -2594,15 +2693,16 @@ public void shareGroup(String groupNamespace, String groupName, GroupSharingRequ 0 error response - */ - public ApiResponse shareGroupWithHttpInfo(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { - okhttp3.Call localVarCall = shareGroupValidateBeforeCall(groupNamespace, groupName, groupSharingRequest, null); + public ApiResponse shareGroupWithHttpInfo(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest) throws ApiException { + okhttp3.Call localVarCall = shareGroupValidateBeforeCall(workspace, teamspace, groupName, groupSharingRequest, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share a group with a namespace - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -2617,15 +2717,16 @@ public ApiResponse shareGroupWithHttpInfo(String groupNamespace, String gr 0 error response - */ - public okhttp3.Call shareGroupAsync(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupAsync(String workspace, String teamspace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareGroupValidateBeforeCall(groupNamespace, groupName, groupSharingRequest, _callback); + okhttp3.Call localVarCall = shareGroupValidateBeforeCall(workspace, teamspace, groupName, groupSharingRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateGroup - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @param _callback Callback for upload/download progress @@ -2639,7 +2740,7 @@ public okhttp3.Call shareGroupAsync(String groupNamespace, String groupName, Gro 0 error response - */ - public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateGroupCall(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2656,8 +2757,9 @@ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, Gro Object localVarPostBody = groupUpdate; // create path and map variables - String localVarPath = "/groups/{group_namespace}/{group_name}" - .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + String localVarPath = "/groups/{workspace}/{teamspace}/{group_name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); @@ -2687,10 +2789,15 @@ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, Gro } @SuppressWarnings("rawtypes") - private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupNamespace' is set - if (groupNamespace == null) { - throw new ApiException("Missing the required parameter 'groupNamespace' when calling updateGroup(Async)"); + private okhttp3.Call updateGroupValidateBeforeCall(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateGroup(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateGroup(Async)"); } // verify the required parameter 'groupName' is set @@ -2698,14 +2805,15 @@ private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String throw new ApiException("Missing the required parameter 'groupName' when calling updateGroup(Async)"); } - return updateGroupCall(groupNamespace, groupName, groupUpdate, _callback); + return updateGroupCall(workspace, teamspace, groupName, groupUpdate, _callback); } /** * * Changes attributes of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2717,14 +2825,15 @@ private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String 0 error response - */ - public void updateGroup(String groupNamespace, String groupName, GroupUpdate groupUpdate) throws ApiException { - updateGroupWithHttpInfo(groupNamespace, groupName, groupUpdate); + public void updateGroup(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate) throws ApiException { + updateGroupWithHttpInfo(workspace, teamspace, groupName, groupUpdate); } /** * * Changes attributes of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @return ApiResponse<Void> @@ -2737,15 +2846,16 @@ public void updateGroup(String groupNamespace, String groupName, GroupUpdate gro 0 error response - */ - public ApiResponse updateGroupWithHttpInfo(String groupNamespace, String groupName, GroupUpdate groupUpdate) throws ApiException { - okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupNamespace, groupName, groupUpdate, null); + public ApiResponse updateGroupWithHttpInfo(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate) throws ApiException { + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(workspace, teamspace, groupName, groupUpdate, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Changes attributes of the group - * @param groupNamespace The namespace of the group (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param groupName The unique name or id of the group (required) * @param groupUpdate (optional) * @param _callback The callback to be executed when the API call finishes @@ -2759,9 +2869,9 @@ public ApiResponse updateGroupWithHttpInfo(String groupNamespace, String g 0 error response - */ - public okhttp3.Call updateGroupAsync(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateGroupAsync(String workspace, String teamspace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupNamespace, groupName, groupUpdate, _callback); + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(workspace, teamspace, groupName, groupUpdate, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java index a7f715a..006fcb1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java @@ -352,7 +352,8 @@ public okhttp3.Call cancelJoinOrganizationAsync(String invitation, String organi } /** * Build call for cancelShareArrayByInvite - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @param _callback Callback for upload/download progress @@ -367,7 +368,7 @@ public okhttp3.Call cancelJoinOrganizationAsync(String invitation, String organi 0 error response - */ - public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareArrayByInviteCall(String workspace, String teamspace, String invitation, String array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -384,8 +385,9 @@ public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invita Object localVarPostBody = null; // create path and map variables - String localVarPath = "/invitations/{invitation}/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/invitations/{invitation}/{workspace}/{teamspace}/{array}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); @@ -415,10 +417,15 @@ public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invita } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareArrayByInvite(Async)"); + private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String workspace, String teamspace, String invitation, String array, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling cancelShareArrayByInvite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling cancelShareArrayByInvite(Async)"); } // verify the required parameter 'invitation' is set @@ -431,14 +438,15 @@ private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace throw new ApiException("Missing the required parameter 'array' when calling cancelShareArrayByInvite(Async)"); } - return cancelShareArrayByInviteCall(namespace, invitation, array, _callback); + return cancelShareArrayByInviteCall(workspace, teamspace, invitation, array, _callback); } /** * * Cancels array sharing invitation - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -451,14 +459,15 @@ private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace 0 error response - */ - public void cancelShareArrayByInvite(String namespace, String invitation, String array) throws ApiException { - cancelShareArrayByInviteWithHttpInfo(namespace, invitation, array); + public void cancelShareArrayByInvite(String workspace, String teamspace, String invitation, String array) throws ApiException { + cancelShareArrayByInviteWithHttpInfo(workspace, teamspace, invitation, array); } /** * * Cancels array sharing invitation - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @return ApiResponse<Void> @@ -472,15 +481,16 @@ public void cancelShareArrayByInvite(String namespace, String invitation, String 0 error response - */ - public ApiResponse cancelShareArrayByInviteWithHttpInfo(String namespace, String invitation, String array) throws ApiException { - okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(namespace, invitation, array, null); + public ApiResponse cancelShareArrayByInviteWithHttpInfo(String workspace, String teamspace, String invitation, String array) throws ApiException { + okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(workspace, teamspace, invitation, array, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Cancels array sharing invitation - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param array name/uri of array that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes @@ -495,15 +505,16 @@ public ApiResponse cancelShareArrayByInviteWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call cancelShareArrayByInviteAsync(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareArrayByInviteAsync(String workspace, String teamspace, String invitation, String array, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(namespace, invitation, array, _callback); + okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(workspace, teamspace, invitation, array, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for cancelShareGroupByInvite - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @param _callback Callback for upload/download progress @@ -518,7 +529,7 @@ public okhttp3.Call cancelShareArrayByInviteAsync(String namespace, String invit 0 error response - */ - public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareGroupByInviteCall(String workspace, String teamspace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -535,8 +546,9 @@ public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invita Object localVarPostBody = null; // create path and map variables - String localVarPath = "/invitations/group/{invitation}/{namespace}/{group_name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/invitations/group/{invitation}/{workspace}/{teamspace}/{group_name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); @@ -566,10 +578,15 @@ public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invita } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareGroupByInvite(Async)"); + private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String workspace, String teamspace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling cancelShareGroupByInvite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling cancelShareGroupByInvite(Async)"); } // verify the required parameter 'invitation' is set @@ -582,14 +599,15 @@ private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace throw new ApiException("Missing the required parameter 'groupName' when calling cancelShareGroupByInvite(Async)"); } - return cancelShareGroupByInviteCall(namespace, invitation, groupName, _callback); + return cancelShareGroupByInviteCall(workspace, teamspace, invitation, groupName, _callback); } /** * * Cancels group sharing invitation - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -602,14 +620,15 @@ private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace 0 error response - */ - public void cancelShareGroupByInvite(String namespace, String invitation, String groupName) throws ApiException { - cancelShareGroupByInviteWithHttpInfo(namespace, invitation, groupName); + public void cancelShareGroupByInvite(String workspace, String teamspace, String invitation, String groupName) throws ApiException { + cancelShareGroupByInviteWithHttpInfo(workspace, teamspace, invitation, groupName); } /** * * Cancels group sharing invitation - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @return ApiResponse<Void> @@ -623,15 +642,16 @@ public void cancelShareGroupByInvite(String namespace, String invitation, String 0 error response - */ - public ApiResponse cancelShareGroupByInviteWithHttpInfo(String namespace, String invitation, String groupName) throws ApiException { - okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, null); + public ApiResponse cancelShareGroupByInviteWithHttpInfo(String workspace, String teamspace, String invitation, String groupName) throws ApiException { + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(workspace, teamspace, invitation, groupName, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Cancels group sharing invitation - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param invitation the ID of invitation about to be cancelled (required) * @param groupName name/uuid of group that is url-encoded (required) * @param _callback The callback to be executed when the API call finishes @@ -646,15 +666,16 @@ public ApiResponse cancelShareGroupByInviteWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call cancelShareGroupByInviteAsync(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelShareGroupByInviteAsync(String workspace, String teamspace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, _callback); + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(workspace, teamspace, invitation, groupName, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for cancelSharePayment - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -667,7 +688,7 @@ public okhttp3.Call cancelShareGroupByInviteAsync(String namespace, String invit 0 error response - */ - public okhttp3.Call cancelSharePaymentCall(String namespace, String target, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelSharePaymentCall(String workspace, String teamspace, String target, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -684,8 +705,9 @@ public okhttp3.Call cancelSharePaymentCall(String namespace, String target, fina Object localVarPostBody = null; // create path and map variables - String localVarPath = "/invitations/share_payment/{namespace}/{target}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/invitations/share_payment/{workspace}/{teamspace}/{target}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "target" + "}", localVarApiClient.escapeString(target.toString())); List localVarQueryParams = new ArrayList(); @@ -714,10 +736,15 @@ public okhttp3.Call cancelSharePaymentCall(String namespace, String target, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelSharePaymentValidateBeforeCall(String namespace, String target, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling cancelSharePayment(Async)"); + private okhttp3.Call cancelSharePaymentValidateBeforeCall(String workspace, String teamspace, String target, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling cancelSharePayment(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling cancelSharePayment(Async)"); } // verify the required parameter 'target' is set @@ -725,14 +752,15 @@ private okhttp3.Call cancelSharePaymentValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'target' when calling cancelSharePayment(Async)"); } - return cancelSharePaymentCall(namespace, target, _callback); + return cancelSharePaymentCall(workspace, teamspace, target, _callback); } /** * * Revokes invitation from the source namespace to the target. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -743,14 +771,15 @@ private okhttp3.Call cancelSharePaymentValidateBeforeCall(String namespace, Stri 0 error response - */ - public void cancelSharePayment(String namespace, String target) throws ApiException { - cancelSharePaymentWithHttpInfo(namespace, target); + public void cancelSharePayment(String workspace, String teamspace, String target) throws ApiException { + cancelSharePaymentWithHttpInfo(workspace, teamspace, target); } /** * * Revokes invitation from the source namespace to the target. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -762,15 +791,16 @@ public void cancelSharePayment(String namespace, String target) throws ApiExcept 0 error response - */ - public ApiResponse cancelSharePaymentWithHttpInfo(String namespace, String target) throws ApiException { - okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(namespace, target, null); + public ApiResponse cancelSharePaymentWithHttpInfo(String workspace, String teamspace, String target) throws ApiException { + okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(workspace, teamspace, target, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Revokes invitation from the source namespace to the target. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param target name or UUID of recipient namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -783,9 +813,9 @@ public ApiResponse cancelSharePaymentWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call cancelSharePaymentAsync(String namespace, String target, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelSharePaymentAsync(String workspace, String teamspace, String target, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(namespace, target, _callback); + okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(workspace, teamspace, target, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -1137,7 +1167,8 @@ public okhttp3.Call joinOrganizationAsync(String organization, InvitationOrganiz } /** * Build call for shareArrayByInvite - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @param _callback Callback for upload/download progress @@ -1153,7 +1184,7 @@ public okhttp3.Call joinOrganizationAsync(String organization, InvitationOrganiz 0 error response - */ - public okhttp3.Call shareArrayByInviteCall(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayByInviteCall(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1170,8 +1201,9 @@ public okhttp3.Call shareArrayByInviteCall(String namespace, String array, Invit Object localVarPostBody = emailInvite; // create path and map variables - String localVarPath = "/invitations/{namespace}/{array}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/invitations/{workspace}/{teamspace}/{array}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1201,10 +1233,15 @@ public okhttp3.Call shareArrayByInviteCall(String namespace, String array, Invit } @SuppressWarnings("rawtypes") - private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareArrayByInvite(Async)"); + private okhttp3.Call shareArrayByInviteValidateBeforeCall(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareArrayByInvite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareArrayByInvite(Async)"); } // verify the required parameter 'array' is set @@ -1217,14 +1254,15 @@ private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'emailInvite' when calling shareArrayByInvite(Async)"); } - return shareArrayByInviteCall(namespace, array, emailInvite, _callback); + return shareArrayByInviteCall(workspace, teamspace, array, emailInvite, _callback); } /** * * Sends email to multiple recipients with sharing information regarding an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1238,14 +1276,15 @@ private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, Stri 0 error response - */ - public void shareArrayByInvite(String namespace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { - shareArrayByInviteWithHttpInfo(namespace, array, emailInvite); + public void shareArrayByInvite(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { + shareArrayByInviteWithHttpInfo(workspace, teamspace, array, emailInvite); } /** * * Sends email to multiple recipients with sharing information regarding an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @return ApiResponse<Void> @@ -1260,15 +1299,16 @@ public void shareArrayByInvite(String namespace, String array, InvitationArraySh 0 error response - */ - public ApiResponse shareArrayByInviteWithHttpInfo(String namespace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { - okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(namespace, array, emailInvite, null); + public ApiResponse shareArrayByInviteWithHttpInfo(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(workspace, teamspace, array, emailInvite, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Sends email to multiple recipients with sharing information regarding an array - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param emailInvite list of email recipients (required) * @param _callback The callback to be executed when the API call finishes @@ -1284,15 +1324,16 @@ public ApiResponse shareArrayByInviteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call shareArrayByInviteAsync(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareArrayByInviteAsync(String workspace, String teamspace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(namespace, array, emailInvite, _callback); + okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(workspace, teamspace, array, emailInvite, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareGroupByInvite - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @param _callback Callback for upload/download progress @@ -1308,7 +1349,7 @@ public okhttp3.Call shareArrayByInviteAsync(String namespace, String array, Invi 0 error response - */ - public okhttp3.Call shareGroupByInviteCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupByInviteCall(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1325,8 +1366,9 @@ public okhttp3.Call shareGroupByInviteCall(String namespace, String group, Invit Object localVarPostBody = emailInvite; // create path and map variables - String localVarPath = "/invitations/group/{namespace}/{group}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/invitations/group/{workspace}/{teamspace}/{group}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())); List localVarQueryParams = new ArrayList(); @@ -1356,10 +1398,15 @@ public okhttp3.Call shareGroupByInviteCall(String namespace, String group, Invit } @SuppressWarnings("rawtypes") - private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareGroupByInvite(Async)"); + private okhttp3.Call shareGroupByInviteValidateBeforeCall(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareGroupByInvite(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shareGroupByInvite(Async)"); } // verify the required parameter 'group' is set @@ -1372,14 +1419,15 @@ private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'emailInvite' when calling shareGroupByInvite(Async)"); } - return shareGroupByInviteCall(namespace, group, emailInvite, _callback); + return shareGroupByInviteCall(workspace, teamspace, group, emailInvite, _callback); } /** * * Sends email to multiple recipients with sharing information regarding a group - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1393,14 +1441,15 @@ private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, Stri 0 error response - */ - public void shareGroupByInvite(String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { - shareGroupByInviteWithHttpInfo(namespace, group, emailInvite); + public void shareGroupByInvite(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + shareGroupByInviteWithHttpInfo(workspace, teamspace, group, emailInvite); } /** * * Sends email to multiple recipients with sharing information regarding a group - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @return ApiResponse<Void> @@ -1415,15 +1464,16 @@ public void shareGroupByInvite(String namespace, String group, InvitationGroupSh 0 error response - */ - public ApiResponse shareGroupByInviteWithHttpInfo(String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { - okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, null); + public ApiResponse shareGroupByInviteWithHttpInfo(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(workspace, teamspace, group, emailInvite, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Sends email to multiple recipients with sharing information regarding a group - * @param namespace namespace group is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param group name/uri of group that is url-encoded (required) * @param emailInvite list of email/namespace recipients (required) * @param _callback The callback to be executed when the API call finishes @@ -1439,15 +1489,16 @@ public ApiResponse shareGroupByInviteWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call shareGroupByInviteAsync(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareGroupByInviteAsync(String workspace, String teamspace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, _callback); + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(workspace, teamspace, group, emailInvite, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for sharePayment - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1462,7 +1513,7 @@ public okhttp3.Call shareGroupByInviteAsync(String namespace, String group, Invi 0 error response - */ - public okhttp3.Call sharePaymentCall(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sharePaymentCall(String workspace, String teamspace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1479,8 +1530,9 @@ public okhttp3.Call sharePaymentCall(String namespace, SharePaymentRequest email Object localVarPostBody = emailInvite; // create path and map variables - String localVarPath = "/invitations/share_payment/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/invitations/share_payment/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1509,20 +1561,26 @@ public okhttp3.Call sharePaymentCall(String namespace, SharePaymentRequest email } @SuppressWarnings("rawtypes") - private okhttp3.Call sharePaymentValidateBeforeCall(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling sharePayment(Async)"); + private okhttp3.Call sharePaymentValidateBeforeCall(String workspace, String teamspace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling sharePayment(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling sharePayment(Async)"); } - return sharePaymentCall(namespace, emailInvite, _callback); + return sharePaymentCall(workspace, teamspace, emailInvite, _callback); } /** * * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1535,14 +1593,15 @@ private okhttp3.Call sharePaymentValidateBeforeCall(String namespace, SharePayme 0 error response - */ - public void sharePayment(String namespace, SharePaymentRequest emailInvite) throws ApiException { - sharePaymentWithHttpInfo(namespace, emailInvite); + public void sharePayment(String workspace, String teamspace, SharePaymentRequest emailInvite) throws ApiException { + sharePaymentWithHttpInfo(workspace, teamspace, emailInvite); } /** * * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1556,15 +1615,16 @@ public void sharePayment(String namespace, SharePaymentRequest emailInvite) thro 0 error response - */ - public ApiResponse sharePaymentWithHttpInfo(String namespace, SharePaymentRequest emailInvite) throws ApiException { - okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(namespace, emailInvite, null); + public ApiResponse sharePaymentWithHttpInfo(String workspace, String teamspace, SharePaymentRequest emailInvite) throws ApiException { + okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(workspace, teamspace, emailInvite, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. - * @param namespace name or UUID of namespace sharing their payment info (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param emailInvite Recipients of the invitation. These may only be namespaces, not email addresses. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1579,9 +1639,9 @@ public ApiResponse sharePaymentWithHttpInfo(String namespace, SharePayment 0 error response - */ - public okhttp3.Call sharePaymentAsync(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call sharePaymentAsync(String workspace, String teamspace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(namespace, emailInvite, _callback); + okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(workspace, teamspace, emailInvite, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java index 676806c..3e53e7e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java @@ -80,7 +80,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getNotebookServerStatus - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -94,7 +95,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookServerStatusCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +112,9 @@ public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallb Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/server/{namespace}/status" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/notebooks/server/{workspace}/{teamspace}/status" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -140,20 +142,26 @@ public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallb } @SuppressWarnings("rawtypes") - private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getNotebookServerStatus(Async)"); + private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getNotebookServerStatus(Async)"); } - return getNotebookServerStatusCall(namespace, _callback); + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getNotebookServerStatus(Async)"); + } + + return getNotebookServerStatusCall(workspace, teamspace, _callback); } /** * * Get status of the notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return NotebookStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -166,15 +174,16 @@ private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace, 0 error response - */ - public NotebookStatus getNotebookServerStatus(String namespace) throws ApiException { - ApiResponse localVarResp = getNotebookServerStatusWithHttpInfo(namespace); + public NotebookStatus getNotebookServerStatus(String workspace, String teamspace) throws ApiException { + ApiResponse localVarResp = getNotebookServerStatusWithHttpInfo(workspace, teamspace); return localVarResp.getData(); } /** * * Get status of the notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return ApiResponse<NotebookStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -187,8 +196,8 @@ public NotebookStatus getNotebookServerStatus(String namespace) throws ApiExcept 0 error response - */ - public ApiResponse getNotebookServerStatusWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(namespace, null); + public ApiResponse getNotebookServerStatusWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(workspace, teamspace, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -196,7 +205,8 @@ public ApiResponse getNotebookServerStatusWithHttpInfo(String na /** * (asynchronously) * Get status of the notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -210,16 +220,17 @@ public ApiResponse getNotebookServerStatusWithHttpInfo(String na 0 error response - */ - public okhttp3.Call getNotebookServerStatusAsync(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNotebookServerStatusAsync(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(workspace, teamspace, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleCopyNotebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -235,7 +246,7 @@ public okhttp3.Call getNotebookServerStatusAsync(String namespace, final ApiCall 0 error response - */ - public okhttp3.Call handleCopyNotebookCall(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyNotebookCall(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -252,8 +263,9 @@ public okhttp3.Call handleCopyNotebookCall(String namespace, String array, Noteb Object localVarPostBody = notebookCopy; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/copy" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/copy" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -291,10 +303,15 @@ public okhttp3.Call handleCopyNotebookCall(String namespace, String array, Noteb } @SuppressWarnings("rawtypes") - private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleCopyNotebook(Async)"); + private okhttp3.Call handleCopyNotebookValidateBeforeCall(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleCopyNotebook(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleCopyNotebook(Async)"); } // verify the required parameter 'array' is set @@ -307,14 +324,15 @@ private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'notebookCopy' when calling handleCopyNotebook(Async)"); } - return handleCopyNotebookCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + return handleCopyNotebookCall(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); } /** * * Copy a tiledb notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -329,15 +347,16 @@ private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, Stri 0 error response - */ - public NotebookCopied handleCopyNotebook(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = handleCopyNotebookWithHttpInfo(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + public NotebookCopied handleCopyNotebook(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = handleCopyNotebookWithHttpInfo(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); return localVarResp.getData(); } /** * * Copy a tiledb notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -352,8 +371,8 @@ public NotebookCopied handleCopyNotebook(String namespace, String array, Noteboo 0 error response - */ - public ApiResponse handleCopyNotebookWithHttpInfo(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); + public ApiResponse handleCopyNotebookWithHttpInfo(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -361,7 +380,8 @@ public ApiResponse handleCopyNotebookWithHttpInfo(String namespa /** * (asynchronously) * Copy a tiledb notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array The name of the notebook (required) * @param notebookCopy Input/Output information to create a new TileDB file (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -377,16 +397,17 @@ public ApiResponse handleCopyNotebookWithHttpInfo(String namespa 0 error response - */ - public okhttp3.Call handleCopyNotebookAsync(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyNotebookAsync(String workspace, String teamspace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleUploadNotebook - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -402,7 +423,7 @@ public okhttp3.Call handleCopyNotebookAsync(String namespace, String array, Note 0 error response - */ - public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadNotebookCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -419,8 +440,9 @@ public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/{namespace}/upload" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/notebooks/{workspace}/{teamspace}/upload" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -465,10 +487,15 @@ public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, S } @SuppressWarnings("rawtypes") - private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadNotebook(Async)"); + private okhttp3.Call handleUploadNotebookValidateBeforeCall(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleUploadNotebook(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling handleUploadNotebook(Async)"); } // verify the required parameter 'inputFile' is set @@ -476,14 +503,15 @@ private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, Fi throw new ApiException("Missing the required parameter 'inputFile' when calling handleUploadNotebook(Async)"); } - return handleUploadNotebookCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + return handleUploadNotebookCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); } /** * * Upload a notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -498,15 +526,16 @@ private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, Fi 0 error response - */ - public FileUploaded handleUploadNotebook(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - ApiResponse localVarResp = handleUploadNotebookWithHttpInfo(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + public FileUploaded handleUploadNotebook(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + ApiResponse localVarResp = handleUploadNotebookWithHttpInfo(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); return localVarResp.getData(); } /** * * Upload a notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -521,8 +550,8 @@ public FileUploaded handleUploadNotebook(String namespace, File inputFile, Strin 0 error response - */ - public ApiResponse handleUploadNotebookWithHttpInfo(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { - okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); + public ApiResponse handleUploadNotebookWithHttpInfo(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name) throws ApiException { + okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -530,7 +559,8 @@ public ApiResponse handleUploadNotebookWithHttpInfo(String namespa /** * (asynchronously) * Upload a notebook at the specified location - * @param namespace The namespace of the notebook (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param inputFile the notebook to upload (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) * @param outputUri output location of the TileDB File (optional) @@ -546,16 +576,17 @@ public ApiResponse handleUploadNotebookWithHttpInfo(String namespa 0 error response - */ - public okhttp3.Call handleUploadNotebookAsync(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleUploadNotebookAsync(String workspace, String teamspace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for shutdownNotebookServer - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -568,7 +599,7 @@ public okhttp3.Call handleUploadNotebookAsync(String namespace, File inputFile, 0 error response - */ - public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shutdownNotebookServerCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -585,8 +616,9 @@ public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallba Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/server/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/notebooks/server/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -614,20 +646,26 @@ public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shutdownNotebookServer(Async)"); + private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shutdownNotebookServer(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling shutdownNotebookServer(Async)"); } - return shutdownNotebookServerCall(namespace, _callback); + return shutdownNotebookServerCall(workspace, teamspace, _callback); } /** * * Shutdown a notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -638,14 +676,15 @@ private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String namespace,
0 error response -
*/ - public void shutdownNotebookServer(String namespace) throws ApiException { - shutdownNotebookServerWithHttpInfo(namespace); + public void shutdownNotebookServer(String workspace, String teamspace) throws ApiException { + shutdownNotebookServerWithHttpInfo(workspace, teamspace); } /** * * Shutdown a notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -657,15 +696,16 @@ public void shutdownNotebookServer(String namespace) throws ApiException { 0 error response - */ - public ApiResponse shutdownNotebookServerWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(namespace, null); + public ApiResponse shutdownNotebookServerWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(workspace, teamspace, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Shutdown a notebook server - * @param namespace namespace notebook is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -678,15 +718,16 @@ public ApiResponse shutdownNotebookServerWithHttpInfo(String namespace) th 0 error response - */ - public okhttp3.Call shutdownNotebookServerAsync(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shutdownNotebookServerAsync(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(workspace, teamspace, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateNotebookName - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @param _callback Callback for upload/download progress @@ -700,7 +741,7 @@ public okhttp3.Call shutdownNotebookServerAsync(String namespace, final ApiCallb 0 error response - */ - public okhttp3.Call updateNotebookNameCall(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNotebookNameCall(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -717,8 +758,9 @@ public okhttp3.Call updateNotebookNameCall(String namespace, String array, Array Object localVarPostBody = notebookMetadata; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/rename" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/rename" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -748,10 +790,15 @@ public okhttp3.Call updateNotebookNameCall(String namespace, String array, Array } @SuppressWarnings("rawtypes") - private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateNotebookName(Async)"); + private okhttp3.Call updateNotebookNameValidateBeforeCall(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateNotebookName(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateNotebookName(Async)"); } // verify the required parameter 'array' is set @@ -764,14 +811,15 @@ private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'notebookMetadata' when calling updateNotebookName(Async)"); } - return updateNotebookNameCall(namespace, array, notebookMetadata, _callback); + return updateNotebookNameCall(workspace, teamspace, array, notebookMetadata, _callback); } /** * * update name on a notebok, moving related S3 object to new location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -783,14 +831,15 @@ private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, Stri 0 error response - */ - public void updateNotebookName(String namespace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { - updateNotebookNameWithHttpInfo(namespace, array, notebookMetadata); + public void updateNotebookName(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { + updateNotebookNameWithHttpInfo(workspace, teamspace, array, notebookMetadata); } /** * * update name on a notebok, moving related S3 object to new location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @return ApiResponse<Void> @@ -803,15 +852,16 @@ public void updateNotebookName(String namespace, String array, ArrayInfoUpdate n 0 error response - */ - public ApiResponse updateNotebookNameWithHttpInfo(String namespace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { - okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(namespace, array, notebookMetadata, null); + public ApiResponse updateNotebookNameWithHttpInfo(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { + okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(workspace, teamspace, array, notebookMetadata, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update name on a notebok, moving related S3 object to new location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of notebook (array) that is url-encoded (required) * @param notebookMetadata notebook (array) metadata to update (required) * @param _callback The callback to be executed when the API call finishes @@ -825,9 +875,9 @@ public ApiResponse updateNotebookNameWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call updateNotebookNameAsync(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNotebookNameAsync(String workspace, String teamspace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(namespace, array, notebookMetadata, _callback); + okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(workspace, teamspace, array, notebookMetadata, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java index e32dc2f..aa02a36 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java @@ -74,8 +74,9 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for notebooksNamespaceArrayEndTimestampsGet - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for notebooksWorkspaceTeamspaceArrayEndTimestampsGet + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -90,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayEndTimestampsGetCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -107,8 +108,9 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/end_timestamps" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/end_timestamps" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -145,25 +147,31 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayEndTimestampsGet(Async)"); + private okhttp3.Call notebooksWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling notebooksWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling notebooksWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayEndTimestampsGet(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling notebooksWorkspaceTeamspaceArrayEndTimestampsGet(Async)"); } - return notebooksNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + return notebooksWorkspaceTeamspaceArrayEndTimestampsGetCall(workspace, teamspace, array, page, perPage, _callback); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -177,15 +185,16 @@ private okhttp3.Call notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(S 0 error response - */ - public ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(String namespace, String array, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = notebooksNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + public ArrayEndTimestampData notebooksWorkspaceTeamspaceArrayEndTimestampsGet(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = notebooksWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(workspace, teamspace, array, page, perPage); return localVarResp.getData(); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -199,8 +208,8 @@ public ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(String name 0 error response - */ - public ApiResponse notebooksNamespaceArrayEndTimestampsGetWithHttpInfo(String namespace, String array, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + public ApiResponse notebooksWorkspaceTeamspaceArrayEndTimestampsGetWithHttpInfo(String workspace, String teamspace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -208,7 +217,8 @@ public ApiResponse notebooksNamespaceArrayEndTimestampsGe /** * (asynchronously) * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -223,16 +233,17 @@ public ApiResponse notebooksNamespaceArrayEndTimestampsGe 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetAsync(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayEndTimestampsGetAsync(String workspace, String teamspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayEndTimestampsGetValidateBeforeCall(workspace, teamspace, array, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for notebooksNamespaceArrayPrunePost - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for notebooksWorkspaceTeamspaceArrayPrunePost + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @param _callback Callback for upload/download progress @@ -246,7 +257,7 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetAsync(String namespac 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayPrunePostCall(String workspace, String teamspace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -263,8 +274,9 @@ public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/notebooks/{namespace}/{array}/prune" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/notebooks/{workspace}/{teamspace}/{array}/prune" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -297,25 +309,31 @@ public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call notebooksNamespaceArrayPrunePostValidateBeforeCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayPrunePost(Async)"); + private okhttp3.Call notebooksWorkspaceTeamspaceArrayPrunePostValidateBeforeCall(String workspace, String teamspace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling notebooksWorkspaceTeamspaceArrayPrunePost(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling notebooksWorkspaceTeamspaceArrayPrunePost(Async)"); } // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayPrunePost(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling notebooksWorkspaceTeamspaceArrayPrunePost(Async)"); } - return notebooksNamespaceArrayPrunePostCall(namespace, array, keepVersions, _callback); + return notebooksWorkspaceTeamspaceArrayPrunePostCall(workspace, teamspace, array, keepVersions, _callback); } /** * * prune fragments of the notebook - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -327,14 +345,15 @@ private okhttp3.Call notebooksNamespaceArrayPrunePostValidateBeforeCall(String n 0 error response - */ - public void notebooksNamespaceArrayPrunePost(String namespace, String array, Integer keepVersions) throws ApiException { - notebooksNamespaceArrayPrunePostWithHttpInfo(namespace, array, keepVersions); + public void notebooksWorkspaceTeamspaceArrayPrunePost(String workspace, String teamspace, String array, Integer keepVersions) throws ApiException { + notebooksWorkspaceTeamspaceArrayPrunePostWithHttpInfo(workspace, teamspace, array, keepVersions); } /** * * prune fragments of the notebook - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @return ApiResponse<Void> @@ -347,15 +366,16 @@ public void notebooksNamespaceArrayPrunePost(String namespace, String array, Int 0 error response - */ - public ApiResponse notebooksNamespaceArrayPrunePostWithHttpInfo(String namespace, String array, Integer keepVersions) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, null); + public ApiResponse notebooksWorkspaceTeamspaceArrayPrunePostWithHttpInfo(String workspace, String teamspace, String array, Integer keepVersions) throws ApiException { + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayPrunePostValidateBeforeCall(workspace, teamspace, array, keepVersions, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * prune fragments of the notebook - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param keepVersions The number of most recents fragment to preserve (optional) * @param _callback The callback to be executed when the API call finishes @@ -369,9 +389,9 @@ public ApiResponse notebooksNamespaceArrayPrunePostWithHttpInfo(String nam 0 error response - */ - public okhttp3.Call notebooksNamespaceArrayPrunePostAsync(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + public okhttp3.Call notebooksWorkspaceTeamspaceArrayPrunePostAsync(String workspace, String teamspace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, _callback); + okhttp3.Call localVarCall = notebooksWorkspaceTeamspaceArrayPrunePostValidateBeforeCall(workspace, teamspace, array, keepVersions, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java index 75fc700..c995930 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java @@ -81,7 +81,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for addAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -94,7 +95,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +112,9 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -141,10 +143,15 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede } @SuppressWarnings("rawtypes") - private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); + private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addAWSAccessCredentials(Async)"); } // verify the required parameter 'awsAccessCredentials' is set @@ -152,14 +159,15 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); } - return addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); + return addAWSAccessCredentialsCall(workspace, teamspace, awsAccessCredentials, _callback); } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -170,14 +178,15 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, 0 error response - */ - public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); + public void addAWSAccessCredentials(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + addAWSAccessCredentialsWithHttpInfo(workspace, teamspace, awsAccessCredentials); } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -189,15 +198,16 @@ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAc 0 error response - */ - public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); + public ApiResponse addAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -210,9 +220,9 @@ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, A 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsAsync(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -355,7 +365,8 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization } /** * Build call for checkAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -367,7 +378,7 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -384,8 +395,9 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -413,20 +425,26 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); + private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentials(Async)"); } - return checkAWSAccessCredentialsCall(namespace, _callback); + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentials(Async)"); + } + + return checkAWSAccessCredentialsCall(workspace, teamspace, _callback); } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @return List<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -437,15 +455,16 @@ private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespac 0 error response - */ - public List checkAWSAccessCredentials(String namespace) throws ApiException { - ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); + public List checkAWSAccessCredentials(String workspace, String teamspace) throws ApiException { + ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(workspace, teamspace); return localVarResp.getData(); } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @return ApiResponse<List<AWSAccessCredentials>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -456,8 +475,8 @@ public List checkAWSAccessCredentials(String namespace) th 0 error response - */ - public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); + public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -465,7 +484,8 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp /** * (asynchronously) * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -477,16 +497,17 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsAsync(String workspace, String teamspace, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for checkAWSAccessCredentialsByName - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -499,7 +520,7 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -516,8 +537,9 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -546,10 +568,15 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); + private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentialsByName(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentialsByName(Async)"); } // verify the required parameter 'name' is set @@ -557,14 +584,15 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); } - return checkAWSAccessCredentialsByNameCall(namespace, name, _callback); + return checkAWSAccessCredentialsByNameCall(workspace, teamspace, name, _callback); } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @return AWSAccessCredentials * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -576,15 +604,16 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na 0 error response - */ - public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) throws ApiException { - ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); + public AWSAccessCredentials checkAWSAccessCredentialsByName(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @return ApiResponse<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -596,8 +625,8 @@ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, St 0 error response - */ - public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); + public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -605,7 +634,8 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp /** * (asynchronously) * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -618,9 +648,9 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1028,7 +1058,8 @@ public okhttp3.Call createSSODomainAsync(String organization, SSODomainConfig co } /** * Build call for deleteAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1041,7 +1072,7 @@ public okhttp3.Call createSSODomainAsync(String organization, SSODomainConfig co 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1058,8 +1089,9 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1088,10 +1120,15 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); + private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteAWSAccessCredentials(Async)"); } // verify the required parameter 'name' is set @@ -1099,14 +1136,15 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); } - return deleteAWSAccessCredentialsCall(namespace, name, _callback); + return deleteAWSAccessCredentialsCall(workspace, teamspace, name, _callback); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1117,14 +1155,15 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { - deleteAWSAccessCredentialsWithHttpInfo(namespace, name); + public void deleteAWSAccessCredentials(String workspace, String teamspace, String name) throws ApiException { + deleteAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1136,15 +1175,16 @@ public void deleteAWSAccessCredentials(String namespace, String name) throws Api 0 error response - */ - public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); + public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1157,9 +1197,9 @@ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -2235,7 +2275,8 @@ public okhttp3.Call getSSODomainsAsync(String organization, final ApiCallback 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2266,8 +2307,9 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2297,10 +2339,15 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); + private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateAWSAccessCredentials(Async)"); } // verify the required parameter 'name' is set @@ -2313,14 +2360,15 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); } - return updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); + return updateAWSAccessCredentialsCall(workspace, teamspace, name, awsAccessCredentials, _callback); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2332,14 +2380,15 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void updateAWSAccessCredentials(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); + public void updateAWSAccessCredentials(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + updateAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name, awsAccessCredentials); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @return ApiResponse<Void> @@ -2352,15 +2401,16 @@ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessC 0 error response - */ - public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); + public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback The callback to be executed when the API call finishes @@ -2374,9 +2424,9 @@ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsAsync(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java index fff1ee2..c80420b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java @@ -77,7 +77,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for finalizeQuery - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -96,7 +97,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call finalizeQueryCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call finalizeQueryCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -113,8 +114,9 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ Object localVarPostBody = query; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/finalize" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/finalize" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -162,10 +164,15 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ } @SuppressWarnings("rawtypes") - private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling finalizeQuery(Async)"); + private okhttp3.Call finalizeQueryValidateBeforeCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling finalizeQuery(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling finalizeQuery(Async)"); } // verify the required parameter 'array' is set @@ -188,14 +195,15 @@ private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String ar throw new ApiException("Missing the required parameter 'query' when calling finalizeQuery(Async)"); } - return finalizeQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + return finalizeQueryCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -213,15 +221,16 @@ private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String ar 0 error response - */ - public Query finalizeQuery(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - ApiResponse localVarResp = finalizeQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + public Query finalizeQuery(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + ApiResponse localVarResp = finalizeQueryWithHttpInfo(workspace, teamspace, array, type, contentType, query, xPayer, openAt); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -239,8 +248,8 @@ public Query finalizeQuery(String namespace, String array, String type, String c 0 error response - */ - public ApiResponse finalizeQueryWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + public ApiResponse finalizeQueryWithHttpInfo(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -248,7 +257,8 @@ public ApiResponse finalizeQueryWithHttpInfo(String namespace, String arr /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -267,16 +277,17 @@ public ApiResponse finalizeQueryWithHttpInfo(String namespace, String arr 0 error response - */ - public okhttp3.Call finalizeQueryAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call finalizeQueryAsync(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getEstResultSizes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -295,7 +306,7 @@ public okhttp3.Call finalizeQueryAsync(String namespace, String array, String ty 0 error response - */ - public okhttp3.Call getEstResultSizesCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEstResultSizesCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -312,8 +323,9 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String Object localVarPostBody = query; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/est_result_sizes" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/est_result_sizes" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -361,10 +373,15 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String } @SuppressWarnings("rawtypes") - private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getEstResultSizes(Async)"); + private okhttp3.Call getEstResultSizesValidateBeforeCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getEstResultSizes(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getEstResultSizes(Async)"); } // verify the required parameter 'array' is set @@ -387,14 +404,15 @@ private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, Strin throw new ApiException("Missing the required parameter 'query' when calling getEstResultSizes(Async)"); } - return getEstResultSizesCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + return getEstResultSizesCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -412,15 +430,16 @@ private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, Strin 0 error response - */ - public Query getEstResultSizes(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - ApiResponse localVarResp = getEstResultSizesWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + public Query getEstResultSizes(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + ApiResponse localVarResp = getEstResultSizesWithHttpInfo(workspace, teamspace, array, type, contentType, query, xPayer, openAt); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -438,8 +457,8 @@ public Query getEstResultSizes(String namespace, String array, String type, Stri 0 error response - */ - public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + public ApiResponse getEstResultSizesWithHttpInfo(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -447,7 +466,8 @@ public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -466,16 +486,17 @@ public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call getEstResultSizesAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEstResultSizesAsync(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getFile - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -490,7 +511,7 @@ public okhttp3.Call getEstResultSizesAsync(String namespace, String array, Strin 0 error response - */ - public okhttp3.Call getFileCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFileCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -507,8 +528,9 @@ public okhttp3.Call getFileCall(String namespace, String array, String contentTy Object localVarPostBody = null; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/get_file" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/get_file" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -545,10 +567,15 @@ public okhttp3.Call getFileCall(String namespace, String array, String contentTy } @SuppressWarnings("rawtypes") - private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getFile(Async)"); + private okhttp3.Call getFileValidateBeforeCall(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getFile(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling getFile(Async)"); } // verify the required parameter 'array' is set @@ -561,14 +588,15 @@ private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, S throw new ApiException("Missing the required parameter 'contentType' when calling getFile(Async)"); } - return getFileCall(namespace, array, contentType, xPayer, _callback); + return getFileCall(workspace, teamspace, array, contentType, xPayer, _callback); } /** * * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -582,15 +610,16 @@ private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, S 0 error response - */ - public File getFile(String namespace, String array, String contentType, String xPayer) throws ApiException { - ApiResponse localVarResp = getFileWithHttpInfo(namespace, array, contentType, xPayer); + public File getFile(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getFileWithHttpInfo(workspace, teamspace, array, contentType, xPayer); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -604,8 +633,8 @@ public File getFile(String namespace, String array, String contentType, String x 0 error response - */ - public ApiResponse getFileWithHttpInfo(String namespace, String array, String contentType, String xPayer) throws ApiException { - okhttp3.Call localVarCall = getFileValidateBeforeCall(namespace, array, contentType, xPayer, null); + public ApiResponse getFileWithHttpInfo(String workspace, String teamspace, String array, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getFileValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -613,7 +642,8 @@ public ApiResponse getFileWithHttpInfo(String namespace, String array, Str /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project, returns file bytes - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -628,16 +658,17 @@ public ApiResponse getFileWithHttpInfo(String namespace, String array, Str 0 error response - */ - public okhttp3.Call getFileAsync(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFileAsync(String workspace, String teamspace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFileValidateBeforeCall(namespace, array, contentType, xPayer, _callback); + okhttp3.Call localVarCall = getFileValidateBeforeCall(workspace, teamspace, array, contentType, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitQuery - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -656,7 +687,7 @@ public okhttp3.Call getFileAsync(String namespace, String array, String contentT 0 error response - */ - public okhttp3.Call submitQueryCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,8 +704,9 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, Object localVarPostBody = query; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/submit" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -722,10 +754,15 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, } @SuppressWarnings("rawtypes") - private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitQuery(Async)"); + private okhttp3.Call submitQueryValidateBeforeCall(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitQuery(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling submitQuery(Async)"); } // verify the required parameter 'array' is set @@ -748,14 +785,15 @@ private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String arra throw new ApiException("Missing the required parameter 'query' when calling submitQuery(Async)"); } - return submitQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + return submitQueryCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -773,15 +811,16 @@ private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String arra 0 error response - */ - public Query submitQuery(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - ApiResponse localVarResp = submitQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + public Query submitQuery(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + ApiResponse localVarResp = submitQueryWithHttpInfo(workspace, teamspace, array, type, contentType, query, xPayer, openAt); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -799,8 +838,8 @@ public Query submitQuery(String namespace, String array, String type, String con 0 error response - */ - public ApiResponse submitQueryWithHttpInfo(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { - okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + public ApiResponse submitQueryWithHttpInfo(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt) throws ApiException { + okhttp3.Call localVarCall = submitQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -808,7 +847,8 @@ public ApiResponse submitQueryWithHttpInfo(String namespace, String array /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param type type of query (required) * @param contentType Content Type of input and return mime (required) @@ -827,16 +867,17 @@ public ApiResponse submitQueryWithHttpInfo(String namespace, String array 0 error response - */ - public okhttp3.Call submitQueryAsync(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryAsync(String workspace, String teamspace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + okhttp3.Call localVarCall = submitQueryValidateBeforeCall(workspace, teamspace, array, type, contentType, query, xPayer, openAt, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitQueryJson - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -852,7 +893,7 @@ public okhttp3.Call submitQueryAsync(String namespace, String array, String type 0 error response - */ - public okhttp3.Call submitQueryJsonCall(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryJsonCall(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -869,8 +910,9 @@ public okhttp3.Call submitQueryJsonCall(String namespace, String array, String c Object localVarPostBody = queryJson; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/query/submit_query_json" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/query/submit_query_json" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -908,10 +950,15 @@ public okhttp3.Call submitQueryJsonCall(String namespace, String array, String c } @SuppressWarnings("rawtypes") - private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitQueryJson(Async)"); + private okhttp3.Call submitQueryJsonValidateBeforeCall(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitQueryJson(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling submitQueryJson(Async)"); } // verify the required parameter 'array' is set @@ -929,14 +976,15 @@ private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'queryJson' when calling submitQueryJson(Async)"); } - return submitQueryJsonCall(namespace, array, contentType, queryJson, xPayer, _callback); + return submitQueryJsonCall(workspace, teamspace, array, contentType, queryJson, xPayer, _callback); } /** * * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -951,15 +999,16 @@ private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String 0 error response - */ - public Object submitQueryJson(String namespace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { - ApiResponse localVarResp = submitQueryJsonWithHttpInfo(namespace, array, contentType, queryJson, xPayer); + public Object submitQueryJson(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { + ApiResponse localVarResp = submitQueryJsonWithHttpInfo(workspace, teamspace, array, contentType, queryJson, xPayer); return localVarResp.getData(); } /** * * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -974,8 +1023,8 @@ public Object submitQueryJson(String namespace, String array, String contentType 0 error response - */ - public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { - okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(namespace, array, contentType, queryJson, xPayer, null); + public ApiResponse submitQueryJsonWithHttpInfo(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer) throws ApiException { + okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(workspace, teamspace, array, contentType, queryJson, xPayer, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -983,7 +1032,8 @@ public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String /** * (asynchronously) * send a query to run against a specified array/URI registered to a group/project, returns JSON results - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param contentType Content Type of input and return mime (required) * @param queryJson query to run (required) @@ -999,9 +1049,9 @@ public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call submitQueryJsonAsync(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitQueryJsonAsync(String workspace, String teamspace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(namespace, array, contentType, queryJson, xPayer, _callback); + okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(workspace, teamspace, array, contentType, queryJson, xPayer, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java index d204743..d4f950f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for deleteRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -89,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRegisteredTaskGraphCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -106,8 +106,8 @@ public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -136,10 +136,10 @@ public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteRegisteredTaskGraph(Async)"); + private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteRegisteredTaskGraph(Async)"); } // verify the required parameter 'name' is set @@ -147,14 +147,14 @@ private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespac throw new ApiException("Missing the required parameter 'name' when calling deleteRegisteredTaskGraph(Async)"); } - return deleteRegisteredTaskGraphCall(namespace, name, _callback); + return deleteRegisteredTaskGraphCall(workspace, name, _callback); } /** * * Delete the given registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,14 +165,14 @@ private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespac 0 error response - */ - public void deleteRegisteredTaskGraph(String namespace, String name) throws ApiException { - deleteRegisteredTaskGraphWithHttpInfo(namespace, name); + public void deleteRegisteredTaskGraph(String workspace, String name) throws ApiException { + deleteRegisteredTaskGraphWithHttpInfo(workspace, name); } /** * * Delete the given registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -184,15 +184,15 @@ public void deleteRegisteredTaskGraph(String namespace, String name) throws ApiE 0 error response - */ - public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(namespace, name, null); + public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete the given registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -205,15 +205,15 @@ public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call deleteRegisteredTaskGraphAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRegisteredTaskGraphAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -226,7 +226,7 @@ public okhttp3.Call deleteRegisteredTaskGraphAsync(String namespace, String name 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -243,8 +243,8 @@ public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, fi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -273,10 +273,10 @@ public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getRegisteredTaskGraph(Async)"); + private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getRegisteredTaskGraph(Async)"); } // verify the required parameter 'name' is set @@ -284,14 +284,14 @@ private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'name' when calling getRegisteredTaskGraph(Async)"); } - return getRegisteredTaskGraphCall(namespace, name, _callback); + return getRegisteredTaskGraphCall(workspace, name, _callback); } /** * * Fetch the contents of this registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @return RegisteredTaskGraph * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -303,15 +303,15 @@ private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, 0 error response - */ - public RegisteredTaskGraph getRegisteredTaskGraph(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getRegisteredTaskGraphWithHttpInfo(namespace, name); + public RegisteredTaskGraph getRegisteredTaskGraph(String workspace, String name) throws ApiException { + ApiResponse localVarResp = getRegisteredTaskGraphWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Fetch the contents of this registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @return ApiResponse<RegisteredTaskGraph> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -323,8 +323,8 @@ public RegisteredTaskGraph getRegisteredTaskGraph(String namespace, String name) 0 error response - */ - public ApiResponse getRegisteredTaskGraphWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(namespace, name, null); + public ApiResponse getRegisteredTaskGraphWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -332,7 +332,7 @@ public ApiResponse getRegisteredTaskGraphWithHttpInfo(Strin /** * (asynchronously) * Fetch the contents of this registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -345,16 +345,16 @@ public ApiResponse getRegisteredTaskGraphWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getRegisteredTaskGraphSharingPolicies - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -368,7 +368,7 @@ public okhttp3.Call getRegisteredTaskGraphAsync(String namespace, String name, f 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -385,8 +385,8 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/registered/{name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -415,10 +415,10 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getRegisteredTaskGraphSharingPolicies(Async)"); + private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getRegisteredTaskGraphSharingPolicies(Async)"); } // verify the required parameter 'name' is set @@ -426,14 +426,14 @@ private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'name' when calling getRegisteredTaskGraphSharingPolicies(Async)"); } - return getRegisteredTaskGraphSharingPoliciesCall(namespace, name, _callback); + return getRegisteredTaskGraphSharingPoliciesCall(workspace, name, _callback); } /** * * Get sharing policies for the task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @return List<TaskGraphSharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -446,15 +446,15 @@ private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(Str 0 error response - */ - public List getRegisteredTaskGraphSharingPolicies(String namespace, String name) throws ApiException { - ApiResponse> localVarResp = getRegisteredTaskGraphSharingPoliciesWithHttpInfo(namespace, name); + public List getRegisteredTaskGraphSharingPolicies(String workspace, String name) throws ApiException { + ApiResponse> localVarResp = getRegisteredTaskGraphSharingPoliciesWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Get sharing policies for the task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @return ApiResponse<List<TaskGraphSharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -467,8 +467,8 @@ public List getRegisteredTaskGraphSharingPolicies(String names 0 error response - */ - public ApiResponse> getRegisteredTaskGraphSharingPoliciesWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(namespace, name, null); + public ApiResponse> getRegisteredTaskGraphSharingPoliciesWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -476,7 +476,7 @@ public ApiResponse> getRegisteredTaskGraphSharingPolicies /** * (asynchronously) * Get sharing policies for the task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -490,16 +490,16 @@ public ApiResponse> getRegisteredTaskGraphSharingPolicies 0 error response - */ - public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String namespace, String name, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String workspace, String name, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for registerRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @param _callback Callback for upload/download progress @@ -513,7 +513,7 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String namespace, 0 error response - */ - public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerRegisteredTaskGraphCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,8 +530,8 @@ public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String nam Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -561,10 +561,10 @@ public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerRegisteredTaskGraph(Async)"); + private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerRegisteredTaskGraph(Async)"); } // verify the required parameter 'name' is set @@ -572,14 +572,14 @@ private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namesp throw new ApiException("Missing the required parameter 'name' when calling registerRegisteredTaskGraph(Async)"); } - return registerRegisteredTaskGraphCall(namespace, name, graph, _callback); + return registerRegisteredTaskGraphCall(workspace, name, graph, _callback); } /** * * Register a task graph in the given namespace, with the given name. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -591,14 +591,14 @@ private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namesp 0 error response - */ - public void registerRegisteredTaskGraph(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - registerRegisteredTaskGraphWithHttpInfo(namespace, name, graph); + public void registerRegisteredTaskGraph(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + registerRegisteredTaskGraphWithHttpInfo(workspace, name, graph); } /** * * Register a task graph in the given namespace, with the given name. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @return ApiResponse<Void> @@ -611,15 +611,15 @@ public void registerRegisteredTaskGraph(String namespace, String name, Registere 0 error response - */ - public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, null); + public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Register a task graph in the given namespace, with the given name. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph Task graph to register. (optional) * @param _callback The callback to be executed when the API call finishes @@ -633,15 +633,15 @@ public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String namespac 0 error response - */ - public okhttp3.Call registerRegisteredTaskGraphAsync(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerRegisteredTaskGraphAsync(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, _callback); + okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareRegisteredTaskGraph - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -656,7 +656,7 @@ public okhttp3.Call registerRegisteredTaskGraphAsync(String namespace, String na 0 error response - */ - public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareRegisteredTaskGraphCall(String workspace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,8 +673,8 @@ public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, Object localVarPostBody = taskGraphSharing; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/registered/{name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -704,10 +704,10 @@ public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareRegisteredTaskGraph(Async)"); + private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String workspace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareRegisteredTaskGraph(Async)"); } // verify the required parameter 'name' is set @@ -720,14 +720,14 @@ private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace throw new ApiException("Missing the required parameter 'taskGraphSharing' when calling shareRegisteredTaskGraph(Async)"); } - return shareRegisteredTaskGraphCall(namespace, name, taskGraphSharing, _callback); + return shareRegisteredTaskGraphCall(workspace, name, taskGraphSharing, _callback); } /** * * Share a task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -740,14 +740,14 @@ private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace 0 error response - */ - public void shareRegisteredTaskGraph(String namespace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { - shareRegisteredTaskGraphWithHttpInfo(namespace, name, taskGraphSharing); + public void shareRegisteredTaskGraph(String workspace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { + shareRegisteredTaskGraphWithHttpInfo(workspace, name, taskGraphSharing); } /** * * Share a task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -761,15 +761,15 @@ public void shareRegisteredTaskGraph(String namespace, String name, TaskGraphSha 0 error response - */ - public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String namespace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { - okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(namespace, name, taskGraphSharing, null); + public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String workspace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { + okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(workspace, name, taskGraphSharing, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share a task graph. - * @param namespace The namespace that owns the registered task graph. (required) + * @param workspace The workspace that owns the registered task graph. (required) * @param name The name of the task graph. (required) * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -784,15 +784,15 @@ public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call shareRegisteredTaskGraphAsync(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareRegisteredTaskGraphAsync(String workspace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(namespace, name, taskGraphSharing, _callback); + okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(workspace, name, taskGraphSharing, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateRegisteredTaskGraph - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @param _callback Callback for upload/download progress @@ -806,7 +806,7 @@ public okhttp3.Call shareRegisteredTaskGraphAsync(String namespace, String name, 0 error response - */ - public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateRegisteredTaskGraphCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -823,8 +823,8 @@ public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/registered/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -854,10 +854,10 @@ public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateRegisteredTaskGraph(Async)"); + private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateRegisteredTaskGraph(Async)"); } // verify the required parameter 'name' is set @@ -865,14 +865,14 @@ private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespac throw new ApiException("Missing the required parameter 'name' when calling updateRegisteredTaskGraph(Async)"); } - return updateRegisteredTaskGraphCall(namespace, name, graph, _callback); + return updateRegisteredTaskGraphCall(workspace, name, graph, _callback); } /** * * Update the contents of an existing registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -884,14 +884,14 @@ private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespac 0 error response - */ - public void updateRegisteredTaskGraph(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - updateRegisteredTaskGraphWithHttpInfo(namespace, name, graph); + public void updateRegisteredTaskGraph(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + updateRegisteredTaskGraphWithHttpInfo(workspace, name, graph); } /** * * Update the contents of an existing registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @return ApiResponse<Void> @@ -904,15 +904,15 @@ public void updateRegisteredTaskGraph(String namespace, String name, RegisteredT 0 error response - */ - public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String namespace, String name, RegisteredTaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, null); + public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String workspace, String name, RegisteredTaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update the contents of an existing registered task graph. - * @param namespace The namespace that owns this registered UDF. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name The name of the registered task graph. (required) * @param graph The new contents of the task graph. (optional) * @param _callback The callback to be executed when the API call finishes @@ -926,9 +926,9 @@ public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String namespace, 0 error response - */ - public okhttp3.Call updateRegisteredTaskGraphAsync(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateRegisteredTaskGraphAsync(String workspace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, _callback); + okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(workspace, name, graph, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java index bcdd50a..a8b47e3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java @@ -75,7 +75,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for runSQL - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -90,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call runSQLCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -107,8 +108,9 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep Object localVarPostBody = sql; // create path and map variables - String localVarPath = "/sql/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/sql/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -141,10 +143,15 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep } @SuppressWarnings("rawtypes") - private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling runSQL(Async)"); + private okhttp3.Call runSQLValidateBeforeCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling runSQL(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling runSQL(Async)"); } // verify the required parameter 'sql' is set @@ -152,14 +159,15 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq throw new ApiException("Missing the required parameter 'sql' when calling runSQL(Async)"); } - return runSQLCall(namespace, sql, acceptEncoding, _callback); + return runSQLCall(workspace, teamspace, sql, acceptEncoding, _callback); } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @return List<Map<String, Object>> @@ -173,15 +181,16 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq 0 error response - */ - public List> runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse>> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + public List> runSQL(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse>> localVarResp = runSQLWithHttpInfo(workspace, teamspace, sql, acceptEncoding); return localVarResp.getData(); } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @return ApiResponse<List<Map<String, Object>>> @@ -195,8 +204,8 @@ public List> runSQL(String namespace, SQLParameters sql, Str 0 error response - */ - public ApiResponse>> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); + public ApiResponse>> runSQLWithHttpInfo(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, null); Type localVarReturnType = new TypeToken>>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -204,7 +213,8 @@ public ApiResponse>> runSQLWithHttpInfo(String namespac /** * (asynchronously) * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -219,54 +229,11 @@ public ApiResponse>> runSQLWithHttpInfo(String namespac 0 error response - */ - public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback>> _callback) throws ApiException { + public okhttp3.Call runSQLAsync(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback>> _callback) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, _callback); + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, _callback); Type localVarReturnType = new TypeToken>>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - - /** - * - * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) - * @param sql sql being submitted (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse with byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response -
- */ - public ApiResponse runSQLWithHttpInfoBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) - * @param sql sql being submitted (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response -
- */ - public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = runSQLWithHttpInfoBytes(namespace, sql, acceptEncoding); - return localVarResp.getData(); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java index f9fb203..9d8d43e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createTaskGraphLog - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -91,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphLogCall(String workspace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -108,8 +108,8 @@ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, f Object localVarPostBody = log; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/log" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/taskgraphs/{workspace}/log" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -138,10 +138,10 @@ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, f } @SuppressWarnings("rawtypes") - private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraphLog(Async)"); + private okhttp3.Call createTaskGraphLogValidateBeforeCall(String workspace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createTaskGraphLog(Async)"); } // verify the required parameter 'log' is set @@ -149,14 +149,14 @@ private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, Task throw new ApiException("Missing the required parameter 'log' when calling createTaskGraphLog(Async)"); } - return createTaskGraphLogCall(namespace, log, _callback); + return createTaskGraphLogCall(workspace, log, _callback); } /** * * Create a task graph log. - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -168,15 +168,15 @@ private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, Task 0 error response - */ - public TaskGraphLog createTaskGraphLog(String namespace, TaskGraphLog log) throws ApiException { - ApiResponse localVarResp = createTaskGraphLogWithHttpInfo(namespace, log); + public TaskGraphLog createTaskGraphLog(String workspace, TaskGraphLog log) throws ApiException { + ApiResponse localVarResp = createTaskGraphLogWithHttpInfo(workspace, log); return localVarResp.getData(); } /** * * Create a task graph log. - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -188,8 +188,8 @@ public TaskGraphLog createTaskGraphLog(String namespace, TaskGraphLog log) throw 0 error response - */ - public ApiResponse createTaskGraphLogWithHttpInfo(String namespace, TaskGraphLog log) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(namespace, log, null); + public ApiResponse createTaskGraphLogWithHttpInfo(String workspace, TaskGraphLog log) throws ApiException { + okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(workspace, log, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -197,7 +197,7 @@ public ApiResponse createTaskGraphLogWithHttpInfo(String namespace /** * (asynchronously) * Create a task graph log. - * @param namespace The namespace that will own this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param log (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -210,16 +210,16 @@ public ApiResponse createTaskGraphLogWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call createTaskGraphLogAsync(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphLogAsync(String workspace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(namespace, log, _callback); + okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(workspace, log, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTaskGraphLog - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -232,7 +232,7 @@ public okhttp3.Call createTaskGraphLogAsync(String namespace, TaskGraphLog log, 0 error response - */ - public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphLogCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -249,8 +249,8 @@ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/logs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/logs/{id}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -279,10 +279,10 @@ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraphLog(Async)"); + private okhttp3.Call getTaskGraphLogValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getTaskGraphLog(Async)"); } // verify the required parameter 'id' is set @@ -290,14 +290,14 @@ private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'id' when calling getTaskGraphLog(Async)"); } - return getTaskGraphLogCall(namespace, id, _callback); + return getTaskGraphLogCall(workspace, id, _callback); } /** * * Fetch information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -309,15 +309,15 @@ private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog getTaskGraphLog(String namespace, String id) throws ApiException { - ApiResponse localVarResp = getTaskGraphLogWithHttpInfo(namespace, id); + public TaskGraphLog getTaskGraphLog(String workspace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphLogWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Fetch information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -329,8 +329,8 @@ public TaskGraphLog getTaskGraphLog(String namespace, String id) throws ApiExcep 0 error response - */ - public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(namespace, id, null); + public ApiResponse getTaskGraphLogWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,7 +338,7 @@ public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, S /** * (asynchronously) * Fetch information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -351,9 +351,9 @@ public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call getTaskGraphLogAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphLogAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -545,7 +545,7 @@ public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, S } /** * Build call for reportClientNode - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @param _callback Callback for upload/download progress @@ -559,7 +559,7 @@ public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, S 0 error response - */ - public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + public okhttp3.Call reportClientNodeCall(String workspace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -576,8 +576,8 @@ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphC Object localVarPostBody = report; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/logs/{id}/report_client_node" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/logs/{id}/report_client_node" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -607,10 +607,10 @@ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphC } @SuppressWarnings("rawtypes") - private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling reportClientNode(Async)"); + private okhttp3.Call reportClientNodeValidateBeforeCall(String workspace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling reportClientNode(Async)"); } // verify the required parameter 'id' is set @@ -623,14 +623,14 @@ private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'report' when calling reportClientNode(Async)"); } - return reportClientNodeCall(namespace, id, report, _callback); + return reportClientNodeCall(workspace, id, report, _callback); } /** * * - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -642,14 +642,14 @@ private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String 0 error response - */ - public void reportClientNode(String namespace, String id, TaskGraphClientNodeStatus report) throws ApiException { - reportClientNodeWithHttpInfo(namespace, id, report); + public void reportClientNode(String workspace, String id, TaskGraphClientNodeStatus report) throws ApiException { + reportClientNodeWithHttpInfo(workspace, id, report); } /** * * - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @return ApiResponse<Void> @@ -662,15 +662,15 @@ public void reportClientNode(String namespace, String id, TaskGraphClientNodeSta 0 error response - */ - public ApiResponse reportClientNodeWithHttpInfo(String namespace, String id, TaskGraphClientNodeStatus report) throws ApiException { - okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(namespace, id, report, null); + public ApiResponse reportClientNodeWithHttpInfo(String workspace, String id, TaskGraphClientNodeStatus report) throws ApiException { + okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(workspace, id, report, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param report The node status to report. (required) * @param _callback The callback to be executed when the API call finishes @@ -684,15 +684,15 @@ public ApiResponse reportClientNodeWithHttpInfo(String namespace, String i 0 error response - */ - public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + public okhttp3.Call reportClientNodeAsync(String workspace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(namespace, id, report, _callback); + okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(workspace, id, report, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for resubmitTaskGraphExecution - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -705,7 +705,7 @@ public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraph 0 error response - */ - public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call resubmitTaskGraphExecutionCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -722,8 +722,8 @@ public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/executions/{id}/resubmit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/executions/{id}/resubmit" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -752,10 +752,10 @@ public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, } @SuppressWarnings("rawtypes") - private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling resubmitTaskGraphExecution(Async)"); + private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling resubmitTaskGraphExecution(Async)"); } // verify the required parameter 'id' is set @@ -763,14 +763,14 @@ private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'id' when calling resubmitTaskGraphExecution(Async)"); } - return resubmitTaskGraphExecutionCall(namespace, id, _callback); + return resubmitTaskGraphExecutionCall(workspace, id, _callback); } /** * * Resubmits a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -782,15 +782,15 @@ private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespa 0 error response - */ - public TaskGraphLog resubmitTaskGraphExecution(String namespace, String id) throws ApiException { - ApiResponse localVarResp = resubmitTaskGraphExecutionWithHttpInfo(namespace, id); + public TaskGraphLog resubmitTaskGraphExecution(String workspace, String id) throws ApiException { + ApiResponse localVarResp = resubmitTaskGraphExecutionWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Resubmits a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -802,8 +802,8 @@ public TaskGraphLog resubmitTaskGraphExecution(String namespace, String id) thro 0 error response - */ - public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, null); + public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -811,7 +811,7 @@ public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String n /** * (asynchronously) * Resubmits a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -824,16 +824,16 @@ public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String n 0 error response - */ - public okhttp3.Call resubmitTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call resubmitTaskGraphExecutionAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for retryTaskGraphExecution - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -846,7 +846,7 @@ public okhttp3.Call resubmitTaskGraphExecutionAsync(String namespace, String id, 0 error response - */ - public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call retryTaskGraphExecutionCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -863,8 +863,8 @@ public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, fin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/executions/{id}/retry" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/executions/{id}/retry" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -893,10 +893,10 @@ public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling retryTaskGraphExecution(Async)"); + private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling retryTaskGraphExecution(Async)"); } // verify the required parameter 'id' is set @@ -904,14 +904,14 @@ private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'id' when calling retryTaskGraphExecution(Async)"); } - return retryTaskGraphExecutionCall(namespace, id, _callback); + return retryTaskGraphExecutionCall(workspace, id, _callback); } /** * * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -923,15 +923,15 @@ private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, 0 error response - */ - public TaskGraphLog retryTaskGraphExecution(String namespace, String id) throws ApiException { - ApiResponse localVarResp = retryTaskGraphExecutionWithHttpInfo(namespace, id); + public TaskGraphLog retryTaskGraphExecution(String workspace, String id) throws ApiException { + ApiResponse localVarResp = retryTaskGraphExecutionWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -943,8 +943,8 @@ public TaskGraphLog retryTaskGraphExecution(String namespace, String id) throws 0 error response - */ - public ApiResponse retryTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, null); + public ApiResponse retryTaskGraphExecutionWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -952,7 +952,7 @@ public ApiResponse retryTaskGraphExecutionWithHttpInfo(String name /** * (asynchronously) * Retries failed tasks of a task graph in the given namespace using the associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -965,16 +965,16 @@ public ApiResponse retryTaskGraphExecutionWithHttpInfo(String name 0 error response - */ - public okhttp3.Call retryTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call retryTaskGraphExecutionAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for stopTaskGraphExecution - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -987,7 +987,7 @@ public okhttp3.Call retryTaskGraphExecutionAsync(String namespace, String id, fi 0 error response - */ - public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call stopTaskGraphExecutionCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1004,8 +1004,8 @@ public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, fina Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/executions/{id}/stop" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/executions/{id}/stop" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -1034,10 +1034,10 @@ public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling stopTaskGraphExecution(Async)"); + private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling stopTaskGraphExecution(Async)"); } // verify the required parameter 'id' is set @@ -1045,14 +1045,14 @@ private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'id' when calling stopTaskGraphExecution(Async)"); } - return stopTaskGraphExecutionCall(namespace, id, _callback); + return stopTaskGraphExecutionCall(workspace, id, _callback); } /** * * Stops a task graph execution in the given namespace using the associated associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1063,14 +1063,14 @@ private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, 0 error response - */ - public void stopTaskGraphExecution(String namespace, String id) throws ApiException { - stopTaskGraphExecutionWithHttpInfo(namespace, id); + public void stopTaskGraphExecution(String workspace, String id) throws ApiException { + stopTaskGraphExecutionWithHttpInfo(workspace, id); } /** * * Stops a task graph execution in the given namespace using the associated associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1082,15 +1082,15 @@ public void stopTaskGraphExecution(String namespace, String id) throws ApiExcept 0 error response - */ - public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, null); + public ApiResponse stopTaskGraphExecutionWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(workspace, id, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Stops a task graph execution in the given namespace using the associated associated execution id. - * @param namespace The namespace that owns this task graph execution. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph execution (TaskGraphLog). (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1103,16 +1103,17 @@ public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, St 0 error response - */ - public okhttp3.Call stopTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call stopTaskGraphExecutionAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(workspace, id, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for submitTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1124,7 +1125,7 @@ public okhttp3.Call stopTaskGraphExecutionAsync(String namespace, String id, fin 0 error response - */ - public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1141,8 +1142,8 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}/submit" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -1151,6 +1152,10 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (rootTaskGraphUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootTaskGraphUuid)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1171,10 +1176,10 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitTaskGraph(Async)"); + private okhttp3.Call submitTaskGraphValidateBeforeCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitTaskGraph(Async)"); } // verify the required parameter 'id' is set @@ -1182,15 +1187,16 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); } - return submitTaskGraphCall(namespace, id, _callback); + return submitTaskGraphCall(workspace, id, rootTaskGraphUuid, _callback); } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1201,16 +1207,17 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiException { - ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id); + public TaskGraphLog submitTaskGraph(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(workspace, id, rootTaskGraphUuid); return localVarResp.getData(); } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1221,8 +1228,8 @@ public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiExcep 0 error response - */ - public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, null); + public ApiResponse submitTaskGraphWithHttpInfo(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1230,8 +1237,9 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S /** * (asynchronously) * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1243,16 +1251,16 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphAsync(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateTaskGraphLog - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @param _callback Callback for upload/download progress @@ -1266,7 +1274,7 @@ public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiC 0 error response - */ - public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphLogCall(String workspace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1283,8 +1291,8 @@ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGrap Object localVarPostBody = log; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/logs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/logs/{id}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -1314,10 +1322,10 @@ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGrap } @SuppressWarnings("rawtypes") - private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraphLog(Async)"); + private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String workspace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateTaskGraphLog(Async)"); } // verify the required parameter 'id' is set @@ -1330,14 +1338,14 @@ private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, Stri throw new ApiException("Missing the required parameter 'log' when calling updateTaskGraphLog(Async)"); } - return updateTaskGraphLogCall(namespace, id, log, _callback); + return updateTaskGraphLogCall(workspace, id, log, _callback); } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1349,14 +1357,14 @@ private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, Stri 0 error response - */ - public void updateTaskGraphLog(String namespace, String id, TaskGraphLog log) throws ApiException { - updateTaskGraphLogWithHttpInfo(namespace, id, log); + public void updateTaskGraphLog(String workspace, String id, TaskGraphLog log) throws ApiException { + updateTaskGraphLogWithHttpInfo(workspace, id, log); } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @return ApiResponse<Void> @@ -1369,15 +1377,15 @@ public void updateTaskGraphLog(String namespace, String id, TaskGraphLog log) th 0 error response - */ - public ApiResponse updateTaskGraphLogWithHttpInfo(String namespace, String id, TaskGraphLog log) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(namespace, id, log, null); + public ApiResponse updateTaskGraphLogWithHttpInfo(String workspace, String id, TaskGraphLog log) throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(workspace, id, log, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph log. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph log entry. (required) * @param log Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. (required) * @param _callback The callback to be executed when the API call finishes @@ -1391,9 +1399,9 @@ public ApiResponse updateTaskGraphLogWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call updateTaskGraphLogAsync(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphLogAsync(String workspace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(namespace, id, log, _callback); + okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(workspace, id, log, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java index d8cd4d8..5642af4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java @@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createTaskGraph - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -90,7 +90,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphCall(String workspace, TaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -107,8 +107,8 @@ public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -137,10 +137,10 @@ public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final } @SuppressWarnings("rawtypes") - private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraph(Async)"); + private okhttp3.Call createTaskGraphValidateBeforeCall(String workspace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling createTaskGraph(Async)"); } // verify the required parameter 'graph' is set @@ -148,14 +148,14 @@ private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGra throw new ApiException("Missing the required parameter 'graph' when calling createTaskGraph(Async)"); } - return createTaskGraphCall(namespace, graph, _callback); + return createTaskGraphCall(workspace, graph, _callback); } /** * * Create a single task graph for execution. - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @return TaskGraph * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -167,15 +167,15 @@ private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGra 0 error response - */ - public TaskGraph createTaskGraph(String namespace, TaskGraph graph) throws ApiException { - ApiResponse localVarResp = createTaskGraphWithHttpInfo(namespace, graph); + public TaskGraph createTaskGraph(String workspace, TaskGraph graph) throws ApiException { + ApiResponse localVarResp = createTaskGraphWithHttpInfo(workspace, graph); return localVarResp.getData(); } /** * * Create a single task graph for execution. - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @return ApiResponse<TaskGraph> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -187,8 +187,8 @@ public TaskGraph createTaskGraph(String namespace, TaskGraph graph) throws ApiEx 0 error response - */ - public ApiResponse createTaskGraphWithHttpInfo(String namespace, TaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, null); + public ApiResponse createTaskGraphWithHttpInfo(String workspace, TaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(workspace, graph, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -196,7 +196,7 @@ public ApiResponse createTaskGraphWithHttpInfo(String namespace, Task /** * (asynchronously) * Create a single task graph for execution. - * @param namespace Include graphs for this namespace. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param graph Create the task graph. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -209,16 +209,16 @@ public ApiResponse createTaskGraphWithHttpInfo(String namespace, Task 0 error response - */ - public okhttp3.Call createTaskGraphAsync(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createTaskGraphAsync(String workspace, TaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, _callback); + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(workspace, graph, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -231,7 +231,7 @@ public okhttp3.Call createTaskGraphAsync(String namespace, TaskGraph graph, fina 0 error response - */ - public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphCall(String workspace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -248,8 +248,8 @@ public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallb Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -278,10 +278,10 @@ public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallb } @SuppressWarnings("rawtypes") - private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraph(Async)"); + private okhttp3.Call getTaskGraphValidateBeforeCall(String workspace, String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getTaskGraph(Async)"); } // verify the required parameter 'id' is set @@ -289,14 +289,14 @@ private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, throw new ApiException("Missing the required parameter 'id' when calling getTaskGraph(Async)"); } - return getTaskGraphCall(namespace, id, _callback); + return getTaskGraphCall(workspace, id, _callback); } /** * * Fetch information about a single task graph. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @return TaskGraph * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -308,15 +308,15 @@ private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, 0 error response - */ - public TaskGraph getTaskGraph(String namespace, String id) throws ApiException { - ApiResponse localVarResp = getTaskGraphWithHttpInfo(namespace, id); + public TaskGraph getTaskGraph(String workspace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphWithHttpInfo(workspace, id); return localVarResp.getData(); } /** * * Fetch information about a single task graph. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @return ApiResponse<TaskGraph> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -328,8 +328,8 @@ public TaskGraph getTaskGraph(String namespace, String id) throws ApiException { 0 error response - */ - public ApiResponse getTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, null); + public ApiResponse getTaskGraphWithHttpInfo(String workspace, String id) throws ApiException { + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(workspace, id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -337,7 +337,7 @@ public ApiResponse getTaskGraphWithHttpInfo(String namespace, String /** * (asynchronously) * Fetch information about a single task graph. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -350,16 +350,16 @@ public ApiResponse getTaskGraphWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call getTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTaskGraphAsync(String workspace, String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(workspace, id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listTaskGraphs - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -371,7 +371,7 @@ public okhttp3.Call getTaskGraphAsync(String namespace, String id, final ApiCall 0 error response - */ - public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listTaskGraphsCall(String workspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -388,8 +388,8 @@ public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _call Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/taskgraphs/{workspace}/graphs" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -417,20 +417,20 @@ public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _call } @SuppressWarnings("rawtypes") - private okhttp3.Call listTaskGraphsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listTaskGraphs(Async)"); + private okhttp3.Call listTaskGraphsValidateBeforeCall(String workspace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling listTaskGraphs(Async)"); } - return listTaskGraphsCall(namespace, _callback); + return listTaskGraphsCall(workspace, _callback); } /** * * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @return TaskGraphs * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -441,15 +441,15 @@ private okhttp3.Call listTaskGraphsValidateBeforeCall(String namespace, final Ap 0 error response - */ - public TaskGraphs listTaskGraphs(String namespace) throws ApiException { - ApiResponse localVarResp = listTaskGraphsWithHttpInfo(namespace); + public TaskGraphs listTaskGraphs(String workspace) throws ApiException { + ApiResponse localVarResp = listTaskGraphsWithHttpInfo(workspace); return localVarResp.getData(); } /** * * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @return ApiResponse<TaskGraphs> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -460,8 +460,8 @@ public TaskGraphs listTaskGraphs(String namespace) throws ApiException { 0 error response - */ - public ApiResponse listTaskGraphsWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, null); + public ApiResponse listTaskGraphsWithHttpInfo(String workspace) throws ApiException { + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(workspace, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -469,7 +469,7 @@ public ApiResponse listTaskGraphsWithHttpInfo(String namespace) thro /** * (asynchronously) * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. - * @param namespace Namespace for graphs (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -481,17 +481,18 @@ public ApiResponse listTaskGraphsWithHttpInfo(String namespace) thro 0 error response - */ - public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listTaskGraphsAsync(String workspace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(workspace, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -503,7 +504,7 @@ public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback 0 error response - */ - public okhttp3.Call submitTaskGraphCall(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -520,8 +521,8 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, String root Object localVarPostBody = null; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}/submit" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -530,8 +531,8 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, String root Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (rootId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootId)); + if (rootTaskGraphUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootTaskGraphUuid)); } final String[] localVarAccepts = { @@ -554,10 +555,10 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, String root } @SuppressWarnings("rawtypes") - private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitTaskGraph(Async)"); + private okhttp3.Call submitTaskGraphValidateBeforeCall(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitTaskGraph(Async)"); } // verify the required parameter 'id' is set @@ -565,15 +566,16 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); } - return submitTaskGraphCall(namespace, id, rootId, _callback); + return submitTaskGraphCall(workspace, id, rootTaskGraphUuid, _callback); } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return TaskGraphLog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -584,16 +586,17 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog submitTaskGraph(String namespace, String id, String rootId) throws ApiException { - ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id, rootId); + public TaskGraphLog submitTaskGraph(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(workspace, id, rootTaskGraphUuid); return localVarResp.getData(); } /** * * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @return ApiResponse<TaskGraphLog> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -604,8 +607,8 @@ public TaskGraphLog submitTaskGraph(String namespace, String id, String rootId) 0 error response - */ - public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id, String rootId) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootId, null); + public ApiResponse submitTaskGraphWithHttpInfo(String workspace, String id, String rootTaskGraphUuid) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -613,8 +616,9 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S /** * (asynchronously) * Submit a single task graph for execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -626,16 +630,16 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call submitTaskGraphAsync(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphAsync(String workspace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootId, _callback); + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(workspace, id, rootTaskGraphUuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateTaskGraph - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @param _callback Callback for upload/download progress @@ -649,7 +653,7 @@ public okhttp3.Call submitTaskGraphAsync(String namespace, String id, String roo 0 error response - */ - public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphCall(String workspace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -666,8 +670,8 @@ public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph g Object localVarPostBody = graph; // create path and map variables - String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/taskgraphs/{workspace}/graphs/{id}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -697,10 +701,10 @@ public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph g } @SuppressWarnings("rawtypes") - private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraph(Async)"); + private okhttp3.Call updateTaskGraphValidateBeforeCall(String workspace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateTaskGraph(Async)"); } // verify the required parameter 'id' is set @@ -713,14 +717,14 @@ private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'graph' when calling updateTaskGraph(Async)"); } - return updateTaskGraphCall(namespace, id, graph, _callback); + return updateTaskGraphCall(workspace, id, graph, _callback); } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -732,14 +736,14 @@ private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public void updateTaskGraph(String namespace, String id, TaskGraph graph) throws ApiException { - updateTaskGraphWithHttpInfo(namespace, id, graph); + public void updateTaskGraph(String workspace, String id, TaskGraph graph) throws ApiException { + updateTaskGraphWithHttpInfo(workspace, id, graph); } /** * * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @return ApiResponse<Void> @@ -752,15 +756,15 @@ public void updateTaskGraph(String namespace, String id, TaskGraph graph) throws 0 error response - */ - public ApiResponse updateTaskGraphWithHttpInfo(String namespace, String id, TaskGraph graph) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, null); + public ApiResponse updateTaskGraphWithHttpInfo(String workspace, String id, TaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(workspace, id, graph, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update information about a single task graph execution. - * @param namespace The namespace that owns this task graph. (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param id The UUID of the task graph entry. (required) * @param graph Updates to make to the task graph. (required) * @param _callback The callback to be executed when the API call finishes @@ -774,9 +778,9 @@ public ApiResponse updateTaskGraphWithHttpInfo(String namespace, String id 0 error response - */ - public okhttp3.Call updateTaskGraphAsync(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateTaskGraphAsync(String workspace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, _callback); + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(workspace, id, graph, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java index 078670c..3b9c052 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java @@ -77,7 +77,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for runSQL - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -92,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call runSQLCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -109,8 +110,9 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep Object localVarPostBody = sql; // create path and map variables - String localVarPath = "/sql/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/sql/{workspace}/{teamspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -143,10 +145,15 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep } @SuppressWarnings("rawtypes") - private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling runSQL(Async)"); + private okhttp3.Call runSQLValidateBeforeCall(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling runSQL(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling runSQL(Async)"); } // verify the required parameter 'sql' is set @@ -154,14 +161,15 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq throw new ApiException("Missing the required parameter 'sql' when calling runSQL(Async)"); } - return runSQLCall(namespace, sql, acceptEncoding, _callback); + return runSQLCall(workspace, teamspace, sql, acceptEncoding, _callback); } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @return List<Map<String, Object>> @@ -175,15 +183,16 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq 0 error response - */ - public List> runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse>> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + public List> runSQL(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse>> localVarResp = runSQLWithHttpInfo(workspace, teamspace, sql, acceptEncoding); return localVarResp.getData(); } /** * * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @return ApiResponse<List<Map<String, Object>>> @@ -197,8 +206,8 @@ public List> runSQL(String namespace, SQLParameters sql, Str 0 error response - */ - public ApiResponse>> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); + public ApiResponse>> runSQLWithHttpInfo(String workspace, String teamspace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, null); Type localVarReturnType = new TypeToken>>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -206,7 +215,8 @@ public ApiResponse>> runSQLWithHttpInfo(String namespac /** * (asynchronously) * Run a sql query - * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the sql query belongs to (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -221,9 +231,9 @@ public ApiResponse>> runSQLWithHttpInfo(String namespac 0 error response - */ - public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback>> _callback) throws ApiException { + public okhttp3.Call runSQLAsync(String workspace, String teamspace, SQLParameters sql, String acceptEncoding, final ApiCallback>> _callback) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, _callback); + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, teamspace, sql, acceptEncoding, _callback); Type localVarReturnType = new TypeToken>>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java index 4eb656b..4cd93e8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java @@ -83,7 +83,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for deleteUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -96,7 +96,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFInfoCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -113,8 +113,8 @@ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -143,10 +143,10 @@ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteUDFInfo(Async)"); + private okhttp3.Call deleteUDFInfoValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteUDFInfo(Async)"); } // verify the required parameter 'name' is set @@ -154,14 +154,14 @@ private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String na throw new ApiException("Missing the required parameter 'name' when calling deleteUDFInfo(Async)"); } - return deleteUDFInfoCall(namespace, name, _callback); + return deleteUDFInfoCall(workspace, name, _callback); } /** * * delete a registered UDF -- this will remove all sharing and can not be undone - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -172,14 +172,14 @@ private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String na 0 error response - */ - public void deleteUDFInfo(String namespace, String name) throws ApiException { - deleteUDFInfoWithHttpInfo(namespace, name); + public void deleteUDFInfo(String workspace, String name) throws ApiException { + deleteUDFInfoWithHttpInfo(workspace, name); } /** * * delete a registered UDF -- this will remove all sharing and can not be undone - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -191,15 +191,15 @@ public void deleteUDFInfo(String namespace, String name) throws ApiException { 0 error response - */ - public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, null); + public ApiResponse deleteUDFInfoWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(workspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a registered UDF -- this will remove all sharing and can not be undone - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -212,15 +212,15 @@ public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name 0 error response - */ - public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUDFInfoAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(workspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -234,7 +234,7 @@ public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiC 0 error response - */ - public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -251,8 +251,8 @@ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallb Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -281,10 +281,10 @@ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallb } @SuppressWarnings("rawtypes") - private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getUDFInfo(Async)"); + private okhttp3.Call getUDFInfoValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getUDFInfo(Async)"); } // verify the required parameter 'name' is set @@ -292,14 +292,14 @@ private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, throw new ApiException("Missing the required parameter 'name' when calling getUDFInfo(Async)"); } - return getUDFInfoCall(namespace, name, _callback); + return getUDFInfoCall(workspace, name, _callback); } /** * * get a specific UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @return UDFInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -312,15 +312,15 @@ private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, 0 error response - */ - public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getUDFInfoWithHttpInfo(namespace, name); + public UDFInfo getUDFInfo(String workspace, String name) throws ApiException { + ApiResponse localVarResp = getUDFInfoWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * get a specific UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @return ApiResponse<UDFInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -333,8 +333,8 @@ public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { 0 error response - */ - public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, null); + public ApiResponse getUDFInfoWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -342,7 +342,7 @@ public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name /** * (asynchronously) * get a specific UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -356,16 +356,16 @@ public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name 0 error response - */ - public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoAsync(String workspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUDFInfoSharingPolicies - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -379,7 +379,7 @@ public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCall 0 error response - */ - public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoSharingPoliciesCall(String workspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -396,8 +396,8 @@ public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -426,10 +426,10 @@ public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling getUDFInfoSharingPolicies(Async)"); + private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String workspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling getUDFInfoSharingPolicies(Async)"); } // verify the required parameter 'name' is set @@ -437,14 +437,14 @@ private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespac throw new ApiException("Missing the required parameter 'name' when calling getUDFInfoSharingPolicies(Async)"); } - return getUDFInfoSharingPoliciesCall(namespace, name, _callback); + return getUDFInfoSharingPoliciesCall(workspace, name, _callback); } /** * * Get all sharing details of the UDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @return List<UDFSharing> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -457,15 +457,15 @@ private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespac 0 error response - */ - public List getUDFInfoSharingPolicies(String namespace, String name) throws ApiException { - ApiResponse> localVarResp = getUDFInfoSharingPoliciesWithHttpInfo(namespace, name); + public List getUDFInfoSharingPolicies(String workspace, String name) throws ApiException { + ApiResponse> localVarResp = getUDFInfoSharingPoliciesWithHttpInfo(workspace, name); return localVarResp.getData(); } /** * * Get all sharing details of the UDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @return ApiResponse<List<UDFSharing>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -478,8 +478,8 @@ public List getUDFInfoSharingPolicies(String namespace, String name) 0 error response - */ - public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(namespace, name, null); + public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(String workspace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(workspace, name, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -487,7 +487,7 @@ public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(Strin /** * (asynchronously) * Get all sharing details of the UDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -501,16 +501,16 @@ public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(Strin 0 error response - */ - public okhttp3.Call getUDFInfoSharingPoliciesAsync(String namespace, String name, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getUDFInfoSharingPoliciesAsync(String workspace, String name, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(workspace, name, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for handleCopyUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -526,7 +526,7 @@ public okhttp3.Call getUDFInfoSharingPoliciesAsync(String namespace, String name 0 error response - */ - public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyUDFCall(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -543,8 +543,8 @@ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udF Object localVarPostBody = udFCopy; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}/copy" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}/copy" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -582,10 +582,10 @@ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udF } @SuppressWarnings("rawtypes") - private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling handleCopyUDF(Async)"); + private okhttp3.Call handleCopyUDFValidateBeforeCall(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling handleCopyUDF(Async)"); } // verify the required parameter 'name' is set @@ -598,14 +598,14 @@ private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String na throw new ApiException("Missing the required parameter 'udFCopy' when calling handleCopyUDF(Async)"); } - return handleCopyUDFCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + return handleCopyUDFCall(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); } /** * * Copy a tiledb udf at the specified location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -620,15 +620,15 @@ private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String na 0 error response - */ - public UDFCopied handleCopyUDF(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = handleCopyUDFWithHttpInfo(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + public UDFCopied handleCopyUDF(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = handleCopyUDFWithHttpInfo(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); return localVarResp.getData(); } /** * * Copy a tiledb udf at the specified location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -643,8 +643,8 @@ public UDFCopied handleCopyUDF(String namespace, String name, UDFCopy udFCopy, S 0 error response - */ - public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { - okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); + public ApiResponse handleCopyUDFWithHttpInfo(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -652,7 +652,7 @@ public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String /** * (asynchronously) * Copy a tiledb udf at the specified location - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udFCopy Input/Output information to copy a UDF (required) * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for creation (optional) @@ -668,16 +668,16 @@ public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String 0 error response - */ - public okhttp3.Call handleCopyUDFAsync(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + public okhttp3.Call handleCopyUDFAsync(String workspace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for registerUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @param _callback Callback for upload/download progress @@ -691,7 +691,7 @@ public okhttp3.Call handleCopyUDFAsync(String namespace, String name, UDFCopy ud 0 error response - */ - public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerUDFInfoCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -708,8 +708,8 @@ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUp Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -739,10 +739,10 @@ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUp } @SuppressWarnings("rawtypes") - private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling registerUDFInfo(Async)"); + private okhttp3.Call registerUDFInfoValidateBeforeCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling registerUDFInfo(Async)"); } // verify the required parameter 'name' is set @@ -755,14 +755,14 @@ private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'udf' when calling registerUDFInfo(Async)"); } - return registerUDFInfoCall(namespace, name, udf, _callback); + return registerUDFInfoCall(workspace, name, udf, _callback); } /** * * register a UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -774,14 +774,14 @@ private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String 0 error response - */ - public void registerUDFInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - registerUDFInfoWithHttpInfo(namespace, name, udf); + public void registerUDFInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + registerUDFInfoWithHttpInfo(workspace, name, udf); } /** * * register a UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @return ApiResponse<Void> @@ -794,15 +794,15 @@ public void registerUDFInfo(String namespace, String name, UDFInfoUpdate udf) th 0 error response - */ - public ApiResponse registerUDFInfoWithHttpInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(namespace, name, udf, null); + public ApiResponse registerUDFInfoWithHttpInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(workspace, name, udf, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * register a UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to register (required) * @param _callback The callback to be executed when the API call finishes @@ -816,15 +816,15 @@ public ApiResponse registerUDFInfoWithHttpInfo(String namespace, String na 0 error response - */ - public okhttp3.Call registerUDFInfoAsync(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call registerUDFInfoAsync(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(namespace, name, udf, _callback); + okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(workspace, name, udf, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for shareUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback Callback for upload/download progress @@ -839,7 +839,7 @@ public okhttp3.Call registerUDFInfoAsync(String namespace, String name, UDFInfoU 0 error response - */ - public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareUDFInfoCall(String workspace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -856,8 +856,8 @@ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing u Object localVarPostBody = udfSharing; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}/share" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}/share" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -887,10 +887,10 @@ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing u } @SuppressWarnings("rawtypes") - private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling shareUDFInfo(Async)"); + private okhttp3.Call shareUDFInfoValidateBeforeCall(String workspace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling shareUDFInfo(Async)"); } // verify the required parameter 'name' is set @@ -903,14 +903,14 @@ private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String nam throw new ApiException("Missing the required parameter 'udfSharing' when calling shareUDFInfo(Async)"); } - return shareUDFInfoCall(namespace, name, udfSharing, _callback); + return shareUDFInfoCall(workspace, name, udfSharing, _callback); } /** * * Share a UDF with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -923,14 +923,14 @@ private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String nam 0 error response - */ - public void shareUDFInfo(String namespace, String name, UDFSharing udfSharing) throws ApiException { - shareUDFInfoWithHttpInfo(namespace, name, udfSharing); + public void shareUDFInfo(String workspace, String name, UDFSharing udfSharing) throws ApiException { + shareUDFInfoWithHttpInfo(workspace, name, udfSharing); } /** * * Share a UDF with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @return ApiResponse<Void> @@ -944,15 +944,15 @@ public void shareUDFInfo(String namespace, String name, UDFSharing udfSharing) t 0 error response - */ - public ApiResponse shareUDFInfoWithHttpInfo(String namespace, String name, UDFSharing udfSharing) throws ApiException { - okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(namespace, name, udfSharing, null); + public ApiResponse shareUDFInfoWithHttpInfo(String workspace, String name, UDFSharing udfSharing) throws ApiException { + okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(workspace, name, udfSharing, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Share a UDF with a user - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name of UDFInfo (required) * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. (required) * @param _callback The callback to be executed when the API call finishes @@ -967,15 +967,15 @@ public ApiResponse shareUDFInfoWithHttpInfo(String namespace, String name, 0 error response - */ - public okhttp3.Call shareUDFInfoAsync(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + public okhttp3.Call shareUDFInfoAsync(String workspace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(namespace, name, udfSharing, _callback); + okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(workspace, name, udfSharing, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for submitGenericUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -989,7 +989,7 @@ public okhttp3.Call shareUDFInfoAsync(String namespace, String name, UDFSharing 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitGenericUDFCall(String workspace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1006,8 +1006,8 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udfs/generic/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/udfs/generic/{workspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1040,10 +1040,10 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitGenericUDF(Async)"); + private okhttp3.Call submitGenericUDFValidateBeforeCall(String workspace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitGenericUDF(Async)"); } // verify the required parameter 'udf' is set @@ -1051,14 +1051,14 @@ private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, Generi throw new ApiException("Missing the required parameter 'udf' when calling submitGenericUDF(Async)"); } - return submitGenericUDFCall(namespace, udf, acceptEncoding, _callback); + return submitGenericUDFCall(workspace, udf, acceptEncoding, _callback); } /** * * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return File @@ -1071,15 +1071,15 @@ private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, Generi 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public File submitGenericUDF(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfo(namespace, udf, acceptEncoding); + public File submitGenericUDF(String workspace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfo(workspace, 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 workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return ApiResponse<File> @@ -1092,8 +1092,8 @@ public File submitGenericUDF(String namespace, GenericUDF udf, String acceptEnco 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + public ApiResponse submitGenericUDFWithHttpInfo(String workspace, GenericUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(workspace, udf, acceptEncoding, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1101,7 +1101,7 @@ public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericU /** * (asynchronously) * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -1115,16 +1115,16 @@ public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericU 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitGenericUDFAsync(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitGenericUDFAsync(String workspace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, _callback); + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(workspace, udf, acceptEncoding, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitMultiArrayUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback Callback for upload/download progress @@ -1138,7 +1138,7 @@ public okhttp3.Call submitGenericUDFAsync(String namespace, GenericUDF udf, Stri 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitMultiArrayUDFCall(String workspace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1155,8 +1155,8 @@ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udfs/arrays/{namespace}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/udfs/arrays/{workspace}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1189,10 +1189,10 @@ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, } @SuppressWarnings("rawtypes") - private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitMultiArrayUDF(Async)"); + private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String workspace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitMultiArrayUDF(Async)"); } // verify the required parameter 'udf' is set @@ -1200,14 +1200,14 @@ private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, Mul throw new ApiException("Missing the required parameter 'udf' when calling submitMultiArrayUDF(Async)"); } - return submitMultiArrayUDFCall(namespace, udf, acceptEncoding, _callback); + return submitMultiArrayUDFCall(workspace, udf, acceptEncoding, _callback); } /** * * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return File @@ -1220,15 +1220,15 @@ private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, Mul 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public File submitMultiArrayUDF(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfo(namespace, udf, acceptEncoding); + public File submitMultiArrayUDF(String workspace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfo(workspace, 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 workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @return ApiResponse<File> @@ -1241,8 +1241,8 @@ public File submitMultiArrayUDF(String namespace, MultiArrayUDF udf, String acce 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + public ApiResponse submitMultiArrayUDFWithHttpInfo(String workspace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(workspace, udf, acceptEncoding, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1250,7 +1250,7 @@ public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, Multi /** * (asynchronously) * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) * @param _callback The callback to be executed when the API call finishes @@ -1264,16 +1264,17 @@ public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, Multi 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitMultiArrayUDFAsync(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitMultiArrayUDFAsync(String workspace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, _callback); + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(workspace, udf, acceptEncoding, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for submitUDF - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1290,7 +1291,7 @@ public okhttp3.Call submitMultiArrayUDFAsync(String namespace, MultiArrayUDF udf 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitUDFCall(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1307,8 +1308,9 @@ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/arrays/{namespace}/{array}/udf/submit" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/arrays/{workspace}/{teamspace}/{array}/udf/submit" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1350,10 +1352,15 @@ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF } @SuppressWarnings("rawtypes") - private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitUDF(Async)"); + private okhttp3.Call submitUDFValidateBeforeCall(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling submitUDF(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling submitUDF(Async)"); } // verify the required parameter 'array' is set @@ -1366,14 +1373,15 @@ private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, throw new ApiException("Missing the required parameter 'udf' when calling submitUDF(Async)"); } - return submitUDFCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); + return submitUDFCall(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2, _callback); } /** * * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1389,15 +1397,16 @@ private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public File submitUDF(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfo(namespace, array, udf, xPayer, acceptEncoding, v2); + public File submitUDF(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfo(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2); return localVarResp.getData(); } /** * * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1413,8 +1422,8 @@ public File submitUDF(String namespace, String array, MultiArrayUDF udf, String 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitUDFWithHttpInfo(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); + public ApiResponse submitUDFWithHttpInfo(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1422,7 +1431,8 @@ public ApiResponse submitUDFWithHttpInfo(String namespace, String array, M /** * (asynchronously) * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param udf UDF to run (required) * @param xPayer Name of organization or user who should be charged for this request (optional) @@ -1439,16 +1449,16 @@ public ApiResponse submitUDFWithHttpInfo(String namespace, String array, M 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public okhttp3.Call submitUDFAsync(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitUDFAsync(String workspace, String teamspace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for udfNamespaceArrayEndTimestampsGet - * @param namespace namespace array is in (an organization name or user's username) (required) + * Build call for udfWorkspaceArrayEndTimestampsGet + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1463,7 +1473,7 @@ public okhttp3.Call submitUDFAsync(String namespace, String array, MultiArrayUDF 0 error response - */ - public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call udfWorkspaceArrayEndTimestampsGetCall(String workspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1480,8 +1490,8 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/udf/{namespace}/{array}/end_timestamps" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{array}/end_timestamps" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); @@ -1518,25 +1528,25 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call udfNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling udfNamespaceArrayEndTimestampsGet(Async)"); + private okhttp3.Call udfWorkspaceArrayEndTimestampsGetValidateBeforeCall(String workspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling udfWorkspaceArrayEndTimestampsGet(Async)"); } // verify the required parameter 'array' is set if (array == null) { - throw new ApiException("Missing the required parameter 'array' when calling udfNamespaceArrayEndTimestampsGet(Async)"); + throw new ApiException("Missing the required parameter 'array' when calling udfWorkspaceArrayEndTimestampsGet(Async)"); } - return udfNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + return udfWorkspaceArrayEndTimestampsGetCall(workspace, array, page, perPage, _callback); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1550,15 +1560,15 @@ private okhttp3.Call udfNamespaceArrayEndTimestampsGetValidateBeforeCall(String 0 error response - */ - public ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(String namespace, String array, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = udfNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + public ArrayEndTimestampData udfWorkspaceArrayEndTimestampsGet(String workspace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = udfWorkspaceArrayEndTimestampsGetWithHttpInfo(workspace, array, page, perPage); return localVarResp.getData(); } /** * * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1572,8 +1582,8 @@ public ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(String namespace, 0 error response - */ - public ApiResponse udfNamespaceArrayEndTimestampsGetWithHttpInfo(String namespace, String array, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + public ApiResponse udfWorkspaceArrayEndTimestampsGetWithHttpInfo(String workspace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = udfWorkspaceArrayEndTimestampsGetValidateBeforeCall(workspace, array, page, perPage, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1581,7 +1591,7 @@ public ApiResponse udfNamespaceArrayEndTimestampsGetWithH /** * (asynchronously) * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param array name/uri of array that is url-encoded (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) @@ -1596,16 +1606,16 @@ public ApiResponse udfNamespaceArrayEndTimestampsGetWithH 0 error response - */ - public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call udfWorkspaceArrayEndTimestampsGetAsync(String workspace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + okhttp3.Call localVarCall = udfWorkspaceArrayEndTimestampsGetValidateBeforeCall(workspace, array, page, perPage, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateUDFInfo - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @param _callback Callback for upload/download progress @@ -1619,7 +1629,7 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync(String namespace, Str 0 error response - */ - public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUDFInfoCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1636,8 +1646,8 @@ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpda Object localVarPostBody = udf; // create path and map variables - String localVarPath = "/udf/{namespace}/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/udf/{workspace}/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1667,10 +1677,10 @@ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpda } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateUDFInfo(Async)"); + private okhttp3.Call updateUDFInfoValidateBeforeCall(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateUDFInfo(Async)"); } // verify the required parameter 'name' is set @@ -1683,14 +1693,14 @@ private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String na throw new ApiException("Missing the required parameter 'udf' when calling updateUDFInfo(Async)"); } - return updateUDFInfoCall(namespace, name, udf, _callback); + return updateUDFInfoCall(workspace, name, udf, _callback); } /** * * update an existing registered UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1702,14 +1712,14 @@ private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String na 0 error response - */ - public void updateUDFInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - updateUDFInfoWithHttpInfo(namespace, name, udf); + public void updateUDFInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + updateUDFInfoWithHttpInfo(workspace, name, udf); } /** * * update an existing registered UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @return ApiResponse<Void> @@ -1722,15 +1732,15 @@ public void updateUDFInfo(String namespace, String name, UDFInfoUpdate udf) thro 0 error response - */ - public ApiResponse updateUDFInfoWithHttpInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { - okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(namespace, name, udf, null); + public ApiResponse updateUDFInfoWithHttpInfo(String workspace, String name, UDFInfoUpdate udf) throws ApiException { + okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(workspace, name, udf, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update an existing registered UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) * @param name name to register UDF under (required) * @param udf UDF to update (required) * @param _callback The callback to be executed when the API call finishes @@ -1744,309 +1754,10 @@ public ApiResponse updateUDFInfoWithHttpInfo(String namespace, String name 0 error response - */ - public okhttp3.Call updateUDFInfoAsync(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUDFInfoAsync(String workspace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(namespace, name, udf, _callback); + okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(workspace, name, udf, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitGenericUDFString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitGenericUDFBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<byte[]> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return Object - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<Object> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitMultiArrayUDFWithHttpInfoString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a multi-array UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<byte[]> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitUDFString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoString(namespace, array, udf, xPayer, acceptEncoding, v2); - return localVarResp.getData(); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitUDFWithHttpInfoString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return byte[] - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitUDFBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoBytes(namespace, array, udf, xPayer, acceptEncoding, v2); - return localVarResp.getData(); - } - - /** - * - * send a UDF to run against a specified array/URI registered to a group/project - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param array name/uri of array that is url-encoded (required) - * @param udf UDF to run (required) - * @param xPayer Name of organization or user who should be charged for this request (optional) - * @param acceptEncoding Encoding to use (optional) - * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) - * @return ApiResponse<byte[]> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitUDFWithHttpInfoBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java index 829c985..fc844c5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java @@ -29,6 +29,7 @@ import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; import io.tiledb.cloud.rest_api.model.Error; +import java.time.OffsetDateTime; import io.tiledb.cloud.rest_api.model.OrganizationUser; import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; import io.tiledb.cloud.rest_api.model.Token; @@ -81,7 +82,8 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for addAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -94,7 +96,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -111,8 +113,9 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -141,10 +144,15 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede } @SuppressWarnings("rawtypes") - private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); + private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling addAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling addAWSAccessCredentials(Async)"); } // verify the required parameter 'awsAccessCredentials' is set @@ -152,14 +160,15 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); } - return addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); + return addAWSAccessCredentialsCall(workspace, teamspace, awsAccessCredentials, _callback); } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -170,14 +179,15 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, 0 error response - */ - public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); + public void addAWSAccessCredentials(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + addAWSAccessCredentialsWithHttpInfo(workspace, teamspace, awsAccessCredentials); } /** * * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -189,15 +199,16 @@ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAc 0 error response - */ - public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); + public ApiResponse addAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add aws keys - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -210,9 +221,9 @@ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, A 0 error response - */ - public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addAWSAccessCredentialsAsync(String workspace, String teamspace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -355,7 +366,8 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization } /** * Build call for checkAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -367,7 +379,7 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -384,8 +396,9 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/credentials/{workspace}/{teamspace}/aws" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -413,20 +426,26 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); + private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentials(Async)"); } - return checkAWSAccessCredentialsCall(namespace, _callback); + return checkAWSAccessCredentialsCall(workspace, teamspace, _callback); } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @return List<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -437,15 +456,16 @@ private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespac 0 error response - */ - public List checkAWSAccessCredentials(String namespace) throws ApiException { - ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); + public List checkAWSAccessCredentials(String workspace, String teamspace) throws ApiException { + ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(workspace, teamspace); return localVarResp.getData(); } /** * * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @return ApiResponse<List<AWSAccessCredentials>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -456,8 +476,8 @@ public List checkAWSAccessCredentials(String namespace) th 0 error response - */ - public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); + public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -465,7 +485,8 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp /** * (asynchronously) * Check if aws keys are set - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -477,16 +498,17 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsAsync(String workspace, String teamspace, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for checkAWSAccessCredentialsByName - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -499,7 +521,7 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -516,8 +538,9 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -546,10 +569,15 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); + private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling checkAWSAccessCredentialsByName(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling checkAWSAccessCredentialsByName(Async)"); } // verify the required parameter 'name' is set @@ -557,14 +585,15 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); } - return checkAWSAccessCredentialsByNameCall(namespace, name, _callback); + return checkAWSAccessCredentialsByNameCall(workspace, teamspace, name, _callback); } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @return AWSAccessCredentials * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -576,15 +605,16 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na 0 error response - */ - public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) throws ApiException { - ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); + public AWSAccessCredentials checkAWSAccessCredentialsByName(String workspace, String teamspace, String name) throws ApiException { + ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(workspace, teamspace, name); return localVarResp.getData(); } /** * * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @return ApiResponse<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -596,8 +626,8 @@ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, St 0 error response - */ - public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); + public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -605,7 +635,8 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp /** * (asynchronously) * Check if aws keys are set by name - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -618,9 +649,9 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp 0 error response - */ - public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(workspace, teamspace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -871,7 +902,8 @@ public okhttp3.Call createUserAsync(User user, final ApiCallback _callback } /** * Build call for deleteAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -884,7 +916,7 @@ public okhttp3.Call createUserAsync(User user, final ApiCallback _callback 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -901,8 +933,9 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -931,10 +964,15 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); + private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling deleteAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling deleteAWSAccessCredentials(Async)"); } // verify the required parameter 'name' is set @@ -942,14 +980,15 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); } - return deleteAWSAccessCredentialsCall(namespace, name, _callback); + return deleteAWSAccessCredentialsCall(workspace, teamspace, name, _callback); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -960,14 +999,15 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { - deleteAWSAccessCredentialsWithHttpInfo(namespace, name); + public void deleteAWSAccessCredentials(String workspace, String teamspace, String name) throws ApiException { + deleteAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -979,15 +1019,16 @@ public void deleteAWSAccessCredentials(String namespace, String name) throws Api 0 error response - */ - public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); + public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1000,9 +1041,9 @@ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAWSAccessCredentialsAsync(String workspace, String teamspace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -1418,6 +1459,7 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam /** * Build call for getSession * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1429,7 +1471,7 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam 0 error response - */ - public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSessionCall(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1458,6 +1500,10 @@ public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callbac localVarQueryParams.addAll(localVarApiClient.parameterToPair("remember_me", rememberMe)); } + if (expires != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("expires", expires)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1478,8 +1524,8 @@ public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callbac } @SuppressWarnings("rawtypes") - private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCallback _callback) throws ApiException { - return getSessionCall(rememberMe, _callback); + private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { + return getSessionCall(rememberMe, expires, _callback); } @@ -1487,6 +1533,7 @@ private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCa * * Get session token for user * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @return Token * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1497,8 +1544,8 @@ private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCa 0 error response - */ - public Token getSession(String rememberMe) throws ApiException { - ApiResponse localVarResp = getSessionWithHttpInfo(rememberMe); + public Token getSession(String rememberMe, OffsetDateTime expires) throws ApiException { + ApiResponse localVarResp = getSessionWithHttpInfo(rememberMe, expires); return localVarResp.getData(); } @@ -1506,6 +1553,7 @@ public Token getSession(String rememberMe) throws ApiException { * * Get session token for user * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @return ApiResponse<Token> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1516,8 +1564,8 @@ public Token getSession(String rememberMe) throws ApiException { 0 error response - */ - public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiException { - okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, null); + public ApiResponse getSessionWithHttpInfo(String rememberMe, OffsetDateTime expires) throws ApiException { + okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, expires, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1526,6 +1574,7 @@ public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiEx * (asynchronously) * Get session token for user * @param rememberMe flag to create a token with expiration of 30 days, default is false (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1537,9 +1586,9 @@ public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiEx 0 error response - */ - public okhttp3.Call getSessionAsync(String rememberMe, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSessionAsync(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, _callback); + okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, expires, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2549,7 +2598,8 @@ public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callba } /** * Build call for updateAWSAccessCredentials - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback Callback for upload/download progress @@ -2563,7 +2613,7 @@ public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callba 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2580,8 +2630,9 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name Object localVarPostBody = awsAccessCredentials; // create path and map variables - String localVarPath = "/credentials/{namespace}/aws/{name}" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + String localVarPath = "/credentials/{workspace}/{teamspace}/aws/{name}" + .replace("{" + "workspace" + "}", localVarApiClient.escapeString(workspace.toString())) + .replace("{" + "teamspace" + "}", localVarApiClient.escapeString(teamspace.toString())) .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2611,10 +2662,15 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); + private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workspace' is set + if (workspace == null) { + throw new ApiException("Missing the required parameter 'workspace' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'teamspace' is set + if (teamspace == null) { + throw new ApiException("Missing the required parameter 'teamspace' when calling updateAWSAccessCredentials(Async)"); } // verify the required parameter 'name' is set @@ -2627,14 +2683,15 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); } - return updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); + return updateAWSAccessCredentialsCall(workspace, teamspace, name, awsAccessCredentials, _callback); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2646,14 +2703,15 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa 0 error response - */ - public void updateAWSAccessCredentials(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); + public void updateAWSAccessCredentials(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + updateAWSAccessCredentialsWithHttpInfo(workspace, teamspace, name, awsAccessCredentials); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @return ApiResponse<Void> @@ -2666,15 +2724,16 @@ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessC 0 error response - */ - public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); + public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update aws keys or associated buckets. This will update the key associations for each array in the namespace - * @param namespace namespace (required) + * @param workspace the workspace containing the teamspace the array belongs to (required) + * @param teamspace the teamspace the credentials belongs to (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback The callback to be executed when the API call finishes @@ -2688,9 +2747,9 @@ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace 0 error response - */ - public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAWSAccessCredentialsAsync(String workspace, String teamspace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(workspace, teamspace, name, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java index e32026b..627b54c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java index 7ee8914..46f32ff 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java index be06af4..a103a4c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java index b826d7d..32dc3fb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java @@ -16,7 +16,7 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java index d50d3bc..40f121b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java @@ -55,6 +55,7 @@ public T execute(OAuthClientRequest request, Map response.body().string(), response.body().contentType().toString(), response.code(), + response.headers().toMultimap(), responseClass); } catch (IOException e) { throw new OAuthSystemException(e); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java index 42621e9..f09d23d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java @@ -52,7 +52,7 @@ /** * Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class AWSAccessCredentials { public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) @@ -241,50 +241,6 @@ public OffsetDateTime getUpdatedAt() { } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AWSAccessCredentials instance itself - */ - public AWSAccessCredentials putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -303,13 +259,12 @@ public boolean equals(Object o) { Objects.equals(this._default, awSAccessCredentials._default) && Objects.equals(this.buckets, awSAccessCredentials.buckets) && Objects.equals(this.createdAt, awSAccessCredentials.createdAt) && - Objects.equals(this.updatedAt, awSAccessCredentials.updatedAt)&& - Objects.equals(this.additionalProperties, awSAccessCredentials.additionalProperties); + Objects.equals(this.updatedAt, awSAccessCredentials.updatedAt); } @Override public int hashCode() { - return Objects.hash(secretAccessKey, accessKeyId, serviceRoleArn, name, _default, buckets, createdAt, updatedAt, additionalProperties); + return Objects.hash(secretAccessKey, accessKeyId, serviceRoleArn, name, _default, buckets, createdAt, updatedAt); } @Override @@ -324,7 +279,6 @@ public String toString() { sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -372,6 +326,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AWSAccessCredentials is not found in the empty JSON string", AWSAccessCredentials.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AWSAccessCredentials.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AWSAccessCredentials` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonNull()) && !jsonObj.get("secret_access_key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `secret_access_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret_access_key").toString())); @@ -406,28 +368,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AWSAccessCredentials value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -435,28 +375,7 @@ else if (entry.getValue() instanceof Character) public AWSAccessCredentials read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - AWSAccessCredentials instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java index 49769f1..7cb0532 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java index 8573205..e1a957a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java @@ -59,7 +59,9 @@ public enum ActivityEventType { READ_FRAGMENT_INFO("read_fragment_info"), - READ_ENUMERATIONS("read_enumerations"); + READ_ENUMERATIONS("read_enumerations"), + + NEXTFLOW("nextflow"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java index a9af199..984822f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java @@ -51,7 +51,7 @@ /** * Represents an open array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Array { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @SerializedName(SERIALIZED_NAME_TIMESTAMP) @@ -124,50 +124,6 @@ public void setUri(String uri) { this.uri = uri; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Array instance itself - */ - public Array putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -181,13 +137,12 @@ public boolean equals(Object o) { Array array = (Array) o; return Objects.equals(this.timestamp, array.timestamp) && Objects.equals(this.queryType, array.queryType) && - Objects.equals(this.uri, array.uri)&& - Objects.equals(this.additionalProperties, array.additionalProperties); + Objects.equals(this.uri, array.uri); } @Override public int hashCode() { - return Objects.hash(timestamp, queryType, uri, additionalProperties); + return Objects.hash(timestamp, queryType, uri); } @Override @@ -197,7 +152,6 @@ public String toString() { sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" queryType: ").append(toIndentedString(queryType)).append("\n"); sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -244,6 +198,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Array.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Array` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Array.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -273,28 +235,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Array value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -302,28 +242,7 @@ else if (entry.getValue() instanceof Character) public Array read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Array instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java index 098a6ee..66ad986 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java @@ -51,7 +51,7 @@ /** * Actvity of an Array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayActivityLog { public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; @SerializedName(SERIALIZED_NAME_EVENT_AT) @@ -262,50 +262,6 @@ public void setQueryStats(String queryStats) { this.queryStats = queryStats; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayActivityLog instance itself - */ - public ArrayActivityLog putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -325,13 +281,12 @@ public boolean equals(Object o) { Objects.equals(this.arrayTaskId, arrayActivityLog.arrayTaskId) && Objects.equals(this.id, arrayActivityLog.id) && Objects.equals(this.queryRanges, arrayActivityLog.queryRanges) && - Objects.equals(this.queryStats, arrayActivityLog.queryStats)&& - Objects.equals(this.additionalProperties, arrayActivityLog.additionalProperties); + Objects.equals(this.queryStats, arrayActivityLog.queryStats); } @Override public int hashCode() { - return Objects.hash(eventAt, action, username, bytesSent, bytesReceived, arrayTaskId, id, queryRanges, queryStats, additionalProperties); + return Objects.hash(eventAt, action, username, bytesSent, bytesReceived, arrayTaskId, id, queryRanges, queryStats); } @Override @@ -347,7 +302,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" queryRanges: ").append(toIndentedString(queryRanges)).append("\n"); sb.append(" queryStats: ").append(toIndentedString(queryStats)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -384,37 +338,6 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ArrayActivityLog - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); - } - if (jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); - } - } - /** * Validates the JSON Element and throws an exception if issues found * @@ -427,6 +350,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayActivityLog.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayActivityLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `action` if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { @@ -464,28 +395,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayActivityLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -493,28 +402,7 @@ else if (entry.getValue() instanceof Character) public ArrayActivityLog read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayActivityLog instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java index 6733bbc..0b4195e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java @@ -53,7 +53,7 @@ /** * Object including array info and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayBrowserData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayBrowserData instance itself - */ - public ArrayBrowserData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } ArrayBrowserData arrayBrowserData = (ArrayBrowserData) o; return Objects.equals(this.arrays, arrayBrowserData.arrays) && - Objects.equals(this.paginationMetadata, arrayBrowserData.paginationMetadata)&& - Objects.equals(this.additionalProperties, arrayBrowserData.additionalProperties); + Objects.equals(this.paginationMetadata, arrayBrowserData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(arrays, paginationMetadata, additionalProperties); + return Objects.hash(arrays, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class ArrayBrowserData {\n"); sb.append(" arrays: ").append(toIndentedString(arrays)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserData is not found in the empty JSON string", ArrayBrowserData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayBrowserData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayBrowserData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public ArrayBrowserData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayBrowserData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java index 2fe35b3..199d5c2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java @@ -51,7 +51,7 @@ /** * Object for ui array tasks browser page */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayBrowserSidebar { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -132,50 +132,6 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayBrowserSidebar instance itself - */ - public ArrayBrowserSidebar putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -189,13 +145,12 @@ public boolean equals(Object o) { ArrayBrowserSidebar arrayBrowserSidebar = (ArrayBrowserSidebar) o; return Objects.equals(this.namespaces, arrayBrowserSidebar.namespaces) && Objects.equals(this.resultCountForAll, arrayBrowserSidebar.resultCountForAll) && - Objects.equals(this.resultCountByNamespace, arrayBrowserSidebar.resultCountByNamespace)&& - Objects.equals(this.additionalProperties, arrayBrowserSidebar.additionalProperties); + Objects.equals(this.resultCountByNamespace, arrayBrowserSidebar.resultCountByNamespace); } @Override public int hashCode() { - return Objects.hash(namespaces, resultCountForAll, resultCountByNamespace, additionalProperties); + return Objects.hash(namespaces, resultCountForAll, resultCountByNamespace); } @Override @@ -205,7 +160,6 @@ public String toString() { sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); sb.append(" resultCountForAll: ").append(toIndentedString(resultCountForAll)).append("\n"); sb.append(" resultCountByNamespace: ").append(toIndentedString(resultCountByNamespace)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -248,6 +202,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserSidebar is not found in the empty JSON string", ArrayBrowserSidebar.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayBrowserSidebar.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayBrowserSidebar` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { @@ -270,28 +232,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -299,28 +239,7 @@ else if (entry.getValue() instanceof Character) public ArrayBrowserSidebar read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java index f492694..7325882 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java @@ -52,7 +52,7 @@ /** * Request to consolidate an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayConsolidationRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -110,50 +110,6 @@ public void setFragments(List fragments) { this.fragments = fragments; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayConsolidationRequest instance itself - */ - public ArrayConsolidationRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -166,13 +122,12 @@ public boolean equals(Object o) { } ArrayConsolidationRequest arrayConsolidationRequest = (ArrayConsolidationRequest) o; return Objects.equals(this.config, arrayConsolidationRequest.config) && - Objects.equals(this.fragments, arrayConsolidationRequest.fragments)&& - Objects.equals(this.additionalProperties, arrayConsolidationRequest.additionalProperties); + Objects.equals(this.fragments, arrayConsolidationRequest.fragments); } @Override public int hashCode() { - return Objects.hash(config, fragments, additionalProperties); + return Objects.hash(config, fragments); } @Override @@ -181,7 +136,6 @@ public String toString() { sb.append("class ArrayConsolidationRequest {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append(" fragments: ").append(toIndentedString(fragments)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,6 +177,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayConsolidationRequest is not found in the empty JSON string", ArrayConsolidationRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayConsolidationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayConsolidationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { @@ -249,28 +211,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayConsolidationRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -278,28 +218,7 @@ else if (entry.getValue() instanceof Character) public ArrayConsolidationRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayConsolidationRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java index de322f0..1cef671 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java @@ -52,7 +52,7 @@ /** * Object including array end_timestamps (list of Unix epoch timestamps in milliseconds) and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayEndTimestampData { public static final String SERIALIZED_NAME_END_TIMESTAMPS = "end_timestamps"; @SerializedName(SERIALIZED_NAME_END_TIMESTAMPS) @@ -110,50 +110,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayEndTimestampData instance itself - */ - public ArrayEndTimestampData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -166,13 +122,12 @@ public boolean equals(Object o) { } ArrayEndTimestampData arrayEndTimestampData = (ArrayEndTimestampData) o; return Objects.equals(this.endTimestamps, arrayEndTimestampData.endTimestamps) && - Objects.equals(this.paginationMetadata, arrayEndTimestampData.paginationMetadata)&& - Objects.equals(this.additionalProperties, arrayEndTimestampData.additionalProperties); + Objects.equals(this.paginationMetadata, arrayEndTimestampData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(endTimestamps, paginationMetadata, additionalProperties); + return Objects.hash(endTimestamps, paginationMetadata); } @Override @@ -181,7 +136,6 @@ public String toString() { sb.append("class ArrayEndTimestampData {\n"); sb.append(" endTimestamps: ").append(toIndentedString(endTimestamps)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,6 +177,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayEndTimestampData is not found in the empty JSON string", ArrayEndTimestampData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayEndTimestampData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayEndTimestampData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("end_timestamps") != null && !jsonObj.get("end_timestamps").isJsonNull() && !jsonObj.get("end_timestamps").isJsonArray()) { @@ -249,28 +211,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayEndTimestampData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -278,28 +218,7 @@ else if (entry.getValue() instanceof Character) public ArrayEndTimestampData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayEndTimestampData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java index 6074007..7ee0e2b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java @@ -49,7 +49,7 @@ /** * A user-favorite array item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayFavorite { public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) @@ -122,50 +122,6 @@ public void setName(String name) { this.name = name; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayFavorite instance itself - */ - public ArrayFavorite putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { ArrayFavorite arrayFavorite = (ArrayFavorite) o; return Objects.equals(this.arrayUuid, arrayFavorite.arrayUuid) && Objects.equals(this.namespace, arrayFavorite.namespace) && - Objects.equals(this.name, arrayFavorite.name)&& - Objects.equals(this.additionalProperties, arrayFavorite.additionalProperties); + Objects.equals(this.name, arrayFavorite.name); } @Override public int hashCode() { - return Objects.hash(arrayUuid, namespace, name, additionalProperties); + return Objects.hash(arrayUuid, namespace, name); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" arrayUuid: ").append(toIndentedString(arrayUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavorite is not found in the empty JSON string", ArrayFavorite.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayFavorite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayFavorite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonNull()) && !jsonObj.get("array_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_uuid").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public ArrayFavorite read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayFavorite instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java index d44a0d3..39baff5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java @@ -53,7 +53,7 @@ /** * Object including array favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayFavoritesData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayFavoritesData instance itself - */ - public ArrayFavoritesData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } ArrayFavoritesData arrayFavoritesData = (ArrayFavoritesData) o; return Objects.equals(this.arrays, arrayFavoritesData.arrays) && - Objects.equals(this.paginationMetadata, arrayFavoritesData.paginationMetadata)&& - Objects.equals(this.additionalProperties, arrayFavoritesData.additionalProperties); + Objects.equals(this.paginationMetadata, arrayFavoritesData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(arrays, paginationMetadata, additionalProperties); + return Objects.hash(arrays, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class ArrayFavoritesData {\n"); sb.append(" arrays: ").append(toIndentedString(arrays)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavoritesData is not found in the empty JSON string", ArrayFavoritesData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayFavoritesData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayFavoritesData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public ArrayFavoritesData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java index c5b0c45..a8f779c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java @@ -62,12 +62,16 @@ /** * metadata of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; + public static final String SERIALIZED_NAME_ASSET_ID = "asset_id"; + @SerializedName(SERIALIZED_NAME_ASSET_ID) + private String assetId; + public static final String SERIALIZED_NAME_FILE_TYPE = "file_type"; @SerializedName(SERIALIZED_NAME_FILE_TYPE) private FileType fileType; @@ -201,6 +205,25 @@ public void setId(String id) { } + public ArrayInfo assetId(String assetId) { + this.assetId = assetId; + return this; + } + + /** + * The asset id of the created array + * @return assetId + */ + @javax.annotation.Nullable + public String getAssetId() { + return assetId; + } + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public ArrayInfo fileType(FileType fileType) { this.fileType = fileType; return this; @@ -734,50 +757,6 @@ public void setMetadata(List metadata) { this.metadata = metadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayInfo instance itself - */ - public ArrayInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -790,6 +769,7 @@ public boolean equals(Object o) { } ArrayInfo arrayInfo = (ArrayInfo) o; return Objects.equals(this.id, arrayInfo.id) && + Objects.equals(this.assetId, arrayInfo.assetId) && Objects.equals(this.fileType, arrayInfo.fileType) && Objects.equals(this.fileProperties, arrayInfo.fileProperties) && Objects.equals(this.uri, arrayInfo.uri) && @@ -815,8 +795,7 @@ public boolean equals(Object o) { Objects.equals(this.isFavorite, arrayInfo.isFavorite) && Objects.equals(this.createdAt, arrayInfo.createdAt) && Objects.equals(this.createdBy, arrayInfo.createdBy) && - Objects.equals(this.metadata, arrayInfo.metadata)&& - Objects.equals(this.additionalProperties, arrayInfo.additionalProperties); + Objects.equals(this.metadata, arrayInfo.metadata); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -825,7 +804,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, fileType, fileProperties, uri, namespace, size, lastAccessed, description, name, allowedActions, pricing, subscriptions, logo, accessCredentialsName, type, shareCount, publicShare, namespaceSubscribed, tiledbUri, tags, licenseId, licenseText, readOnly, isFavorite, createdAt, createdBy, metadata, additionalProperties); + return Objects.hash(id, assetId, fileType, fileProperties, uri, namespace, size, lastAccessed, description, name, allowedActions, pricing, subscriptions, logo, accessCredentialsName, type, shareCount, publicShare, namespaceSubscribed, tiledbUri, tags, licenseId, licenseText, readOnly, isFavorite, createdAt, createdBy, metadata); } private static int hashCodeNullable(JsonNullable a) { @@ -840,6 +819,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArrayInfo {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); sb.append(" fileProperties: ").append(toIndentedString(fileProperties)).append("\n"); sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); @@ -866,7 +846,6 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -890,6 +869,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("id"); + openapiFields.add("asset_id"); openapiFields.add("file_type"); openapiFields.add("file_properties"); openapiFields.add("uri"); @@ -933,10 +913,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfo is not found in the empty JSON string", ArrayInfo.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } + if ((jsonObj.get("asset_id") != null && !jsonObj.get("asset_id").isJsonNull()) && !jsonObj.get("asset_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("asset_id").toString())); + } // validate the optional field `file_type` if (jsonObj.get("file_type") != null && !jsonObj.get("file_type").isJsonNull()) { FileType.validateJsonElement(jsonObj.get("file_type")); @@ -1042,28 +1033,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -1071,28 +1040,7 @@ else if (entry.getValue() instanceof Character) public ArrayInfo read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java index e730e88..64e9878 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java @@ -55,7 +55,7 @@ /** * metadata of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -328,50 +328,6 @@ public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayInfoUpdate instance itself - */ - public ArrayInfoUpdate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -393,8 +349,7 @@ public boolean equals(Object o) { Objects.equals(this.tags, arrayInfoUpdate.tags) && Objects.equals(this.licenseId, arrayInfoUpdate.licenseId) && Objects.equals(this.licenseText, arrayInfoUpdate.licenseText) && - Objects.equals(this.readOnly, arrayInfoUpdate.readOnly)&& - Objects.equals(this.additionalProperties, arrayInfoUpdate.additionalProperties); + Objects.equals(this.readOnly, arrayInfoUpdate.readOnly); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -403,7 +358,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(description, name, uri, fileType, fileProperties, accessCredentialsName, logo, tags, licenseId, licenseText, readOnly, additionalProperties); + return Objects.hash(description, name, uri, fileType, fileProperties, accessCredentialsName, logo, tags, licenseId, licenseText, readOnly); } private static int hashCodeNullable(JsonNullable a) { @@ -428,7 +383,6 @@ public String toString() { sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -479,6 +433,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfoUpdate is not found in the empty JSON string", ArrayInfoUpdate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayInfoUpdate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayInfoUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); @@ -526,28 +488,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -555,28 +495,7 @@ else if (entry.getValue() instanceof Character) public ArrayInfoUpdate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java index b3c286a..74cc434 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java @@ -52,7 +52,7 @@ /** * user's TileDB array metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayMetadata { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -87,50 +87,6 @@ public void setEntries(List entries) { this.entries = entries; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayMetadata instance itself - */ - public ArrayMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } ArrayMetadata arrayMetadata = (ArrayMetadata) o; - return Objects.equals(this.entries, arrayMetadata.entries)&& - Objects.equals(this.additionalProperties, arrayMetadata.additionalProperties); + return Objects.equals(this.entries, arrayMetadata.entries); } @Override public int hashCode() { - return Objects.hash(entries, additionalProperties); + return Objects.hash(entries); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArrayMetadata {\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadata is not found in the empty JSON string", ArrayMetadata.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public ArrayMetadata read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java index cc29788..9bb909d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java @@ -51,7 +51,7 @@ /** * key/value pair representing an array metadata map entry */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -178,50 +178,6 @@ public void setDel(Boolean del) { this.del = del; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayMetadataEntry instance itself - */ - public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -237,13 +193,12 @@ public boolean equals(Object o) { Objects.equals(this.type, arrayMetadataEntry.type) && Objects.equals(this.valueNum, arrayMetadataEntry.valueNum) && Objects.equals(this.value, arrayMetadataEntry.value) && - Objects.equals(this.del, arrayMetadataEntry.del)&& - Objects.equals(this.additionalProperties, arrayMetadataEntry.additionalProperties); + Objects.equals(this.del, arrayMetadataEntry.del); } @Override public int hashCode() { - return Objects.hash(key, type, valueNum, value, del, additionalProperties); + return Objects.hash(key, type, valueNum, value, del); } @Override @@ -255,7 +210,6 @@ public String toString() { sb.append(" valueNum: ").append(toIndentedString(valueNum)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" del: ").append(toIndentedString(del)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -300,6 +254,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadataEntry is not found in the empty JSON string", ArrayMetadataEntry.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayMetadataEntry.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayMetadataEntry` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); @@ -328,28 +290,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -357,28 +297,7 @@ else if (entry.getValue() instanceof Character) public ArrayMetadataEntry read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayMetadataEntry instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java index 800642c..30ec798 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java @@ -49,7 +49,7 @@ /** * Sample data from array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArraySample { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -76,50 +76,6 @@ public void setData(Object data) { this.data = data; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArraySample instance itself - */ - public ArraySample putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -131,13 +87,12 @@ public boolean equals(Object o) { return false; } ArraySample arraySample = (ArraySample) o; - return Objects.equals(this.data, arraySample.data)&& - Objects.equals(this.additionalProperties, arraySample.additionalProperties); + return Objects.equals(this.data, arraySample.data); } @Override public int hashCode() { - return Objects.hash(data, additionalProperties); + return Objects.hash(data); } @Override @@ -145,7 +100,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArraySample {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -186,6 +140,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySample is not found in the empty JSON string", ArraySample.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArraySample.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySample` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); } @@ -204,28 +166,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArraySample value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -233,28 +173,7 @@ else if (entry.getValue() instanceof Character) public ArraySample read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArraySample instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java index ce36e90..ec3224a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java @@ -56,7 +56,7 @@ /** * ArraySchema during creation or retrieval */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArraySchema { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -329,50 +329,6 @@ public void setAllowsDuplicates(Boolean allowsDuplicates) { this.allowsDuplicates = allowsDuplicates; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArraySchema instance itself - */ - public ArraySchema putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -394,13 +350,12 @@ public boolean equals(Object o) { Objects.equals(this.offsetFilterPipeline, arraySchema.offsetFilterPipeline) && Objects.equals(this.domain, arraySchema.domain) && Objects.equals(this.attributes, arraySchema.attributes) && - Objects.equals(this.allowsDuplicates, arraySchema.allowsDuplicates)&& - Objects.equals(this.additionalProperties, arraySchema.additionalProperties); + Objects.equals(this.allowsDuplicates, arraySchema.allowsDuplicates); } @Override public int hashCode() { - return Objects.hash(uri, version, arrayType, tileOrder, cellOrder, capacity, coordsFilterPipeline, offsetFilterPipeline, domain, attributes, allowsDuplicates, additionalProperties); + return Objects.hash(uri, version, arrayType, tileOrder, cellOrder, capacity, coordsFilterPipeline, offsetFilterPipeline, domain, attributes, allowsDuplicates); } @Override @@ -418,7 +373,6 @@ public String toString() { sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" allowsDuplicates: ").append(toIndentedString(allowsDuplicates)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -479,6 +433,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArraySchema.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySchema` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ArraySchema.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -534,28 +496,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArraySchema value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -563,28 +503,7 @@ else if (entry.getValue() instanceof Character) public ArraySchema read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArraySchema instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java index e6aad94..cc4e2a3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java @@ -52,7 +52,7 @@ /** * details for sharing a given array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArraySharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -133,50 +133,6 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArraySharing instance itself - */ - public ArraySharing putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -190,13 +146,12 @@ public boolean equals(Object o) { ArraySharing arraySharing = (ArraySharing) o; return Objects.equals(this.actions, arraySharing.actions) && Objects.equals(this.namespace, arraySharing.namespace) && - Objects.equals(this.namespaceType, arraySharing.namespaceType)&& - Objects.equals(this.additionalProperties, arraySharing.additionalProperties); + Objects.equals(this.namespaceType, arraySharing.namespaceType); } @Override public int hashCode() { - return Objects.hash(actions, namespace, namespaceType, additionalProperties); + return Objects.hash(actions, namespace, namespaceType); } @Override @@ -206,7 +161,6 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -249,6 +203,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySharing is not found in the empty JSON string", ArraySharing.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArraySharing.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySharing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { @@ -277,28 +239,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArraySharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -306,28 +246,7 @@ else if (entry.getValue() instanceof Character) public ArraySharing read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArraySharing instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java index a351330..df8cd92 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java @@ -61,7 +61,7 @@ /** * Synchronous Task to Run */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayTask { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -802,50 +802,6 @@ public void setCloudRegion(String cloudRegion) { this.cloudRegion = cloudRegion; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTask instance itself - */ - public ArrayTask putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -887,8 +843,7 @@ public boolean equals(Object o) { Objects.equals(this.taskGraphUuid, arrayTask.taskGraphUuid) && Objects.equals(this.clientNodeUuid, arrayTask.clientNodeUuid) && Objects.equals(this.cloudProvider, arrayTask.cloudProvider) && - Objects.equals(this.cloudRegion, arrayTask.cloudRegion)&& - Objects.equals(this.additionalProperties, arrayTask.additionalProperties); + Objects.equals(this.cloudRegion, arrayTask.cloudRegion); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -897,7 +852,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, name, username, description, arrayMetadata, subarray, memory, cpu, namespace, status, statusMessage, startTime, finishTime, cost, egressCost, accessCost, queryType, udfCode, udfLanguage, sqlQuery, type, activity, logs, duration, sqlInitCommands, sqlParameters, resultFormat, taskGraphUuid, clientNodeUuid, cloudProvider, cloudRegion, additionalProperties); + return Objects.hash(id, name, username, description, arrayMetadata, subarray, memory, cpu, namespace, status, statusMessage, startTime, finishTime, cost, egressCost, accessCost, queryType, udfCode, udfLanguage, sqlQuery, type, activity, logs, duration, sqlInitCommands, sqlParameters, resultFormat, taskGraphUuid, clientNodeUuid, cloudProvider, cloudRegion); } private static int hashCodeNullable(JsonNullable a) { @@ -942,7 +897,6 @@ public String toString() { sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1013,6 +967,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTask is not found in the empty JSON string", ArrayTask.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayTask.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTask` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -1119,28 +1081,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTask value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -1148,28 +1088,7 @@ else if (entry.getValue() instanceof Character) public ArrayTask read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayTask instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java index a05893f..5838f81 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java @@ -51,7 +51,7 @@ /** * Object for ui array tasks browser page */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayTaskBrowserSidebar { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) @@ -132,50 +132,6 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTaskBrowserSidebar instance itself - */ - public ArrayTaskBrowserSidebar putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -189,13 +145,12 @@ public boolean equals(Object o) { ArrayTaskBrowserSidebar arrayTaskBrowserSidebar = (ArrayTaskBrowserSidebar) o; return Objects.equals(this.organizations, arrayTaskBrowserSidebar.organizations) && Objects.equals(this.resultCountForAll, arrayTaskBrowserSidebar.resultCountForAll) && - Objects.equals(this.resultCountByNamespace, arrayTaskBrowserSidebar.resultCountByNamespace)&& - Objects.equals(this.additionalProperties, arrayTaskBrowserSidebar.additionalProperties); + Objects.equals(this.resultCountByNamespace, arrayTaskBrowserSidebar.resultCountByNamespace); } @Override public int hashCode() { - return Objects.hash(organizations, resultCountForAll, resultCountByNamespace, additionalProperties); + return Objects.hash(organizations, resultCountForAll, resultCountByNamespace); } @Override @@ -205,7 +160,6 @@ public String toString() { sb.append(" organizations: ").append(toIndentedString(organizations)).append("\n"); sb.append(" resultCountForAll: ").append(toIndentedString(resultCountForAll)).append("\n"); sb.append(" resultCountByNamespace: ").append(toIndentedString(resultCountByNamespace)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -248,6 +202,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskBrowserSidebar is not found in the empty JSON string", ArrayTaskBrowserSidebar.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayTaskBrowserSidebar.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTaskBrowserSidebar` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull() && !jsonObj.get("organizations").isJsonArray()) { @@ -270,28 +232,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTaskBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -299,28 +239,7 @@ else if (entry.getValue() instanceof Character) public ArrayTaskBrowserSidebar read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayTaskBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java index 08c3c17..2eeca0f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java @@ -53,7 +53,7 @@ /** * Object including array tasks and metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayTaskData { public static final String SERIALIZED_NAME_ARRAY_TASKS = "array_tasks"; @SerializedName(SERIALIZED_NAME_ARRAY_TASKS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTaskData instance itself - */ - public ArrayTaskData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } ArrayTaskData arrayTaskData = (ArrayTaskData) o; return Objects.equals(this.arrayTasks, arrayTaskData.arrayTasks) && - Objects.equals(this.paginationMetadata, arrayTaskData.paginationMetadata)&& - Objects.equals(this.additionalProperties, arrayTaskData.additionalProperties); + Objects.equals(this.paginationMetadata, arrayTaskData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(arrayTasks, paginationMetadata, additionalProperties); + return Objects.hash(arrayTasks, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class ArrayTaskData {\n"); sb.append(" arrayTasks: ").append(toIndentedString(arrayTasks)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskData is not found in the empty JSON string", ArrayTaskData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayTaskData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTaskData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("array_tasks") != null && !jsonObj.get("array_tasks").isJsonNull()) { JsonArray jsonArrayarrayTasks = jsonObj.getAsJsonArray("array_tasks"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTaskData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public ArrayTaskData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayTaskData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java index 5df8b37..52bb7a9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java @@ -49,7 +49,7 @@ /** * Array task stderr/stdout logs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayTaskLog { public static final String SERIALIZED_NAME_ARRAY_TASK_ID = "array_task_id"; @SerializedName(SERIALIZED_NAME_ARRAY_TASK_ID) @@ -99,50 +99,6 @@ public void setLogs(String logs) { this.logs = logs; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayTaskLog instance itself - */ - public ArrayTaskLog putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -155,13 +111,12 @@ public boolean equals(Object o) { } ArrayTaskLog arrayTaskLog = (ArrayTaskLog) o; return Objects.equals(this.arrayTaskId, arrayTaskLog.arrayTaskId) && - Objects.equals(this.logs, arrayTaskLog.logs)&& - Objects.equals(this.additionalProperties, arrayTaskLog.additionalProperties); + Objects.equals(this.logs, arrayTaskLog.logs); } @Override public int hashCode() { - return Objects.hash(arrayTaskId, logs, additionalProperties); + return Objects.hash(arrayTaskId, logs); } @Override @@ -170,7 +125,6 @@ public String toString() { sb.append("class ArrayTaskLog {\n"); sb.append(" arrayTaskId: ").append(toIndentedString(arrayTaskId)).append("\n"); sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -212,6 +166,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskLog is not found in the empty JSON string", ArrayTaskLog.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayTaskLog.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTaskLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonNull()) && !jsonObj.get("array_task_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); @@ -236,28 +198,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTaskLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -265,28 +205,7 @@ else if (entry.getValue() instanceof Character) public ArrayTaskLog read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayTaskLog instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java index 7edd44a..907bfe8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java @@ -50,7 +50,7 @@ /** * Request to consolidate an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ArrayVacuumRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -77,50 +77,6 @@ public void setConfig(TileDBConfig config) { this.config = config; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ArrayVacuumRequest instance itself - */ - public ArrayVacuumRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -132,13 +88,12 @@ public boolean equals(Object o) { return false; } ArrayVacuumRequest arrayVacuumRequest = (ArrayVacuumRequest) o; - return Objects.equals(this.config, arrayVacuumRequest.config)&& - Objects.equals(this.additionalProperties, arrayVacuumRequest.additionalProperties); + return Objects.equals(this.config, arrayVacuumRequest.config); } @Override public int hashCode() { - return Objects.hash(config, additionalProperties); + return Objects.hash(config); } @Override @@ -146,7 +101,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArrayVacuumRequest {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -187,6 +141,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayVacuumRequest is not found in the empty JSON string", ArrayVacuumRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ArrayVacuumRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayVacuumRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { @@ -209,28 +171,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayVacuumRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -238,28 +178,7 @@ else if (entry.getValue() instanceof Character) public ArrayVacuumRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ArrayVacuumRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java index 51c7a7b..e969768 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java @@ -54,7 +54,7 @@ /** * metadata of an asset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class AssetInfo { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -287,50 +287,6 @@ public void setMetadata(MetadataStringified metadata) { this.metadata = metadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AssetInfo instance itself - */ - public AssetInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -351,13 +307,12 @@ public boolean equals(Object o) { Objects.equals(this.name, assetInfo.name) && Objects.equals(this.mimeType, assetInfo.mimeType) && Objects.equals(this.createdAt, assetInfo.createdAt) && - Objects.equals(this.metadata, assetInfo.metadata)&& - Objects.equals(this.additionalProperties, assetInfo.additionalProperties); + Objects.equals(this.metadata, assetInfo.metadata); } @Override public int hashCode() { - return Objects.hash(uuid, assetType, assetBackingType, assetOwnershipLevel, namespaceName, namespaceUuid, name, mimeType, createdAt, metadata, additionalProperties); + return Objects.hash(uuid, assetType, assetBackingType, assetOwnershipLevel, namespaceName, namespaceUuid, name, mimeType, createdAt, metadata); } @Override @@ -374,7 +329,6 @@ public String toString() { sb.append(" mimeType: ").append(toIndentedString(mimeType)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -424,6 +378,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AssetInfo is not found in the empty JSON string", AssetInfo.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AssetInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AssetInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); @@ -473,28 +435,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AssetInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -502,28 +442,7 @@ else if (entry.getValue() instanceof Character) public AssetInfo read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - AssetInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java index c5716ce..7ca1266 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java @@ -53,7 +53,7 @@ /** * Asset associated with a TileDB Cloud account */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class AssetListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AssetListResponse instance itself - */ - public AssetListResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } AssetListResponse assetListResponse = (AssetListResponse) o; return Objects.equals(this.data, assetListResponse.data) && - Objects.equals(this.paginationMetadata, assetListResponse.paginationMetadata)&& - Objects.equals(this.additionalProperties, assetListResponse.additionalProperties); + Objects.equals(this.paginationMetadata, assetListResponse.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(data, paginationMetadata, additionalProperties); + return Objects.hash(data, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class AssetListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AssetListResponse is not found in the empty JSON string", AssetListResponse.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AssetListResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AssetListResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AssetListResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public AssetListResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - AssetListResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java index 605b027..6384efa 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java @@ -50,7 +50,7 @@ /** * Custom storage locations on a per–asset type basis. If any is unset, a suffix of the owning (user/organization) `default_s3_path` is used. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class AssetLocations { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -215,50 +215,6 @@ public void setUdfs(StorageLocation udfs) { this.udfs = udfs; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AssetLocations instance itself - */ - public AssetLocations putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -276,13 +232,12 @@ public boolean equals(Object o) { Objects.equals(this.mlModels, assetLocations.mlModels) && Objects.equals(this.notebooks, assetLocations.notebooks) && Objects.equals(this.taskGraphs, assetLocations.taskGraphs) && - Objects.equals(this.udfs, assetLocations.udfs)&& - Objects.equals(this.additionalProperties, assetLocations.additionalProperties); + Objects.equals(this.udfs, assetLocations.udfs); } @Override public int hashCode() { - return Objects.hash(arrays, files, groups, mlModels, notebooks, taskGraphs, udfs, additionalProperties); + return Objects.hash(arrays, files, groups, mlModels, notebooks, taskGraphs, udfs); } @Override @@ -296,7 +251,6 @@ public String toString() { sb.append(" notebooks: ").append(toIndentedString(notebooks)).append("\n"); sb.append(" taskGraphs: ").append(toIndentedString(taskGraphs)).append("\n"); sb.append(" udfs: ").append(toIndentedString(udfs)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -343,6 +297,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AssetLocations is not found in the empty JSON string", AssetLocations.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AssetLocations.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AssetLocations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `arrays` if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { @@ -389,28 +351,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AssetLocations value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -418,28 +358,7 @@ else if (entry.getValue() instanceof Character) public AssetLocations read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - AssetLocations instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java index e249794..06c78bd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java @@ -53,7 +53,7 @@ /** * Attribute of array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Attribute { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -203,50 +203,6 @@ public void setFillValue(List fillValue) { this.fillValue = fillValue; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Attribute instance itself - */ - public Attribute putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -263,13 +219,12 @@ public boolean equals(Object o) { Objects.equals(this.filterPipeline, attribute.filterPipeline) && Objects.equals(this.cellValNum, attribute.cellValNum) && Objects.equals(this.nullable, attribute.nullable) && - Objects.equals(this.fillValue, attribute.fillValue)&& - Objects.equals(this.additionalProperties, attribute.additionalProperties); + Objects.equals(this.fillValue, attribute.fillValue); } @Override public int hashCode() { - return Objects.hash(name, type, filterPipeline, cellValNum, nullable, fillValue, additionalProperties); + return Objects.hash(name, type, filterPipeline, cellValNum, nullable, fillValue); } @Override @@ -282,7 +237,6 @@ public String toString() { sb.append(" cellValNum: ").append(toIndentedString(cellValNum)).append("\n"); sb.append(" nullable: ").append(toIndentedString(nullable)).append("\n"); sb.append(" fillValue: ").append(toIndentedString(fillValue)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -333,6 +287,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Attribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Attribute.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -368,28 +330,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Attribute value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -397,28 +337,7 @@ else if (entry.getValue() instanceof Character) public Attribute read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Attribute instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java index 9925c98..974127a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java @@ -49,7 +49,7 @@ /** * Represents an attribute buffer header information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class AttributeBufferHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -122,50 +122,6 @@ public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AttributeBufferHeader instance itself - */ - public AttributeBufferHeader putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { AttributeBufferHeader attributeBufferHeader = (AttributeBufferHeader) o; return Objects.equals(this.name, attributeBufferHeader.name) && Objects.equals(this.fixedLenBufferSizeInBytes, attributeBufferHeader.fixedLenBufferSizeInBytes) && - Objects.equals(this.varLenBufferSizeInBytes, attributeBufferHeader.varLenBufferSizeInBytes)&& - Objects.equals(this.additionalProperties, attributeBufferHeader.additionalProperties); + Objects.equals(this.varLenBufferSizeInBytes, attributeBufferHeader.varLenBufferSizeInBytes); } @Override public int hashCode() { - return Objects.hash(name, fixedLenBufferSizeInBytes, varLenBufferSizeInBytes, additionalProperties); + return Objects.hash(name, fixedLenBufferSizeInBytes, varLenBufferSizeInBytes); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" fixedLenBufferSizeInBytes: ").append(toIndentedString(fixedLenBufferSizeInBytes)).append("\n"); sb.append(" varLenBufferSizeInBytes: ").append(toIndentedString(varLenBufferSizeInBytes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -242,6 +196,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeBufferHeader.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AttributeBufferHeader` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttributeBufferHeader.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -269,28 +231,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AttributeBufferHeader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -298,28 +238,7 @@ else if (entry.getValue() instanceof Character) public AttributeBufferHeader read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - AttributeBufferHeader instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java index 7e6a707..1d1601e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java @@ -49,7 +49,7 @@ /** * object representing buffer size of an attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class AttributeBufferSize { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -122,50 +122,6 @@ public void setDataBytes(Integer dataBytes) { this.dataBytes = dataBytes; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the AttributeBufferSize instance itself - */ - public AttributeBufferSize putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { AttributeBufferSize attributeBufferSize = (AttributeBufferSize) o; return Objects.equals(this.attribute, attributeBufferSize.attribute) && Objects.equals(this.offsetBytes, attributeBufferSize.offsetBytes) && - Objects.equals(this.dataBytes, attributeBufferSize.dataBytes)&& - Objects.equals(this.additionalProperties, attributeBufferSize.additionalProperties); + Objects.equals(this.dataBytes, attributeBufferSize.dataBytes); } @Override public int hashCode() { - return Objects.hash(attribute, offsetBytes, dataBytes, additionalProperties); + return Objects.hash(attribute, offsetBytes, dataBytes); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" attribute: ").append(toIndentedString(attribute)).append("\n"); sb.append(" offsetBytes: ").append(toIndentedString(offsetBytes)).append("\n"); sb.append(" dataBytes: ").append(toIndentedString(dataBytes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -242,6 +196,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeBufferSize.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AttributeBufferSize` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttributeBufferSize.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -269,28 +231,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AttributeBufferSize value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -298,28 +238,7 @@ else if (entry.getValue() instanceof Character) public AttributeBufferSize read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - AttributeBufferSize instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java index 6b8bfde..e5849c7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java @@ -49,7 +49,7 @@ /** * Backoff is a backoff strategy to use within retryStrategy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Backoff { public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) @@ -122,50 +122,6 @@ public void setMaxDuration(String maxDuration) { this.maxDuration = maxDuration; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Backoff instance itself - */ - public Backoff putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { Backoff backoff = (Backoff) o; return Objects.equals(this.duration, backoff.duration) && Objects.equals(this.factor, backoff.factor) && - Objects.equals(this.maxDuration, backoff.maxDuration)&& - Objects.equals(this.additionalProperties, backoff.additionalProperties); + Objects.equals(this.maxDuration, backoff.maxDuration); } @Override public int hashCode() { - return Objects.hash(duration, factor, maxDuration, additionalProperties); + return Objects.hash(duration, factor, maxDuration); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); sb.append(" factor: ").append(toIndentedString(factor)).append("\n"); sb.append(" maxDuration: ").append(toIndentedString(maxDuration)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Backoff is not found in the empty JSON string", Backoff.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Backoff.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Backoff` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); @@ -262,28 +224,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Backoff value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -291,28 +231,7 @@ else if (entry.getValue() instanceof Character) public Backoff read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Backoff instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java new file mode 100644 index 0000000..b2340bd --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java @@ -0,0 +1,257 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request body to change the credentials of the given assets + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ChangeAssetCredentialsRequest { + public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS = "access_credentials"; + @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS) + private String accessCredentials; + + public static final String SERIALIZED_NAME_ASSET_UUIDS = "asset_uuids"; + @SerializedName(SERIALIZED_NAME_ASSET_UUIDS) + private List assetUuids = new ArrayList<>(); + + public ChangeAssetCredentialsRequest() { + } + + public ChangeAssetCredentialsRequest accessCredentials(String accessCredentials) { + this.accessCredentials = accessCredentials; + return this; + } + + /** + * The name or uuid of the access credentials + * @return accessCredentials + */ + @javax.annotation.Nonnull + public String getAccessCredentials() { + return accessCredentials; + } + + public void setAccessCredentials(String accessCredentials) { + this.accessCredentials = accessCredentials; + } + + + public ChangeAssetCredentialsRequest assetUuids(List assetUuids) { + this.assetUuids = assetUuids; + return this; + } + + public ChangeAssetCredentialsRequest addAssetUuidsItem(String assetUuidsItem) { + if (this.assetUuids == null) { + this.assetUuids = new ArrayList<>(); + } + this.assetUuids.add(assetUuidsItem); + return this; + } + + /** + * The list of asset uuids to have their credentials changed + * @return assetUuids + */ + @javax.annotation.Nonnull + public List getAssetUuids() { + return assetUuids; + } + + public void setAssetUuids(List assetUuids) { + this.assetUuids = assetUuids; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChangeAssetCredentialsRequest changeAssetCredentialsRequest = (ChangeAssetCredentialsRequest) o; + return Objects.equals(this.accessCredentials, changeAssetCredentialsRequest.accessCredentials) && + Objects.equals(this.assetUuids, changeAssetCredentialsRequest.assetUuids); + } + + @Override + public int hashCode() { + return Objects.hash(accessCredentials, assetUuids); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeAssetCredentialsRequest {\n"); + sb.append(" accessCredentials: ").append(toIndentedString(accessCredentials)).append("\n"); + sb.append(" assetUuids: ").append(toIndentedString(assetUuids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("access_credentials"); + openapiFields.add("asset_uuids"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("access_credentials"); + openapiRequiredFields.add("asset_uuids"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ChangeAssetCredentialsRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ChangeAssetCredentialsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeAssetCredentialsRequest is not found in the empty JSON string", ChangeAssetCredentialsRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ChangeAssetCredentialsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ChangeAssetCredentialsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ChangeAssetCredentialsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("access_credentials").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `access_credentials` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials").toString())); + } + // ensure the required json array is present + if (jsonObj.get("asset_uuids") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("asset_uuids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("asset_uuids").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ChangeAssetCredentialsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeAssetCredentialsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChangeAssetCredentialsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ChangeAssetCredentialsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ChangeAssetCredentialsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ChangeAssetCredentialsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ChangeAssetCredentialsRequest + * @throws IOException if the JSON string is invalid with respect to ChangeAssetCredentialsRequest + */ + public static ChangeAssetCredentialsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeAssetCredentialsRequest.class); + } + + /** + * Convert an instance of ChangeAssetCredentialsRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java index 4f8347b..bce6948 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java @@ -53,7 +53,7 @@ /** * Dimension of array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Dimension { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -195,50 +195,6 @@ public void setFilterPipeline(FilterPipeline filterPipeline) { this.filterPipeline = filterPipeline; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Dimension instance itself - */ - public Dimension putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -255,13 +211,12 @@ public boolean equals(Object o) { Objects.equals(this.domain, dimension.domain) && Objects.equals(this.nullTileExtent, dimension.nullTileExtent) && Objects.equals(this.tileExtent, dimension.tileExtent) && - Objects.equals(this.filterPipeline, dimension.filterPipeline)&& - Objects.equals(this.additionalProperties, dimension.additionalProperties); + Objects.equals(this.filterPipeline, dimension.filterPipeline); } @Override public int hashCode() { - return Objects.hash(name, type, domain, nullTileExtent, tileExtent, filterPipeline, additionalProperties); + return Objects.hash(name, type, domain, nullTileExtent, tileExtent, filterPipeline); } @Override @@ -274,7 +229,6 @@ public String toString() { sb.append(" nullTileExtent: ").append(toIndentedString(nullTileExtent)).append("\n"); sb.append(" tileExtent: ").append(toIndentedString(tileExtent)).append("\n"); sb.append(" filterPipeline: ").append(toIndentedString(filterPipeline)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -324,6 +278,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Dimension.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Dimension` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Dimension.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -363,28 +325,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Dimension value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -392,28 +332,7 @@ else if (entry.getValue() instanceof Character) public Dimension read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Dimension instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java index 51f82f1..c473787 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java @@ -49,7 +49,7 @@ /** * A single, typed coordinate for a dimension */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DimensionCoordinate { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -283,50 +283,6 @@ public void setFloat64(Double float64) { this.float64 = float64; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DimensionCoordinate instance itself - */ - public DimensionCoordinate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -347,13 +303,12 @@ public boolean equals(Object o) { Objects.equals(this.int64, dimensionCoordinate.int64) && Objects.equals(this.uint64, dimensionCoordinate.uint64) && Objects.equals(this.float32, dimensionCoordinate.float32) && - Objects.equals(this.float64, dimensionCoordinate.float64)&& - Objects.equals(this.additionalProperties, dimensionCoordinate.additionalProperties); + Objects.equals(this.float64, dimensionCoordinate.float64); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); } @Override @@ -370,7 +325,6 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -420,6 +374,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionCoordinate is not found in the empty JSON string", DimensionCoordinate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DimensionCoordinate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DimensionCoordinate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); } @@ -438,28 +400,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DimensionCoordinate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -467,28 +407,7 @@ else if (entry.getValue() instanceof Character) public DimensionCoordinate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - DimensionCoordinate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java index f914e42..4875f99 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java @@ -49,7 +49,7 @@ /** * Extent of tile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DimensionTileExtent { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -283,50 +283,6 @@ public void setFloat64(Integer float64) { this.float64 = float64; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DimensionTileExtent instance itself - */ - public DimensionTileExtent putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -347,13 +303,12 @@ public boolean equals(Object o) { Objects.equals(this.int64, dimensionTileExtent.int64) && Objects.equals(this.uint64, dimensionTileExtent.uint64) && Objects.equals(this.float32, dimensionTileExtent.float32) && - Objects.equals(this.float64, dimensionTileExtent.float64)&& - Objects.equals(this.additionalProperties, dimensionTileExtent.additionalProperties); + Objects.equals(this.float64, dimensionTileExtent.float64); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); } @Override @@ -370,7 +325,6 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -420,6 +374,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionTileExtent is not found in the empty JSON string", DimensionTileExtent.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DimensionTileExtent.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DimensionTileExtent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); } @@ -438,28 +400,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DimensionTileExtent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -467,28 +407,7 @@ else if (entry.getValue() instanceof Character) public DimensionTileExtent read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - DimensionTileExtent instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java index 63e86c9..6e7c4bb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java @@ -54,7 +54,7 @@ /** * Domain of array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Domain { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -158,50 +158,6 @@ public void setDimensions(List dimensions) { this.dimensions = dimensions; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Domain instance itself - */ - public Domain putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -216,13 +172,12 @@ public boolean equals(Object o) { return Objects.equals(this.type, domain.type) && Objects.equals(this.tileOrder, domain.tileOrder) && Objects.equals(this.cellOrder, domain.cellOrder) && - Objects.equals(this.dimensions, domain.dimensions)&& - Objects.equals(this.additionalProperties, domain.additionalProperties); + Objects.equals(this.dimensions, domain.dimensions); } @Override public int hashCode() { - return Objects.hash(type, tileOrder, cellOrder, dimensions, additionalProperties); + return Objects.hash(type, tileOrder, cellOrder, dimensions); } @Override @@ -233,7 +188,6 @@ public String toString() { sb.append(" tileOrder: ").append(toIndentedString(tileOrder)).append("\n"); sb.append(" cellOrder: ").append(toIndentedString(cellOrder)).append("\n"); sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -282,6 +236,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Domain.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Domain` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Domain.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -322,28 +284,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Domain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -351,28 +291,7 @@ else if (entry.getValue() instanceof Character) public Domain read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Domain instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java index c2d311f..5756bac 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java @@ -51,7 +51,7 @@ /** * Domain object for an array of each type */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DomainArray { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -365,50 +365,6 @@ public void setFloat64(List float64) { this.float64 = float64; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DomainArray instance itself - */ - public DomainArray putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -429,13 +385,12 @@ public boolean equals(Object o) { Objects.equals(this.int64, domainArray.int64) && Objects.equals(this.uint64, domainArray.uint64) && Objects.equals(this.float32, domainArray.float32) && - Objects.equals(this.float64, domainArray.float64)&& - Objects.equals(this.additionalProperties, domainArray.additionalProperties); + Objects.equals(this.float64, domainArray.float64); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); } @Override @@ -452,7 +407,6 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -502,6 +456,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DomainArray is not found in the empty JSON string", DomainArray.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DomainArray.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DomainArray` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonNull() && !jsonObj.get("int8").isJsonArray()) { @@ -560,28 +522,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DomainArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -589,28 +529,7 @@ else if (entry.getValue() instanceof Character) public DomainArray read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - DomainArray instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java index b8e2988..caaeeab 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java @@ -51,7 +51,7 @@ /** * The record of a check of a single domain's status. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DomainCheckResult { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -101,50 +101,6 @@ public void setStatus(DomainCheckStatus status) { this.status = status; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DomainCheckResult instance itself - */ - public DomainCheckResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -157,13 +113,12 @@ public boolean equals(Object o) { } DomainCheckResult domainCheckResult = (DomainCheckResult) o; return Objects.equals(this.time, domainCheckResult.time) && - Objects.equals(this.status, domainCheckResult.status)&& - Objects.equals(this.additionalProperties, domainCheckResult.additionalProperties); + Objects.equals(this.status, domainCheckResult.status); } @Override public int hashCode() { - return Objects.hash(time, status, additionalProperties); + return Objects.hash(time, status); } @Override @@ -172,7 +127,6 @@ public String toString() { sb.append("class DomainCheckResult {\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -214,6 +168,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DomainCheckResult is not found in the empty JSON string", DomainCheckResult.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DomainCheckResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DomainCheckResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { @@ -236,28 +198,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DomainCheckResult value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -265,28 +205,7 @@ else if (entry.getValue() instanceof Character) public DomainCheckResult read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - DomainCheckResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java index 590c9fd..7ebbd2f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java @@ -51,7 +51,7 @@ /** * The enumerations of a single attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Enumeration { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -232,50 +232,6 @@ public void setOffsets(List offsets) { this.offsets = offsets; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Enumeration instance itself - */ - public Enumeration putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -293,13 +249,12 @@ public boolean equals(Object o) { Objects.equals(this.cellValNum, enumeration.cellValNum) && Objects.equals(this.ordered, enumeration.ordered) && Objects.equals(this.data, enumeration.data) && - Objects.equals(this.offsets, enumeration.offsets)&& - Objects.equals(this.additionalProperties, enumeration.additionalProperties); + Objects.equals(this.offsets, enumeration.offsets); } @Override public int hashCode() { - return Objects.hash(name, pathName, type, cellValNum, ordered, data, offsets, additionalProperties); + return Objects.hash(name, pathName, type, cellValNum, ordered, data, offsets); } @Override @@ -313,7 +268,6 @@ public String toString() { sb.append(" ordered: ").append(toIndentedString(ordered)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" offsets: ").append(toIndentedString(offsets)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -360,6 +314,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Enumeration is not found in the empty JSON string", Enumeration.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Enumeration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Enumeration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); @@ -395,28 +357,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Enumeration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -424,28 +364,7 @@ else if (entry.getValue() instanceof Character) public Enumeration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Enumeration instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Error.java b/src/main/java/io/tiledb/cloud/rest_api/model/Error.java index a32b041..e76f388 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Error.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Error.java @@ -49,7 +49,7 @@ /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Error { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -122,50 +122,6 @@ public void setRequestId(String requestId) { this.requestId = requestId; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Error instance itself - */ - public Error putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { Error error = (Error) o; return Objects.equals(this.code, error.code) && Objects.equals(this.message, error.message) && - Objects.equals(this.requestId, error.requestId)&& - Objects.equals(this.additionalProperties, error.additionalProperties); + Objects.equals(this.requestId, error.requestId); } @Override public int hashCode() { - return Objects.hash(code, message, requestId, additionalProperties); + return Objects.hash(code, message, requestId); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Error.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Error` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -262,28 +224,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Error value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -291,28 +231,7 @@ else if (entry.getValue() instanceof Character) public Error read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Error instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java index 139abd4..768bedb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java @@ -49,7 +49,7 @@ /** * Input/Output information required to create a new file */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FileCreate { public static final String SERIALIZED_NAME_INPUT_URI = "input_uri"; @SerializedName(SERIALIZED_NAME_INPUT_URI) @@ -122,50 +122,6 @@ public void setName(String name) { this.name = name; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileCreate instance itself - */ - public FileCreate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { FileCreate fileCreate = (FileCreate) o; return Objects.equals(this.inputUri, fileCreate.inputUri) && Objects.equals(this.outputUri, fileCreate.outputUri) && - Objects.equals(this.name, fileCreate.name)&& - Objects.equals(this.additionalProperties, fileCreate.additionalProperties); + Objects.equals(this.name, fileCreate.name); } @Override public int hashCode() { - return Objects.hash(inputUri, outputUri, name, additionalProperties); + return Objects.hash(inputUri, outputUri, name); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" inputUri: ").append(toIndentedString(inputUri)).append("\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreate is not found in the empty JSON string", FileCreate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FileCreate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileCreate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("input_uri") != null && !jsonObj.get("input_uri").isJsonNull()) && !jsonObj.get("input_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `input_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input_uri").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public FileCreate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FileCreate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java index 5726a65..e39396f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java @@ -49,7 +49,7 @@ /** * Created file name and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FileCreated { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -99,50 +99,6 @@ public void setFileName(String fileName) { this.fileName = fileName; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileCreated instance itself - */ - public FileCreated putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -155,13 +111,12 @@ public boolean equals(Object o) { } FileCreated fileCreated = (FileCreated) o; return Objects.equals(this.outputUri, fileCreated.outputUri) && - Objects.equals(this.fileName, fileCreated.fileName)&& - Objects.equals(this.additionalProperties, fileCreated.additionalProperties); + Objects.equals(this.fileName, fileCreated.fileName); } @Override public int hashCode() { - return Objects.hash(outputUri, fileName, additionalProperties); + return Objects.hash(outputUri, fileName); } @Override @@ -170,7 +125,6 @@ public String toString() { sb.append("class FileCreated {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -212,6 +166,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreated is not found in the empty JSON string", FileCreated.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FileCreated.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileCreated` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); @@ -236,28 +198,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileCreated value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -265,28 +205,7 @@ else if (entry.getValue() instanceof Character) public FileCreated read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FileCreated instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java index b1dc89a..360966b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java @@ -49,7 +49,7 @@ /** * Output information required to export a file */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FileExport { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -76,50 +76,6 @@ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileExport instance itself - */ - public FileExport putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -131,13 +87,12 @@ public boolean equals(Object o) { return false; } FileExport fileExport = (FileExport) o; - return Objects.equals(this.outputUri, fileExport.outputUri)&& - Objects.equals(this.additionalProperties, fileExport.additionalProperties); + return Objects.equals(this.outputUri, fileExport.outputUri); } @Override public int hashCode() { - return Objects.hash(outputUri, additionalProperties); + return Objects.hash(outputUri); } @Override @@ -145,7 +100,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FileExport {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -186,6 +140,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FileExport is not found in the empty JSON string", FileExport.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FileExport.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileExport` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); @@ -207,28 +169,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileExport value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -236,28 +176,7 @@ else if (entry.getValue() instanceof Character) public FileExport read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FileExport instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java index 2aee599..907bb22 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java @@ -49,7 +49,7 @@ /** * Output uri of the exported file */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FileExported { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -76,50 +76,6 @@ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileExported instance itself - */ - public FileExported putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -131,13 +87,12 @@ public boolean equals(Object o) { return false; } FileExported fileExported = (FileExported) o; - return Objects.equals(this.outputUri, fileExported.outputUri)&& - Objects.equals(this.additionalProperties, fileExported.additionalProperties); + return Objects.equals(this.outputUri, fileExported.outputUri); } @Override public int hashCode() { - return Objects.hash(outputUri, additionalProperties); + return Objects.hash(outputUri); } @Override @@ -145,7 +100,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FileExported {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -186,6 +140,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FileExported is not found in the empty JSON string", FileExported.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FileExported.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileExported` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); @@ -207,28 +169,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileExported value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -236,28 +176,7 @@ else if (entry.getValue() instanceof Character) public FileExported read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FileExported instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java index 003f786..1a36432 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java @@ -49,7 +49,7 @@ /** * Uploaded file name and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FileUploaded { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -59,6 +59,10 @@ public class FileUploaded { @SerializedName(SERIALIZED_NAME_FILE_NAME) private String fileName; + public static final String SERIALIZED_NAME_ASSET_ID = "asset_id"; + @SerializedName(SERIALIZED_NAME_ASSET_ID) + private String assetId; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -104,70 +108,45 @@ public void setFileName(String fileName) { } - public FileUploaded id(String id) { - this.id = id; + public FileUploaded assetId(String assetId) { + this.assetId = assetId; return this; } /** - * unique ID of the uploaded file - * @return id + * The asset id of the created Group + * @return assetId */ @javax.annotation.Nonnull - public String getId() { - return id; + public String getAssetId() { + return assetId; } - public void setId(String id) { - this.id = id; + public void setAssetId(String assetId) { + this.assetId = assetId; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FileUploaded instance itself - */ - public FileUploaded putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); + public FileUploaded id(String id) { + this.id = id; return this; } /** - * Return the additional (undeclared) property. - * - * @return a map of objects + * unique ID of the uploaded file + * @return id */ - public Map getAdditionalProperties() { - return additionalProperties; + @javax.annotation.Nonnull + public String getId() { + return id; } - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); + public void setId(String id) { + this.id = id; } + @Override public boolean equals(Object o) { if (this == o) { @@ -179,13 +158,13 @@ public boolean equals(Object o) { FileUploaded fileUploaded = (FileUploaded) o; return Objects.equals(this.outputUri, fileUploaded.outputUri) && Objects.equals(this.fileName, fileUploaded.fileName) && - Objects.equals(this.id, fileUploaded.id)&& - Objects.equals(this.additionalProperties, fileUploaded.additionalProperties); + Objects.equals(this.assetId, fileUploaded.assetId) && + Objects.equals(this.id, fileUploaded.id); } @Override public int hashCode() { - return Objects.hash(outputUri, fileName, id, additionalProperties); + return Objects.hash(outputUri, fileName, assetId, id); } @Override @@ -194,8 +173,8 @@ public String toString() { sb.append("class FileUploaded {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -220,10 +199,12 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("output_uri"); openapiFields.add("file_name"); + openapiFields.add("asset_id"); openapiFields.add("id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("asset_id"); openapiRequiredFields.add("id"); } @@ -240,6 +221,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FileUploaded.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileUploaded` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FileUploaded.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -253,6 +242,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonNull()) && !jsonObj.get("file_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `file_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_name").toString())); } + if (!jsonObj.get("asset_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("asset_id").toString())); + } if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } @@ -273,28 +265,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileUploaded value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -302,28 +272,7 @@ else if (entry.getValue() instanceof Character) public FileUploaded read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FileUploaded instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java index 6a9f2c0..e941c0f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java @@ -51,7 +51,7 @@ /** * Filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Filter { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -101,50 +101,6 @@ public void setData(FilterData data) { this.data = data; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Filter instance itself - */ - public Filter putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -157,13 +113,12 @@ public boolean equals(Object o) { } Filter filter = (Filter) o; return Objects.equals(this.type, filter.type) && - Objects.equals(this.data, filter.data)&& - Objects.equals(this.additionalProperties, filter.additionalProperties); + Objects.equals(this.data, filter.data); } @Override public int hashCode() { - return Objects.hash(type, data, additionalProperties); + return Objects.hash(type, data); } @Override @@ -172,7 +127,6 @@ public String toString() { sb.append("class Filter {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -216,6 +170,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Filter.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Filter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Filter.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -246,28 +208,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Filter value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -275,28 +215,7 @@ else if (entry.getValue() instanceof Character) public Filter read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Filter instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java index 9f53545..a9cac90 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java @@ -49,7 +49,7 @@ /** * Filter data */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FilterData { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -283,50 +283,6 @@ public void setFloat64(Integer float64) { this.float64 = float64; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FilterData instance itself - */ - public FilterData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -347,13 +303,12 @@ public boolean equals(Object o) { Objects.equals(this.int64, filterData.int64) && Objects.equals(this.uint64, filterData.uint64) && Objects.equals(this.float32, filterData.float32) && - Objects.equals(this.float64, filterData.float64)&& - Objects.equals(this.additionalProperties, filterData.additionalProperties); + Objects.equals(this.float64, filterData.float64); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); } @Override @@ -370,7 +325,6 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -420,6 +374,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FilterData is not found in the empty JSON string", FilterData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FilterData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FilterData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); } @@ -438,28 +400,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -467,28 +407,7 @@ else if (entry.getValue() instanceof Character) public FilterData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FilterData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java index af18f4e..639b2a4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java @@ -52,7 +52,7 @@ /** * One or more filters to apply */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FilterPipeline { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) @@ -87,50 +87,6 @@ public void setFilters(List filters) { this.filters = filters; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FilterPipeline instance itself - */ - public FilterPipeline putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } FilterPipeline filterPipeline = (FilterPipeline) o; - return Objects.equals(this.filters, filterPipeline.filters)&& - Objects.equals(this.additionalProperties, filterPipeline.additionalProperties); + return Objects.equals(this.filters, filterPipeline.filters); } @Override public int hashCode() { - return Objects.hash(filters, additionalProperties); + return Objects.hash(filters); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FilterPipeline {\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FilterPipeline is not found in the empty JSON string", FilterPipeline.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FilterPipeline.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FilterPipeline` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FilterPipeline value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public FilterPipeline read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FilterPipeline instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java index bcd5a2a..f9225fc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java @@ -29,27 +29,27 @@ @JsonAdapter(FilterType.Adapter.class) public enum FilterType { - NONE("NONE"), + NONE("FILTER_NONE"), - GZIP("GZIP"), + GZIP("FILTER_GZIP"), - ZSTD("ZSTD"), + ZSTD("FILTER_ZSTD"), - LZ4("LZ4"), + LZ4("FILTER_LZ4"), - RLE("RLE"), + RLE("FILTER_RLE"), - BZIP2("BZIP2"), + BZIP2("FILTER_BZIP2"), - DOUBLE_DELTA("DOUBLE_DELTA"), + DOUBLE_DELTA("FILTER_DOUBLE_DELTA"), - BIT_WIDTH_REDUCTION("BIT_WIDTH_REDUCTION"), + BIT_WIDTH_REDUCTION("FILTER_BIT_WIDTH_REDUCTION"), - BITSHUFFLE("BITSHUFFLE"), + BITSHUFFLE("FILTER_BITSHUFFLE"), - BYTESHUFFLE("BYTESHUFFLE"), + BYTESHUFFLE("FILTER_BYTESHUFFLE"), - POSITIVE_DELTA("POSITIVE_DELTA"); + POSITIVE_DELTA("FILTER_POSITIVE_DELTA"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java index 13bdf74..87f4d84 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java @@ -55,7 +55,7 @@ /** * Fragment info of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_ALL = "arraySchemaAll"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_ALL) @@ -152,50 +152,6 @@ public void setToVacuum(List toVacuum) { this.toVacuum = toVacuum; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FragmentInfo instance itself - */ - public FragmentInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -209,13 +165,12 @@ public boolean equals(Object o) { FragmentInfo fragmentInfo = (FragmentInfo) o; return Objects.equals(this.arraySchemaAll, fragmentInfo.arraySchemaAll) && Objects.equals(this.fragmentInfo, fragmentInfo.fragmentInfo) && - Objects.equals(this.toVacuum, fragmentInfo.toVacuum)&& - Objects.equals(this.additionalProperties, fragmentInfo.additionalProperties); + Objects.equals(this.toVacuum, fragmentInfo.toVacuum); } @Override public int hashCode() { - return Objects.hash(arraySchemaAll, fragmentInfo, toVacuum, additionalProperties); + return Objects.hash(arraySchemaAll, fragmentInfo, toVacuum); } @Override @@ -225,7 +180,6 @@ public String toString() { sb.append(" arraySchemaAll: ").append(toIndentedString(arraySchemaAll)).append("\n"); sb.append(" fragmentInfo: ").append(toIndentedString(fragmentInfo)).append("\n"); sb.append(" toVacuum: ").append(toIndentedString(toVacuum)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -268,6 +222,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfo is not found in the empty JSON string", FragmentInfo.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FragmentInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FragmentInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("fragmentInfo") != null && !jsonObj.get("fragmentInfo").isJsonNull()) { JsonArray jsonArrayfragmentInfo = jsonObj.getAsJsonArray("fragmentInfo"); @@ -304,28 +266,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FragmentInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -333,28 +273,7 @@ else if (entry.getValue() instanceof Character) public FragmentInfo read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java index c637bdf..630cd6d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java @@ -50,7 +50,7 @@ /** * Fragment info request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FragmentInfoRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -77,50 +77,6 @@ public void setConfig(TileDBConfig config) { this.config = config; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FragmentInfoRequest instance itself - */ - public FragmentInfoRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -132,13 +88,12 @@ public boolean equals(Object o) { return false; } FragmentInfoRequest fragmentInfoRequest = (FragmentInfoRequest) o; - return Objects.equals(this.config, fragmentInfoRequest.config)&& - Objects.equals(this.additionalProperties, fragmentInfoRequest.additionalProperties); + return Objects.equals(this.config, fragmentInfoRequest.config); } @Override public int hashCode() { - return Objects.hash(config, additionalProperties); + return Objects.hash(config); } @Override @@ -146,7 +101,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FragmentInfoRequest {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -187,6 +141,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfoRequest is not found in the empty JSON string", FragmentInfoRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FragmentInfoRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FragmentInfoRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { @@ -209,28 +171,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FragmentInfoRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -238,28 +178,7 @@ else if (entry.getValue() instanceof Character) public FragmentInfoRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FragmentInfoRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java index b96d249..40a9740 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java @@ -51,7 +51,7 @@ /** * Fragment Metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FragmentMetadata { public static final String SERIALIZED_NAME_FILE_SIZES = "fileSizes"; @SerializedName(SERIALIZED_NAME_FILE_SIZES) @@ -774,50 +774,6 @@ public void setLastTileCellNum(Integer lastTileCellNum) { this.lastTileCellNum = lastTileCellNum; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FragmentMetadata instance itself - */ - public FragmentMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -853,13 +809,12 @@ public boolean equals(Object o) { Objects.equals(this.fragmentNullCounts, fragmentMetadata.fragmentNullCounts) && Objects.equals(this.version, fragmentMetadata.version) && Objects.equals(this.timestampRange, fragmentMetadata.timestampRange) && - Objects.equals(this.lastTileCellNum, fragmentMetadata.lastTileCellNum)&& - Objects.equals(this.additionalProperties, fragmentMetadata.additionalProperties); + Objects.equals(this.lastTileCellNum, fragmentMetadata.lastTileCellNum); } @Override public int hashCode() { - return Objects.hash(fileSizes, fileVarSizes, fileValiditySizes, fragmentUri, hasTimestamps, hasDeleteMeta, sparseTileNum, tileIndexBase, tileOffsets, tileVarOffsets, tileVarSizes, tileValidityOffsets, tileMinBuffer, tileMinVarBuffer, tileMaxBuffer, tileMaxVarBuffer, tileSums, tileNullCounts, fragmentMins, fragmentMaxs, fragmentSums, fragmentNullCounts, version, timestampRange, lastTileCellNum, additionalProperties); + return Objects.hash(fileSizes, fileVarSizes, fileValiditySizes, fragmentUri, hasTimestamps, hasDeleteMeta, sparseTileNum, tileIndexBase, tileOffsets, tileVarOffsets, tileVarSizes, tileValidityOffsets, tileMinBuffer, tileMinVarBuffer, tileMaxBuffer, tileMaxVarBuffer, tileSums, tileNullCounts, fragmentMins, fragmentMaxs, fragmentSums, fragmentNullCounts, version, timestampRange, lastTileCellNum); } @Override @@ -891,7 +846,6 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" timestampRange: ").append(toIndentedString(timestampRange)).append("\n"); sb.append(" lastTileCellNum: ").append(toIndentedString(lastTileCellNum)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -956,6 +910,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentMetadata is not found in the empty JSON string", FragmentMetadata.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FragmentMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FragmentMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("fileSizes") != null && !jsonObj.get("fileSizes").isJsonNull() && !jsonObj.get("fileSizes").isJsonArray()) { @@ -1049,28 +1011,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FragmentMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -1078,28 +1018,7 @@ else if (entry.getValue() instanceof Character) public FragmentMetadata read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - FragmentMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java index b5734de..6c01487 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java @@ -53,7 +53,7 @@ /** * User-defined function */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GenericUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -456,50 +456,6 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GenericUDF instance itself - */ - public GenericUDF putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -527,13 +483,12 @@ public boolean equals(Object o) { Objects.equals(this.timeout, genericUDF.timeout) && Objects.equals(this.dontDownloadResults, genericUDF.dontDownloadResults) && Objects.equals(this.taskGraphUuid, genericUDF.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, genericUDF.clientNodeUuid)&& - Objects.equals(this.additionalProperties, genericUDF.additionalProperties); + Objects.equals(this.clientNodeUuid, genericUDF.clientNodeUuid); } @Override public int hashCode() { - return Objects.hash(udfInfoName, language, version, imageName, accessCredentialsName, resourceClass, exec, execRaw, argument, storedParamUuids, resultFormat, taskName, storeResults, timeout, dontDownloadResults, taskGraphUuid, clientNodeUuid, additionalProperties); + return Objects.hash(udfInfoName, language, version, imageName, accessCredentialsName, resourceClass, exec, execRaw, argument, storedParamUuids, resultFormat, taskName, storeResults, timeout, dontDownloadResults, taskGraphUuid, clientNodeUuid); } @Override @@ -557,7 +512,6 @@ public String toString() { sb.append(" dontDownloadResults: ").append(toIndentedString(dontDownloadResults)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -614,6 +568,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GenericUDF is not found in the empty JSON string", GenericUDF.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GenericUDF.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GenericUDF` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); @@ -677,28 +639,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GenericUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -706,28 +646,7 @@ else if (entry.getValue() instanceof Character) public GenericUDF read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GenericUDF instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java index 152ce3e..b720f83 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java @@ -49,7 +49,7 @@ /** * GetTiledbStats200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GetTiledbStats200Response { public static final String SERIALIZED_NAME_STATS = "stats"; @SerializedName(SERIALIZED_NAME_STATS) @@ -76,50 +76,6 @@ public void setStats(String stats) { this.stats = stats; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GetTiledbStats200Response instance itself - */ - public GetTiledbStats200Response putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -131,13 +87,12 @@ public boolean equals(Object o) { return false; } GetTiledbStats200Response getTiledbStats200Response = (GetTiledbStats200Response) o; - return Objects.equals(this.stats, getTiledbStats200Response.stats)&& - Objects.equals(this.additionalProperties, getTiledbStats200Response.additionalProperties); + return Objects.equals(this.stats, getTiledbStats200Response.stats); } @Override public int hashCode() { - return Objects.hash(stats, additionalProperties); + return Objects.hash(stats); } @Override @@ -145,7 +100,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTiledbStats200Response {\n"); sb.append(" stats: ").append(toIndentedString(stats)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -186,6 +140,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GetTiledbStats200Response is not found in the empty JSON string", GetTiledbStats200Response.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetTiledbStats200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GetTiledbStats200Response` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("stats") != null && !jsonObj.get("stats").isJsonNull()) && !jsonObj.get("stats").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stats").toString())); @@ -207,28 +169,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GetTiledbStats200Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -236,28 +176,7 @@ else if (entry.getValue() instanceof Character) public GetTiledbStats200Response read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GetTiledbStats200Response instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java index 0d02f03..8f0cd28 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java @@ -53,7 +53,7 @@ /** * Object including group info and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupBrowserData { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupBrowserData instance itself - */ - public GroupBrowserData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } GroupBrowserData groupBrowserData = (GroupBrowserData) o; return Objects.equals(this.groups, groupBrowserData.groups) && - Objects.equals(this.paginationMetadata, groupBrowserData.paginationMetadata)&& - Objects.equals(this.additionalProperties, groupBrowserData.additionalProperties); + Objects.equals(this.paginationMetadata, groupBrowserData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(groups, paginationMetadata, additionalProperties); + return Objects.hash(groups, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class GroupBrowserData {\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserData is not found in the empty JSON string", GroupBrowserData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupBrowserData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupBrowserData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public GroupBrowserData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupBrowserData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java index e63ca9d..a09b37e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java @@ -52,7 +52,7 @@ /** * Object with data to fill browser filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupBrowserFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -118,50 +118,6 @@ public void setGroupTypes(List groupTypes) { this.groupTypes = groupTypes; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupBrowserFilterData instance itself - */ - public GroupBrowserFilterData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -174,13 +130,12 @@ public boolean equals(Object o) { } GroupBrowserFilterData groupBrowserFilterData = (GroupBrowserFilterData) o; return Objects.equals(this.namespaces, groupBrowserFilterData.namespaces) && - Objects.equals(this.groupTypes, groupBrowserFilterData.groupTypes)&& - Objects.equals(this.additionalProperties, groupBrowserFilterData.additionalProperties); + Objects.equals(this.groupTypes, groupBrowserFilterData.groupTypes); } @Override public int hashCode() { - return Objects.hash(namespaces, groupTypes, additionalProperties); + return Objects.hash(namespaces, groupTypes); } @Override @@ -189,7 +144,6 @@ public String toString() { sb.append("class GroupBrowserFilterData {\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); sb.append(" groupTypes: ").append(toIndentedString(groupTypes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -231,6 +185,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserFilterData is not found in the empty JSON string", GroupBrowserFilterData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupBrowserFilterData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupBrowserFilterData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { @@ -257,28 +219,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupBrowserFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -286,28 +226,7 @@ else if (entry.getValue() instanceof Character) public GroupBrowserFilterData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupBrowserFilterData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java index eb9013d..9868f1d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java @@ -52,7 +52,7 @@ /** * A request to change the members of a group. Contains assets to add or remove. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupChanges { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) @@ -118,50 +118,6 @@ public void setRemove(List remove) { this.remove = remove; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupChanges instance itself - */ - public GroupChanges putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -174,13 +130,12 @@ public boolean equals(Object o) { } GroupChanges groupChanges = (GroupChanges) o; return Objects.equals(this.add, groupChanges.add) && - Objects.equals(this.remove, groupChanges.remove)&& - Objects.equals(this.additionalProperties, groupChanges.additionalProperties); + Objects.equals(this.remove, groupChanges.remove); } @Override public int hashCode() { - return Objects.hash(add, remove, additionalProperties); + return Objects.hash(add, remove); } @Override @@ -189,7 +144,6 @@ public String toString() { sb.append("class GroupChanges {\n"); sb.append(" add: ").append(toIndentedString(add)).append("\n"); sb.append(" remove: ").append(toIndentedString(remove)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -231,6 +185,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupChanges is not found in the empty JSON string", GroupChanges.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupChanges.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupChanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("add") != null && !jsonObj.get("add").isJsonNull()) { JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); @@ -277,28 +239,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupChanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -306,28 +246,7 @@ else if (entry.getValue() instanceof Character) public GroupChanges read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupChanges instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java index efd9dae..afc814d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java @@ -51,7 +51,7 @@ /** * Object containing activity of an asset of a group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupContentActivity { public static final String SERIALIZED_NAME_ASSET = "asset"; @SerializedName(SERIALIZED_NAME_ASSET) @@ -101,50 +101,6 @@ public void setActivityLog(ArrayActivityLog activityLog) { this.activityLog = activityLog; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentActivity instance itself - */ - public GroupContentActivity putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -157,13 +113,12 @@ public boolean equals(Object o) { } GroupContentActivity groupContentActivity = (GroupContentActivity) o; return Objects.equals(this.asset, groupContentActivity.asset) && - Objects.equals(this.activityLog, groupContentActivity.activityLog)&& - Objects.equals(this.additionalProperties, groupContentActivity.additionalProperties); + Objects.equals(this.activityLog, groupContentActivity.activityLog); } @Override public int hashCode() { - return Objects.hash(asset, activityLog, additionalProperties); + return Objects.hash(asset, activityLog); } @Override @@ -172,7 +127,6 @@ public String toString() { sb.append("class GroupContentActivity {\n"); sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); sb.append(" activityLog: ").append(toIndentedString(activityLog)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -214,6 +168,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivity is not found in the empty JSON string", GroupContentActivity.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupContentActivity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentActivity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `asset` if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { @@ -240,28 +202,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContentActivity value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -269,28 +209,7 @@ else if (entry.getValue() instanceof Character) public GroupContentActivity read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupContentActivity instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java index d2e0cfc..41ccbc4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java @@ -50,7 +50,7 @@ /** * The asset details */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupContentActivityAsset { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -146,50 +146,6 @@ public void setAssetType(AssetType assetType) { this.assetType = assetType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentActivityAsset instance itself - */ - public GroupContentActivityAsset putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -204,13 +160,12 @@ public boolean equals(Object o) { return Objects.equals(this.id, groupContentActivityAsset.id) && Objects.equals(this.name, groupContentActivityAsset.name) && Objects.equals(this.namespace, groupContentActivityAsset.namespace) && - Objects.equals(this.assetType, groupContentActivityAsset.assetType)&& - Objects.equals(this.additionalProperties, groupContentActivityAsset.additionalProperties); + Objects.equals(this.assetType, groupContentActivityAsset.assetType); } @Override public int hashCode() { - return Objects.hash(id, name, namespace, assetType, additionalProperties); + return Objects.hash(id, name, namespace, assetType); } @Override @@ -221,7 +176,6 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,6 +219,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityAsset is not found in the empty JSON string", GroupContentActivityAsset.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupContentActivityAsset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentActivityAsset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -296,28 +258,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContentActivityAsset value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -325,28 +265,7 @@ else if (entry.getValue() instanceof Character) public GroupContentActivityAsset read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupContentActivityAsset instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java index a81089e..c5556f4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java @@ -53,7 +53,7 @@ /** * Object containing activity logs of group content along with the pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupContentActivityResponse { public static final String SERIALIZED_NAME_ACTIVITY = "activity"; @SerializedName(SERIALIZED_NAME_ACTIVITY) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentActivityResponse instance itself - */ - public GroupContentActivityResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } GroupContentActivityResponse groupContentActivityResponse = (GroupContentActivityResponse) o; return Objects.equals(this.activity, groupContentActivityResponse.activity) && - Objects.equals(this.paginationMetadata, groupContentActivityResponse.paginationMetadata)&& - Objects.equals(this.additionalProperties, groupContentActivityResponse.additionalProperties); + Objects.equals(this.paginationMetadata, groupContentActivityResponse.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(activity, paginationMetadata, additionalProperties); + return Objects.hash(activity, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class GroupContentActivityResponse {\n"); sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityResponse is not found in the empty JSON string", GroupContentActivityResponse.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupContentActivityResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentActivityResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContentActivityResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public GroupContentActivityResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupContentActivityResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java index 3dc72ab..20e8e37 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java @@ -53,7 +53,7 @@ /** * Object including a page of members of a group and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupContents { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContents instance itself - */ - public GroupContents putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } GroupContents groupContents = (GroupContents) o; return Objects.equals(this.entries, groupContents.entries) && - Objects.equals(this.paginationMetadata, groupContents.paginationMetadata)&& - Objects.equals(this.additionalProperties, groupContents.additionalProperties); + Objects.equals(this.paginationMetadata, groupContents.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(entries, paginationMetadata, additionalProperties); + return Objects.hash(entries, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class GroupContents {\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContents is not found in the empty JSON string", GroupContents.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupContents.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContents` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContents value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public GroupContents read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupContents instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java index add6d17..a601223 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java @@ -51,7 +51,7 @@ /** * Object with data to fill contents filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupContentsFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -86,50 +86,6 @@ public void setNamespaces(List namespaces) { this.namespaces = namespaces; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupContentsFilterData instance itself - */ - public GroupContentsFilterData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -141,13 +97,12 @@ public boolean equals(Object o) { return false; } GroupContentsFilterData groupContentsFilterData = (GroupContentsFilterData) o; - return Objects.equals(this.namespaces, groupContentsFilterData.namespaces)&& - Objects.equals(this.additionalProperties, groupContentsFilterData.additionalProperties); + return Objects.equals(this.namespaces, groupContentsFilterData.namespaces); } @Override public int hashCode() { - return Objects.hash(namespaces, additionalProperties); + return Objects.hash(namespaces); } @Override @@ -155,7 +110,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GroupContentsFilterData {\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,6 +150,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsFilterData is not found in the empty JSON string", GroupContentsFilterData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupContentsFilterData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentsFilterData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { @@ -218,28 +180,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContentsFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -247,28 +187,7 @@ else if (entry.getValue() instanceof Character) public GroupContentsFilterData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupContentsFilterData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java index e590254..a5fae01 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java @@ -51,7 +51,7 @@ /** * Initial attributes for the creation of a group. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupCreate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -270,50 +270,6 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupCreate instance itself - */ - public GroupCreate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -333,13 +289,12 @@ public boolean equals(Object o) { Objects.equals(this.accessCredentialsName, groupCreate.accessCredentialsName) && Objects.equals(this.tags, groupCreate.tags) && Objects.equals(this.licenseId, groupCreate.licenseId) && - Objects.equals(this.licenseText, groupCreate.licenseText)&& - Objects.equals(this.additionalProperties, groupCreate.additionalProperties); + Objects.equals(this.licenseText, groupCreate.licenseText); } @Override public int hashCode() { - return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText, additionalProperties); + return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText); } @Override @@ -355,7 +310,6 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -404,6 +358,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreate is not found in the empty JSON string", GroupCreate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupCreate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupCreate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); @@ -450,28 +412,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -479,28 +419,7 @@ else if (entry.getValue() instanceof Character) public GroupCreate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupCreate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java index b67782d..3ebbb26 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java @@ -51,7 +51,7 @@ /** * Object describing a single member of a group, which can be an array or a group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupEntry { public static final String SERIALIZED_NAME_MEMBER_ID = "member_id"; @SerializedName(SERIALIZED_NAME_MEMBER_ID) @@ -123,50 +123,6 @@ public void setArray(ArrayInfo array) { this.array = array; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupEntry instance itself - */ - public GroupEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -180,13 +136,12 @@ public boolean equals(Object o) { GroupEntry groupEntry = (GroupEntry) o; return Objects.equals(this.memberId, groupEntry.memberId) && Objects.equals(this.group, groupEntry.group) && - Objects.equals(this.array, groupEntry.array)&& - Objects.equals(this.additionalProperties, groupEntry.additionalProperties); + Objects.equals(this.array, groupEntry.array); } @Override public int hashCode() { - return Objects.hash(memberId, group, array, additionalProperties); + return Objects.hash(memberId, group, array); } @Override @@ -196,7 +151,6 @@ public String toString() { sb.append(" memberId: ").append(toIndentedString(memberId)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" array: ").append(toIndentedString(array)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,6 +193,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupEntry is not found in the empty JSON string", GroupEntry.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupEntry.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupEntry` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("member_id") != null && !jsonObj.get("member_id").isJsonNull()) && !jsonObj.get("member_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `member_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("member_id").toString())); @@ -268,28 +230,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -297,28 +237,7 @@ else if (entry.getValue() instanceof Character) public GroupEntry read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupEntry instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java index 2ba7132..ac7011e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java @@ -57,7 +57,7 @@ /** * metadata of a group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -591,50 +591,6 @@ public void setMetadata(List metadata) { this.metadata = metadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupInfo instance itself - */ - public GroupInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -667,8 +623,7 @@ public boolean equals(Object o) { Objects.equals(this.licenseText, groupInfo.licenseText) && Objects.equals(this.createdAt, groupInfo.createdAt) && Objects.equals(this.createdBy, groupInfo.createdBy) && - Objects.equals(this.metadata, groupInfo.metadata)&& - Objects.equals(this.additionalProperties, groupInfo.additionalProperties); + Objects.equals(this.metadata, groupInfo.metadata); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -677,7 +632,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, namespace, name, description, uri, tiledbUri, assetCount, groupCount, size, lastAccessed, allowedActions, groupType, logo, accessCredentialsName, shareCount, publicShare, tags, licenseId, licenseText, createdAt, createdBy, metadata, additionalProperties); + return Objects.hash(id, namespace, name, description, uri, tiledbUri, assetCount, groupCount, size, lastAccessed, allowedActions, groupType, logo, accessCredentialsName, shareCount, publicShare, tags, licenseId, licenseText, createdAt, createdBy, metadata); } private static int hashCodeNullable(JsonNullable a) { @@ -713,7 +668,6 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -775,6 +729,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupInfo is not found in the empty JSON string", GroupInfo.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -852,28 +814,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -881,28 +821,7 @@ else if (entry.getValue() instanceof Character) public GroupInfo read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java index 1b0baed..060cde5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java @@ -50,7 +50,7 @@ /** * A groups member, array or another groups, to add or remove from an existing group. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupMember { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -123,50 +123,6 @@ public void setMemberType(GroupMemberType memberType) { this.memberType = memberType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupMember instance itself - */ - public GroupMember putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -180,13 +136,12 @@ public boolean equals(Object o) { GroupMember groupMember = (GroupMember) o; return Objects.equals(this.namespace, groupMember.namespace) && Objects.equals(this.name, groupMember.name) && - Objects.equals(this.memberType, groupMember.memberType)&& - Objects.equals(this.additionalProperties, groupMember.additionalProperties); + Objects.equals(this.memberType, groupMember.memberType); } @Override public int hashCode() { - return Objects.hash(namespace, name, memberType, additionalProperties); + return Objects.hash(namespace, name, memberType); } @Override @@ -196,7 +151,6 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" memberType: ").append(toIndentedString(memberType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,6 +193,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMember is not found in the empty JSON string", GroupMember.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupMember.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupMember` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); @@ -267,28 +229,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupMember value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -296,28 +236,7 @@ else if (entry.getValue() instanceof Character) public GroupMember read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupMember instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java index 30343ef..7da7da6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java @@ -51,7 +51,7 @@ /** * Initial attributes for the registration of a an existing group. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupRegister { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -270,50 +270,6 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupRegister instance itself - */ - public GroupRegister putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -333,13 +289,12 @@ public boolean equals(Object o) { Objects.equals(this.accessCredentialsName, groupRegister.accessCredentialsName) && Objects.equals(this.tags, groupRegister.tags) && Objects.equals(this.licenseId, groupRegister.licenseId) && - Objects.equals(this.licenseText, groupRegister.licenseText)&& - Objects.equals(this.additionalProperties, groupRegister.additionalProperties); + Objects.equals(this.licenseText, groupRegister.licenseText); } @Override public int hashCode() { - return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText, additionalProperties); + return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText); } @Override @@ -355,7 +310,6 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -404,6 +358,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegister is not found in the empty JSON string", GroupRegister.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupRegister.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupRegister` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); @@ -450,28 +412,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupRegister value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -479,28 +419,7 @@ else if (entry.getValue() instanceof Character) public GroupRegister read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupRegister instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java index 7007e5b..91d7fa8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java @@ -53,7 +53,7 @@ /** * sharing state of a group with a namespace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupSharing { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) @@ -165,50 +165,6 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupSharing instance itself - */ - public GroupSharing putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -223,13 +179,12 @@ public boolean equals(Object o) { return Objects.equals(this.groupActions, groupSharing.groupActions) && Objects.equals(this.arrayActions, groupSharing.arrayActions) && Objects.equals(this.namespace, groupSharing.namespace) && - Objects.equals(this.namespaceType, groupSharing.namespaceType)&& - Objects.equals(this.additionalProperties, groupSharing.additionalProperties); + Objects.equals(this.namespaceType, groupSharing.namespaceType); } @Override public int hashCode() { - return Objects.hash(groupActions, arrayActions, namespace, namespaceType, additionalProperties); + return Objects.hash(groupActions, arrayActions, namespace, namespaceType); } @Override @@ -240,7 +195,6 @@ public String toString() { sb.append(" arrayActions: ").append(toIndentedString(arrayActions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -284,6 +238,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharing is not found in the empty JSON string", GroupSharing.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupSharing.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupSharing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull() && !jsonObj.get("group_actions").isJsonArray()) { @@ -316,28 +278,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -345,28 +285,7 @@ else if (entry.getValue() instanceof Character) public GroupSharing read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupSharing instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java index 2c30412..cae3904 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java @@ -53,7 +53,7 @@ /** * a request to share a group and all the contents with a namespace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupSharingRequest { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) @@ -142,50 +142,6 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupSharingRequest instance itself - */ - public GroupSharingRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -199,13 +155,12 @@ public boolean equals(Object o) { GroupSharingRequest groupSharingRequest = (GroupSharingRequest) o; return Objects.equals(this.groupActions, groupSharingRequest.groupActions) && Objects.equals(this.arrayActions, groupSharingRequest.arrayActions) && - Objects.equals(this.namespace, groupSharingRequest.namespace)&& - Objects.equals(this.additionalProperties, groupSharingRequest.additionalProperties); + Objects.equals(this.namespace, groupSharingRequest.namespace); } @Override public int hashCode() { - return Objects.hash(groupActions, arrayActions, namespace, additionalProperties); + return Objects.hash(groupActions, arrayActions, namespace); } @Override @@ -215,7 +170,6 @@ public String toString() { sb.append(" groupActions: ").append(toIndentedString(groupActions)).append("\n"); sb.append(" arrayActions: ").append(toIndentedString(arrayActions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -258,6 +212,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharingRequest is not found in the empty JSON string", GroupSharingRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupSharingRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupSharingRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull() && !jsonObj.get("group_actions").isJsonArray()) { @@ -287,28 +249,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupSharingRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -316,28 +256,7 @@ else if (entry.getValue() instanceof Character) public GroupSharingRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupSharingRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java index fbb278d..5d110ad 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java @@ -52,7 +52,7 @@ /** * Updates for a group. New values for the attributes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class GroupUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -225,50 +225,6 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GroupUpdate instance itself - */ - public GroupUpdate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -286,8 +242,7 @@ public boolean equals(Object o) { Objects.equals(this.accessCredentialsName, groupUpdate.accessCredentialsName) && Objects.equals(this.tags, groupUpdate.tags) && Objects.equals(this.licenseId, groupUpdate.licenseId) && - Objects.equals(this.licenseText, groupUpdate.licenseText)&& - Objects.equals(this.additionalProperties, groupUpdate.additionalProperties); + Objects.equals(this.licenseText, groupUpdate.licenseText); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -296,7 +251,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(description, name, logo, accessCredentialsName, tags, licenseId, licenseText, additionalProperties); + return Objects.hash(description, name, logo, accessCredentialsName, tags, licenseId, licenseText); } private static int hashCodeNullable(JsonNullable a) { @@ -317,7 +272,6 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -364,6 +318,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupUpdate is not found in the empty JSON string", GroupUpdate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GroupUpdate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); @@ -404,28 +366,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -433,28 +373,7 @@ else if (entry.getValue() instanceof Character) public GroupUpdate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - GroupUpdate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java index 981072a..d822cc4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java @@ -53,7 +53,7 @@ /** * Invitations to share or collaborate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -517,50 +517,6 @@ public void setNamespaceInvited(String namespaceInvited) { this.namespaceInvited = namespaceInvited; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Invitation instance itself - */ - public Invitation putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -591,13 +547,12 @@ public boolean equals(Object o) { Objects.equals(this.createdAt, invitation.createdAt) && Objects.equals(this.expiresAt, invitation.expiresAt) && Objects.equals(this.acceptedAt, invitation.acceptedAt) && - Objects.equals(this.namespaceInvited, invitation.namespaceInvited)&& - Objects.equals(this.additionalProperties, invitation.additionalProperties); + Objects.equals(this.namespaceInvited, invitation.namespaceInvited); } @Override public int hashCode() { - return Objects.hash(id, invitationType, ownerNamespaceUuid, inviterUuid, userNamespaceUuid, organizationUserUuid, organizationName, organizationRole, organizationUuid, arrayUuid, groupUuid, arrayName, email, actions, groupActions, status, createdAt, expiresAt, acceptedAt, namespaceInvited, additionalProperties); + return Objects.hash(id, invitationType, ownerNamespaceUuid, inviterUuid, userNamespaceUuid, organizationUserUuid, organizationName, organizationRole, organizationUuid, arrayUuid, groupUuid, arrayName, email, actions, groupActions, status, createdAt, expiresAt, acceptedAt, namespaceInvited); } @Override @@ -624,7 +579,6 @@ public String toString() { sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" acceptedAt: ").append(toIndentedString(acceptedAt)).append("\n"); sb.append(" namespaceInvited: ").append(toIndentedString(namespaceInvited)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -684,6 +638,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Invitation is not found in the empty JSON string", Invitation.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Invitation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Invitation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -756,28 +718,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Invitation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -785,28 +725,7 @@ else if (entry.getValue() instanceof Character) public Invitation read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Invitation instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java index 015a7c2..1b61279 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java @@ -52,7 +52,7 @@ /** * Encapsulates information regarding inviting people using email to share array, same permissions for all invitees */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class InvitationArrayShareEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -118,50 +118,6 @@ public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationArrayShareEmail instance itself - */ - public InvitationArrayShareEmail putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -174,13 +130,12 @@ public boolean equals(Object o) { } InvitationArrayShareEmail invitationArrayShareEmail = (InvitationArrayShareEmail) o; return Objects.equals(this.actions, invitationArrayShareEmail.actions) && - Objects.equals(this.inviteeEmail, invitationArrayShareEmail.inviteeEmail)&& - Objects.equals(this.additionalProperties, invitationArrayShareEmail.additionalProperties); + Objects.equals(this.inviteeEmail, invitationArrayShareEmail.inviteeEmail); } @Override public int hashCode() { - return Objects.hash(actions, inviteeEmail, additionalProperties); + return Objects.hash(actions, inviteeEmail); } @Override @@ -189,7 +144,6 @@ public String toString() { sb.append("class InvitationArrayShareEmail {\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" inviteeEmail: ").append(toIndentedString(inviteeEmail)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -234,6 +188,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!InvitationArrayShareEmail.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationArrayShareEmail` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationArrayShareEmail.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -270,28 +232,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationArrayShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -299,28 +239,7 @@ else if (entry.getValue() instanceof Character) public InvitationArrayShareEmail read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - InvitationArrayShareEmail instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java index 1fa7f71..a3efe62 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java @@ -53,7 +53,7 @@ /** * Object including invitations and metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class InvitationData { public static final String SERIALIZED_NAME_INVITATIONS = "invitations"; @SerializedName(SERIALIZED_NAME_INVITATIONS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationData instance itself - */ - public InvitationData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } InvitationData invitationData = (InvitationData) o; return Objects.equals(this.invitations, invitationData.invitations) && - Objects.equals(this.paginationMetadata, invitationData.paginationMetadata)&& - Objects.equals(this.additionalProperties, invitationData.additionalProperties); + Objects.equals(this.paginationMetadata, invitationData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(invitations, paginationMetadata, additionalProperties); + return Objects.hash(invitations, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class InvitationData {\n"); sb.append(" invitations: ").append(toIndentedString(invitations)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationData is not found in the empty JSON string", InvitationData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!InvitationData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("invitations") != null && !jsonObj.get("invitations").isJsonNull()) { JsonArray jsonArrayinvitations = jsonObj.getAsJsonArray("invitations"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public InvitationData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - InvitationData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java index 0ef38f3..c070e51 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java @@ -51,7 +51,7 @@ /** * Encapsulates information regarding the failed invitation recipients */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class InvitationFailedRecipients { public static final String SERIALIZED_NAME_FAILED_RECIPIENTS = "failed_recipients"; @SerializedName(SERIALIZED_NAME_FAILED_RECIPIENTS) @@ -86,50 +86,6 @@ public void setFailedRecipients(List failedRecipients) { this.failedRecipients = failedRecipients; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationFailedRecipients instance itself - */ - public InvitationFailedRecipients putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -141,13 +97,12 @@ public boolean equals(Object o) { return false; } InvitationFailedRecipients invitationFailedRecipients = (InvitationFailedRecipients) o; - return Objects.equals(this.failedRecipients, invitationFailedRecipients.failedRecipients)&& - Objects.equals(this.additionalProperties, invitationFailedRecipients.additionalProperties); + return Objects.equals(this.failedRecipients, invitationFailedRecipients.failedRecipients); } @Override public int hashCode() { - return Objects.hash(failedRecipients, additionalProperties); + return Objects.hash(failedRecipients); } @Override @@ -155,7 +110,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InvitationFailedRecipients {\n"); sb.append(" failedRecipients: ").append(toIndentedString(failedRecipients)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -198,6 +152,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!InvitationFailedRecipients.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationFailedRecipients` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationFailedRecipients.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -228,28 +190,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationFailedRecipients value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -257,28 +197,7 @@ else if (entry.getValue() instanceof Character) public InvitationFailedRecipients read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - InvitationFailedRecipients instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java index 8bfc10c..20c1d4a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java @@ -53,7 +53,7 @@ /** * Encapsulates information regarding inviting people using email to share group, same permissions for all invitees */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class InvitationGroupShareEmail { public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) @@ -150,50 +150,6 @@ public void setInviteeEmailOrName(List inviteeEmailOrName) { this.inviteeEmailOrName = inviteeEmailOrName; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationGroupShareEmail instance itself - */ - public InvitationGroupShareEmail putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -207,13 +163,12 @@ public boolean equals(Object o) { InvitationGroupShareEmail invitationGroupShareEmail = (InvitationGroupShareEmail) o; return Objects.equals(this.arrayActions, invitationGroupShareEmail.arrayActions) && Objects.equals(this.groupActions, invitationGroupShareEmail.groupActions) && - Objects.equals(this.inviteeEmailOrName, invitationGroupShareEmail.inviteeEmailOrName)&& - Objects.equals(this.additionalProperties, invitationGroupShareEmail.additionalProperties); + Objects.equals(this.inviteeEmailOrName, invitationGroupShareEmail.inviteeEmailOrName); } @Override public int hashCode() { - return Objects.hash(arrayActions, groupActions, inviteeEmailOrName, additionalProperties); + return Objects.hash(arrayActions, groupActions, inviteeEmailOrName); } @Override @@ -223,7 +178,6 @@ public String toString() { sb.append(" arrayActions: ").append(toIndentedString(arrayActions)).append("\n"); sb.append(" groupActions: ").append(toIndentedString(groupActions)).append("\n"); sb.append(" inviteeEmailOrName: ").append(toIndentedString(inviteeEmailOrName)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -270,6 +224,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!InvitationGroupShareEmail.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationGroupShareEmail` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationGroupShareEmail.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -312,28 +274,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationGroupShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -341,28 +281,7 @@ else if (entry.getValue() instanceof Character) public InvitationGroupShareEmail read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - InvitationGroupShareEmail instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java index 3c33477..9d28069 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java @@ -53,7 +53,7 @@ /** * Encapsulates information regarding inviting people using email to join organization, same permissions for all invitees */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -142,50 +142,6 @@ public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the InvitationOrganizationJoinEmail instance itself - */ - public InvitationOrganizationJoinEmail putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -199,13 +155,12 @@ public boolean equals(Object o) { InvitationOrganizationJoinEmail invitationOrganizationJoinEmail = (InvitationOrganizationJoinEmail) o; return Objects.equals(this.actions, invitationOrganizationJoinEmail.actions) && Objects.equals(this.organizationRole, invitationOrganizationJoinEmail.organizationRole) && - Objects.equals(this.inviteeEmail, invitationOrganizationJoinEmail.inviteeEmail)&& - Objects.equals(this.additionalProperties, invitationOrganizationJoinEmail.additionalProperties); + Objects.equals(this.inviteeEmail, invitationOrganizationJoinEmail.inviteeEmail); } @Override public int hashCode() { - return Objects.hash(actions, organizationRole, inviteeEmail, additionalProperties); + return Objects.hash(actions, organizationRole, inviteeEmail); } @Override @@ -215,7 +170,6 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" organizationRole: ").append(toIndentedString(organizationRole)).append("\n"); sb.append(" inviteeEmail: ").append(toIndentedString(inviteeEmail)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -261,6 +215,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!InvitationOrganizationJoinEmail.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationOrganizationJoinEmail` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationOrganizationJoinEmail.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -297,28 +259,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationOrganizationJoinEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -326,28 +266,7 @@ else if (entry.getValue() instanceof Character) public InvitationOrganizationJoinEmail read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - InvitationOrganizationJoinEmail instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java index 9acb257..cfbd879 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java @@ -51,7 +51,7 @@ /** * Information related to last access of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class LastAccessedArray { public static final String SERIALIZED_NAME_ARRAY_ID = "array_id"; @SerializedName(SERIALIZED_NAME_ARRAY_ID) @@ -170,50 +170,6 @@ public void setAccessType(ActivityEventType accessType) { this.accessType = accessType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LastAccessedArray instance itself - */ - public LastAccessedArray putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -229,13 +185,12 @@ public boolean equals(Object o) { Objects.equals(this.arrayName, lastAccessedArray.arrayName) && Objects.equals(this.namespace, lastAccessedArray.namespace) && Objects.equals(this.accessedTime, lastAccessedArray.accessedTime) && - Objects.equals(this.accessType, lastAccessedArray.accessType)&& - Objects.equals(this.additionalProperties, lastAccessedArray.additionalProperties); + Objects.equals(this.accessType, lastAccessedArray.accessType); } @Override public int hashCode() { - return Objects.hash(arrayId, arrayName, namespace, accessedTime, accessType, additionalProperties); + return Objects.hash(arrayId, arrayName, namespace, accessedTime, accessType); } @Override @@ -247,7 +202,6 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" accessedTime: ").append(toIndentedString(accessedTime)).append("\n"); sb.append(" accessType: ").append(toIndentedString(accessType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -292,6 +246,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LastAccessedArray is not found in the empty JSON string", LastAccessedArray.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LastAccessedArray.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LastAccessedArray` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("array_id") != null && !jsonObj.get("array_id").isJsonNull()) && !jsonObj.get("array_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_id").toString())); @@ -323,28 +285,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, LastAccessedArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -352,28 +292,7 @@ else if (entry.getValue() instanceof Character) public LastAccessedArray read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - LastAccessedArray instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java index 061e96f..bcc0850 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java @@ -50,7 +50,7 @@ /** * Request to load an array schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class LoadArraySchemaRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -77,50 +77,6 @@ public void setConfig(TileDBConfig config) { this.config = config; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadArraySchemaRequest instance itself - */ - public LoadArraySchemaRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -132,13 +88,12 @@ public boolean equals(Object o) { return false; } LoadArraySchemaRequest loadArraySchemaRequest = (LoadArraySchemaRequest) o; - return Objects.equals(this.config, loadArraySchemaRequest.config)&& - Objects.equals(this.additionalProperties, loadArraySchemaRequest.additionalProperties); + return Objects.equals(this.config, loadArraySchemaRequest.config); } @Override public int hashCode() { - return Objects.hash(config, additionalProperties); + return Objects.hash(config); } @Override @@ -146,7 +101,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LoadArraySchemaRequest {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -187,6 +141,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaRequest is not found in the empty JSON string", LoadArraySchemaRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LoadArraySchemaRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadArraySchemaRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { @@ -209,28 +171,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, LoadArraySchemaRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -238,28 +178,7 @@ else if (entry.getValue() instanceof Character) public LoadArraySchemaRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - LoadArraySchemaRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java index bb3786f..e38c36f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java @@ -52,7 +52,7 @@ /** * Contains the latest schema and all schemas for the opened array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class LoadArraySchemaResponse { public static final String SERIALIZED_NAME_LATEST_ARRAY_SCHEMA = "latest_array_schema"; @SerializedName(SERIALIZED_NAME_LATEST_ARRAY_SCHEMA) @@ -110,50 +110,6 @@ public void setAllArraySchemas(Map allArraySchemas) { this.allArraySchemas = allArraySchemas; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadArraySchemaResponse instance itself - */ - public LoadArraySchemaResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -166,13 +122,12 @@ public boolean equals(Object o) { } LoadArraySchemaResponse loadArraySchemaResponse = (LoadArraySchemaResponse) o; return Objects.equals(this.latestArraySchema, loadArraySchemaResponse.latestArraySchema) && - Objects.equals(this.allArraySchemas, loadArraySchemaResponse.allArraySchemas)&& - Objects.equals(this.additionalProperties, loadArraySchemaResponse.additionalProperties); + Objects.equals(this.allArraySchemas, loadArraySchemaResponse.allArraySchemas); } @Override public int hashCode() { - return Objects.hash(latestArraySchema, allArraySchemas, additionalProperties); + return Objects.hash(latestArraySchema, allArraySchemas); } @Override @@ -181,7 +136,6 @@ public String toString() { sb.append("class LoadArraySchemaResponse {\n"); sb.append(" latestArraySchema: ").append(toIndentedString(latestArraySchema)).append("\n"); sb.append(" allArraySchemas: ").append(toIndentedString(allArraySchemas)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,6 +177,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaResponse is not found in the empty JSON string", LoadArraySchemaResponse.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LoadArraySchemaResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadArraySchemaResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `latest_array_schema` if (jsonObj.get("latest_array_schema") != null && !jsonObj.get("latest_array_schema").isJsonNull()) { @@ -245,28 +207,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, LoadArraySchemaResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -274,28 +214,7 @@ else if (entry.getValue() instanceof Character) public LoadArraySchemaResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - LoadArraySchemaResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java index 8ce920c..af42919 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java @@ -52,7 +52,7 @@ /** * Request to return enumerations for attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class LoadEnumerationsRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -110,50 +110,6 @@ public void setEnumerations(List enumerations) { this.enumerations = enumerations; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadEnumerationsRequest instance itself - */ - public LoadEnumerationsRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -166,13 +122,12 @@ public boolean equals(Object o) { } LoadEnumerationsRequest loadEnumerationsRequest = (LoadEnumerationsRequest) o; return Objects.equals(this.config, loadEnumerationsRequest.config) && - Objects.equals(this.enumerations, loadEnumerationsRequest.enumerations)&& - Objects.equals(this.additionalProperties, loadEnumerationsRequest.additionalProperties); + Objects.equals(this.enumerations, loadEnumerationsRequest.enumerations); } @Override public int hashCode() { - return Objects.hash(config, enumerations, additionalProperties); + return Objects.hash(config, enumerations); } @Override @@ -181,7 +136,6 @@ public String toString() { sb.append("class LoadEnumerationsRequest {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append(" enumerations: ").append(toIndentedString(enumerations)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,6 +177,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsRequest is not found in the empty JSON string", LoadEnumerationsRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LoadEnumerationsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadEnumerationsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { @@ -249,28 +211,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, LoadEnumerationsRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -278,28 +218,7 @@ else if (entry.getValue() instanceof Character) public LoadEnumerationsRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - LoadEnumerationsRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java index 6ec4519..def76b0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java @@ -52,7 +52,7 @@ /** * Contains the enumerations of the array's attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class LoadEnumerationsResponse { public static final String SERIALIZED_NAME_ENUMERATIONS = "enumerations"; @SerializedName(SERIALIZED_NAME_ENUMERATIONS) @@ -87,50 +87,6 @@ public void setEnumerations(List enumerations) { this.enumerations = enumerations; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LoadEnumerationsResponse instance itself - */ - public LoadEnumerationsResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } LoadEnumerationsResponse loadEnumerationsResponse = (LoadEnumerationsResponse) o; - return Objects.equals(this.enumerations, loadEnumerationsResponse.enumerations)&& - Objects.equals(this.additionalProperties, loadEnumerationsResponse.additionalProperties); + return Objects.equals(this.enumerations, loadEnumerationsResponse.enumerations); } @Override public int hashCode() { - return Objects.hash(enumerations, additionalProperties); + return Objects.hash(enumerations); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LoadEnumerationsResponse {\n"); sb.append(" enumerations: ").append(toIndentedString(enumerations)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsResponse is not found in the empty JSON string", LoadEnumerationsResponse.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LoadEnumerationsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadEnumerationsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull()) { JsonArray jsonArrayenumerations = jsonObj.getAsJsonArray("enumerations"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, LoadEnumerationsResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public LoadEnumerationsResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - LoadEnumerationsResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java index e74fc72..2ce3a1c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java @@ -49,7 +49,7 @@ /** * A user-favorite MLModel item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class MLModelFavorite { public static final String SERIALIZED_NAME_MLMODEL_UUID = "mlmodel_uuid"; @SerializedName(SERIALIZED_NAME_MLMODEL_UUID) @@ -122,50 +122,6 @@ public void setName(String name) { this.name = name; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MLModelFavorite instance itself - */ - public MLModelFavorite putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { MLModelFavorite mlModelFavorite = (MLModelFavorite) o; return Objects.equals(this.mlmodelUuid, mlModelFavorite.mlmodelUuid) && Objects.equals(this.namespace, mlModelFavorite.namespace) && - Objects.equals(this.name, mlModelFavorite.name)&& - Objects.equals(this.additionalProperties, mlModelFavorite.additionalProperties); + Objects.equals(this.name, mlModelFavorite.name); } @Override public int hashCode() { - return Objects.hash(mlmodelUuid, namespace, name, additionalProperties); + return Objects.hash(mlmodelUuid, namespace, name); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" mlmodelUuid: ").append(toIndentedString(mlmodelUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavorite is not found in the empty JSON string", MLModelFavorite.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MLModelFavorite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MLModelFavorite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("mlmodel_uuid") != null && !jsonObj.get("mlmodel_uuid").isJsonNull()) && !jsonObj.get("mlmodel_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mlmodel_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mlmodel_uuid").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MLModelFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public MLModelFavorite read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - MLModelFavorite instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java index bb15bda..ba52b4f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java @@ -53,7 +53,7 @@ /** * Object including MLModel favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class MLModelFavoritesData { public static final String SERIALIZED_NAME_MLMODELS = "mlmodels"; @SerializedName(SERIALIZED_NAME_MLMODELS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MLModelFavoritesData instance itself - */ - public MLModelFavoritesData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } MLModelFavoritesData mlModelFavoritesData = (MLModelFavoritesData) o; return Objects.equals(this.mlmodels, mlModelFavoritesData.mlmodels) && - Objects.equals(this.paginationMetadata, mlModelFavoritesData.paginationMetadata)&& - Objects.equals(this.additionalProperties, mlModelFavoritesData.additionalProperties); + Objects.equals(this.paginationMetadata, mlModelFavoritesData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(mlmodels, paginationMetadata, additionalProperties); + return Objects.hash(mlmodels, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class MLModelFavoritesData {\n"); sb.append(" mlmodels: ").append(toIndentedString(mlmodels)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavoritesData is not found in the empty JSON string", MLModelFavoritesData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MLModelFavoritesData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MLModelFavoritesData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("mlmodels") != null && !jsonObj.get("mlmodels").isJsonNull()) { JsonArray jsonArraymlmodels = jsonObj.getAsJsonArray("mlmodels"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MLModelFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public MLModelFavoritesData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - MLModelFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java index 440be04..a22aa55 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java @@ -52,7 +52,7 @@ /** * a list of max buffer sizes, one per attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class MaxBufferSizes { public static final String SERIALIZED_NAME_MAX_BUFFER_SIZES = "maxBufferSizes"; @SerializedName(SERIALIZED_NAME_MAX_BUFFER_SIZES) @@ -87,50 +87,6 @@ public void setMaxBufferSizes(List maxBufferSizes) { this.maxBufferSizes = maxBufferSizes; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MaxBufferSizes instance itself - */ - public MaxBufferSizes putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } MaxBufferSizes maxBufferSizes = (MaxBufferSizes) o; - return Objects.equals(this.maxBufferSizes, maxBufferSizes.maxBufferSizes)&& - Objects.equals(this.additionalProperties, maxBufferSizes.additionalProperties); + return Objects.equals(this.maxBufferSizes, maxBufferSizes.maxBufferSizes); } @Override public int hashCode() { - return Objects.hash(maxBufferSizes, additionalProperties); + return Objects.hash(maxBufferSizes); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MaxBufferSizes {\n"); sb.append(" maxBufferSizes: ").append(toIndentedString(maxBufferSizes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MaxBufferSizes is not found in the empty JSON string", MaxBufferSizes.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MaxBufferSizes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MaxBufferSizes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("maxBufferSizes") != null && !jsonObj.get("maxBufferSizes").isJsonNull()) { JsonArray jsonArraymaxBufferSizes = jsonObj.getAsJsonArray("maxBufferSizes"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MaxBufferSizes value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public MaxBufferSizes read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - MaxBufferSizes instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java index beda1db..d24b4b8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java @@ -52,7 +52,7 @@ /** * The user's TileDB metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class MetadataStringified { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -87,50 +87,6 @@ public void setEntries(List entries) { this.entries = entries; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MetadataStringified instance itself - */ - public MetadataStringified putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } MetadataStringified metadataStringified = (MetadataStringified) o; - return Objects.equals(this.entries, metadataStringified.entries)&& - Objects.equals(this.additionalProperties, metadataStringified.additionalProperties); + return Objects.equals(this.entries, metadataStringified.entries); } @Override public int hashCode() { - return Objects.hash(entries, additionalProperties); + return Objects.hash(entries); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetadataStringified {\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringified is not found in the empty JSON string", MetadataStringified.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MetadataStringified.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MetadataStringified` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MetadataStringified value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public MetadataStringified read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - MetadataStringified instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java index c7e1a98..58fbc2a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java @@ -49,7 +49,7 @@ /** * key/value pair representing an asset metadata map entry */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class MetadataStringifiedEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -122,50 +122,6 @@ public void setType(String type) { this.type = type; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MetadataStringifiedEntry instance itself - */ - public MetadataStringifiedEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { MetadataStringifiedEntry metadataStringifiedEntry = (MetadataStringifiedEntry) o; return Objects.equals(this.key, metadataStringifiedEntry.key) && Objects.equals(this.value, metadataStringifiedEntry.value) && - Objects.equals(this.type, metadataStringifiedEntry.type)&& - Objects.equals(this.additionalProperties, metadataStringifiedEntry.additionalProperties); + Objects.equals(this.type, metadataStringifiedEntry.type); } @Override public int hashCode() { - return Objects.hash(key, value, type, additionalProperties); + return Objects.hash(key, value, type); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringifiedEntry is not found in the empty JSON string", MetadataStringifiedEntry.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MetadataStringifiedEntry.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MetadataStringifiedEntry` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MetadataStringifiedEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public MetadataStringifiedEntry read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - MetadataStringifiedEntry instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java index 81e3ce7..71cfdbf 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java @@ -58,7 +58,7 @@ /** * User-defined function */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class MultiArrayUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -600,50 +600,6 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MultiArrayUDF instance itself - */ - public MultiArrayUDF putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -676,8 +632,7 @@ public boolean equals(Object o) { Objects.equals(this.arrays, multiArrayUDF.arrays) && Objects.equals(this.timeout, multiArrayUDF.timeout) && Objects.equals(this.taskGraphUuid, multiArrayUDF.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, multiArrayUDF.clientNodeUuid)&& - Objects.equals(this.additionalProperties, multiArrayUDF.additionalProperties); + Objects.equals(this.clientNodeUuid, multiArrayUDF.clientNodeUuid); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -686,7 +641,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(udfInfoName, language, version, imageName, accessCredentialsName, resourceClass, exec, execRaw, resultFormat, taskName, argument, argumentsJson, storedParamUuids, storeResults, dontDownloadResults, ranges, subarray, buffers, arrays, timeout, taskGraphUuid, clientNodeUuid, additionalProperties); + return Objects.hash(udfInfoName, language, version, imageName, accessCredentialsName, resourceClass, exec, execRaw, resultFormat, taskName, argument, argumentsJson, storedParamUuids, storeResults, dontDownloadResults, ranges, subarray, buffers, arrays, timeout, taskGraphUuid, clientNodeUuid); } private static int hashCodeNullable(JsonNullable a) { @@ -722,7 +677,6 @@ public String toString() { sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -784,6 +738,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MultiArrayUDF is not found in the empty JSON string", MultiArrayUDF.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MultiArrayUDF.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MultiArrayUDF` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); @@ -887,28 +849,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MultiArrayUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -916,28 +856,7 @@ else if (entry.getValue() instanceof Character) public MultiArrayUDF read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - MultiArrayUDF instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java b/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java index d99b487..1d04add 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java @@ -50,7 +50,7 @@ /** * object representing a non-empty domain */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class NonEmptyDomain { public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) @@ -100,50 +100,6 @@ public void setIsEmpty(Boolean isEmpty) { this.isEmpty = isEmpty; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NonEmptyDomain instance itself - */ - public NonEmptyDomain putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -156,13 +112,12 @@ public boolean equals(Object o) { } NonEmptyDomain nonEmptyDomain = (NonEmptyDomain) o; return Objects.equals(this.nonEmptyDomain, nonEmptyDomain.nonEmptyDomain) && - Objects.equals(this.isEmpty, nonEmptyDomain.isEmpty)&& - Objects.equals(this.additionalProperties, nonEmptyDomain.additionalProperties); + Objects.equals(this.isEmpty, nonEmptyDomain.isEmpty); } @Override public int hashCode() { - return Objects.hash(nonEmptyDomain, isEmpty, additionalProperties); + return Objects.hash(nonEmptyDomain, isEmpty); } @Override @@ -171,7 +126,6 @@ public String toString() { sb.append("class NonEmptyDomain {\n"); sb.append(" nonEmptyDomain: ").append(toIndentedString(nonEmptyDomain)).append("\n"); sb.append(" isEmpty: ").append(toIndentedString(isEmpty)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -216,6 +170,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NonEmptyDomain.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NonEmptyDomain` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NonEmptyDomain.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -242,28 +204,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NonEmptyDomain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -271,28 +211,7 @@ else if (entry.getValue() instanceof Character) public NonEmptyDomain read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - NonEmptyDomain instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java index 89e1edc..5f89721 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java @@ -49,7 +49,7 @@ /** * Copied notebook uri and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class NotebookCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -145,50 +145,6 @@ public void setId(String id) { this.id = id; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookCopied instance itself - */ - public NotebookCopied putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -203,13 +159,12 @@ public boolean equals(Object o) { return Objects.equals(this.outputUri, notebookCopied.outputUri) && Objects.equals(this.name, notebookCopied.name) && Objects.equals(this.namespace, notebookCopied.namespace) && - Objects.equals(this.id, notebookCopied.id)&& - Objects.equals(this.additionalProperties, notebookCopied.additionalProperties); + Objects.equals(this.id, notebookCopied.id); } @Override public int hashCode() { - return Objects.hash(outputUri, name, namespace, id, additionalProperties); + return Objects.hash(outputUri, name, namespace, id); } @Override @@ -220,7 +175,6 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -266,6 +220,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NotebookCopied.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookCopied` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NotebookCopied.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -302,28 +264,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -331,28 +271,7 @@ else if (entry.getValue() instanceof Character) public NotebookCopied read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - NotebookCopied instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java index 7eb2f72..b62354d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java @@ -49,7 +49,7 @@ /** * Output information required to copy a notebook */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class NotebookCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -122,50 +122,6 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookCopy instance itself - */ - public NotebookCopy putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { NotebookCopy notebookCopy = (NotebookCopy) o; return Objects.equals(this.outputUri, notebookCopy.outputUri) && Objects.equals(this.name, notebookCopy.name) && - Objects.equals(this.namespace, notebookCopy.namespace)&& - Objects.equals(this.additionalProperties, notebookCopy.additionalProperties); + Objects.equals(this.namespace, notebookCopy.namespace); } @Override public int hashCode() { - return Objects.hash(outputUri, name, namespace, additionalProperties); + return Objects.hash(outputUri, name, namespace); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopy is not found in the empty JSON string", NotebookCopy.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NotebookCopy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookCopy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public NotebookCopy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - NotebookCopy instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java index 6f08563..8dcad66 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java @@ -49,7 +49,7 @@ /** * A user-favorite notebook item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class NotebookFavorite { public static final String SERIALIZED_NAME_NOTEBOOK_UUID = "notebook_uuid"; @SerializedName(SERIALIZED_NAME_NOTEBOOK_UUID) @@ -122,50 +122,6 @@ public void setName(String name) { this.name = name; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookFavorite instance itself - */ - public NotebookFavorite putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { NotebookFavorite notebookFavorite = (NotebookFavorite) o; return Objects.equals(this.notebookUuid, notebookFavorite.notebookUuid) && Objects.equals(this.namespace, notebookFavorite.namespace) && - Objects.equals(this.name, notebookFavorite.name)&& - Objects.equals(this.additionalProperties, notebookFavorite.additionalProperties); + Objects.equals(this.name, notebookFavorite.name); } @Override public int hashCode() { - return Objects.hash(notebookUuid, namespace, name, additionalProperties); + return Objects.hash(notebookUuid, namespace, name); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" notebookUuid: ").append(toIndentedString(notebookUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavorite is not found in the empty JSON string", NotebookFavorite.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NotebookFavorite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookFavorite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("notebook_uuid") != null && !jsonObj.get("notebook_uuid").isJsonNull()) && !jsonObj.get("notebook_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `notebook_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notebook_uuid").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public NotebookFavorite read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - NotebookFavorite instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java index fe6fba2..97da8f7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java @@ -53,7 +53,7 @@ /** * Object including notebook favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class NotebookFavoritesData { public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; @SerializedName(SERIALIZED_NAME_NOTEBOOKS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookFavoritesData instance itself - */ - public NotebookFavoritesData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } NotebookFavoritesData notebookFavoritesData = (NotebookFavoritesData) o; return Objects.equals(this.notebooks, notebookFavoritesData.notebooks) && - Objects.equals(this.paginationMetadata, notebookFavoritesData.paginationMetadata)&& - Objects.equals(this.additionalProperties, notebookFavoritesData.additionalProperties); + Objects.equals(this.paginationMetadata, notebookFavoritesData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(notebooks, paginationMetadata, additionalProperties); + return Objects.hash(notebooks, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class NotebookFavoritesData {\n"); sb.append(" notebooks: ").append(toIndentedString(notebooks)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavoritesData is not found in the empty JSON string", NotebookFavoritesData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NotebookFavoritesData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookFavoritesData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public NotebookFavoritesData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - NotebookFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java index 9b2c461..9e12299 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java @@ -51,7 +51,7 @@ /** * Status details of a notebook server */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class NotebookStatus { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -331,50 +331,6 @@ public void setPodStatus(PodStatus podStatus) { this.podStatus = podStatus; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the NotebookStatus instance itself - */ - public NotebookStatus putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -397,8 +353,7 @@ public boolean equals(Object o) { Objects.equals(this.storageLimit, notebookStatus.storageLimit) && Objects.equals(this.cpuCount, notebookStatus.cpuCount) && Objects.equals(this.cost, notebookStatus.cost) && - Objects.equals(this.podStatus, notebookStatus.podStatus)&& - Objects.equals(this.additionalProperties, notebookStatus.additionalProperties); + Objects.equals(this.podStatus, notebookStatus.podStatus); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -407,7 +362,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(namespace, uptime, cpuUsage, gpuUsage, memoryUsage, gpuLimit, memoryLimit, storageUsage, storageLimit, cpuCount, cost, podStatus, additionalProperties); + return Objects.hash(namespace, uptime, cpuUsage, gpuUsage, memoryUsage, gpuLimit, memoryLimit, storageUsage, storageLimit, cpuCount, cost, podStatus); } private static int hashCodeNullable(JsonNullable a) { @@ -433,7 +388,6 @@ public String toString() { sb.append(" cpuCount: ").append(toIndentedString(cpuCount)).append("\n"); sb.append(" cost: ").append(toIndentedString(cost)).append("\n"); sb.append(" podStatus: ").append(toIndentedString(podStatus)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -485,6 +439,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookStatus is not found in the empty JSON string", NotebookStatus.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NotebookStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); @@ -510,28 +472,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -539,28 +479,7 @@ else if (entry.getValue() instanceof Character) public NotebookStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - NotebookStatus instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java index d5a4402..ab12201 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java @@ -58,7 +58,7 @@ /** * Organization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Organization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -456,50 +456,6 @@ public void setAssumeRoleArn(String assumeRoleArn) { this.assumeRoleArn = assumeRoleArn; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Organization instance itself - */ - public Organization putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -527,8 +483,7 @@ public boolean equals(Object o) { Objects.equals(this.defaultS3PathCredentialsName, organization.defaultS3PathCredentialsName) && Objects.equals(this.assetLocations, organization.assetLocations) && Objects.equals(this.stripeConnect, organization.stripeConnect) && - Objects.equals(this.assumeRoleArn, organization.assumeRoleArn)&& - Objects.equals(this.additionalProperties, organization.additionalProperties); + Objects.equals(this.assumeRoleArn, organization.assumeRoleArn); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -537,7 +492,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, role, name, createdAt, updatedAt, logo, description, users, allowedActions, numOfArrays, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, stripeConnect, assumeRoleArn, additionalProperties); + return Objects.hash(id, role, name, createdAt, updatedAt, logo, description, users, allowedActions, numOfArrays, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, stripeConnect, assumeRoleArn); } private static int hashCodeNullable(JsonNullable a) { @@ -568,7 +523,6 @@ public String toString() { sb.append(" assetLocations: ").append(toIndentedString(assetLocations)).append("\n"); sb.append(" stripeConnect: ").append(toIndentedString(stripeConnect)).append("\n"); sb.append(" assumeRoleArn: ").append(toIndentedString(assumeRoleArn)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -627,6 +581,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Organization.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Organization` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Organization.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -702,28 +664,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Organization value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -731,28 +671,7 @@ else if (entry.getValue() instanceof Character) public Organization read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Organization instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java index c8af163..6a712c4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java @@ -33,6 +33,8 @@ public enum OrganizationRoles { ADMIN("admin"), + READ_WRITE_DELETE("read_write_delete"), + READ_WRITE("read_write"), READ_ONLY("read_only"); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java index 06aea63..5b1f3c0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java @@ -51,7 +51,7 @@ /** * OrganizationUpdate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class OrganizationUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -193,50 +193,6 @@ public void setAssetLocations(AssetLocations assetLocations) { this.assetLocations = assetLocations; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the OrganizationUpdate instance itself - */ - public OrganizationUpdate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -253,8 +209,7 @@ public boolean equals(Object o) { Objects.equals(this.description, organizationUpdate.description) && Objects.equals(this.defaultS3Path, organizationUpdate.defaultS3Path) && Objects.equals(this.defaultS3PathCredentialsName, organizationUpdate.defaultS3PathCredentialsName) && - Objects.equals(this.assetLocations, organizationUpdate.assetLocations)&& - Objects.equals(this.additionalProperties, organizationUpdate.additionalProperties); + Objects.equals(this.assetLocations, organizationUpdate.assetLocations); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -263,7 +218,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, logo, description, defaultS3Path, defaultS3PathCredentialsName, assetLocations, additionalProperties); + return Objects.hash(name, logo, description, defaultS3Path, defaultS3PathCredentialsName, assetLocations); } private static int hashCodeNullable(JsonNullable a) { @@ -283,7 +238,6 @@ public String toString() { sb.append(" defaultS3Path: ").append(toIndentedString(defaultS3Path)).append("\n"); sb.append(" defaultS3PathCredentialsName: ").append(toIndentedString(defaultS3PathCredentialsName)).append("\n"); sb.append(" assetLocations: ").append(toIndentedString(assetLocations)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -329,6 +283,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUpdate is not found in the empty JSON string", OrganizationUpdate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OrganizationUpdate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `OrganizationUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); @@ -366,28 +328,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, OrganizationUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -395,28 +335,7 @@ else if (entry.getValue() instanceof Character) public OrganizationUpdate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - OrganizationUpdate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java index 14b2330..82ea31d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java @@ -53,7 +53,7 @@ /** * user in an organization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class OrganizationUser { public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -249,50 +249,6 @@ public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the OrganizationUser instance itself - */ - public OrganizationUser putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -311,13 +267,12 @@ public boolean equals(Object o) { Objects.equals(this.userEmail, organizationUser.userEmail) && Objects.equals(this.organizationName, organizationUser.organizationName) && Objects.equals(this.role, organizationUser.role) && - Objects.equals(this.allowedActions, organizationUser.allowedActions)&& - Objects.equals(this.additionalProperties, organizationUser.additionalProperties); + Objects.equals(this.allowedActions, organizationUser.allowedActions); } @Override public int hashCode() { - return Objects.hash(userId, organizationId, username, userFullName, userEmail, organizationName, role, allowedActions, additionalProperties); + return Objects.hash(userId, organizationId, username, userFullName, userEmail, organizationName, role, allowedActions); } @Override @@ -332,7 +287,6 @@ public String toString() { sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" allowedActions: ").append(toIndentedString(allowedActions)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -380,6 +334,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUser is not found in the empty JSON string", OrganizationUser.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OrganizationUser.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `OrganizationUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("user_id") != null && !jsonObj.get("user_id").isJsonNull()) && !jsonObj.get("user_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_id").toString())); @@ -424,28 +386,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, OrganizationUser value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -453,28 +393,7 @@ else if (entry.getValue() instanceof Character) public OrganizationUser read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - OrganizationUser instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java index 00d412d..56f9922 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java @@ -50,7 +50,7 @@ /** * PaginationMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class PaginationMetadata { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -146,50 +146,6 @@ public void setTotalItems(BigDecimal totalItems) { this.totalItems = totalItems; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the PaginationMetadata instance itself - */ - public PaginationMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -204,13 +160,12 @@ public boolean equals(Object o) { return Objects.equals(this.page, paginationMetadata.page) && Objects.equals(this.perPage, paginationMetadata.perPage) && Objects.equals(this.totalPages, paginationMetadata.totalPages) && - Objects.equals(this.totalItems, paginationMetadata.totalItems)&& - Objects.equals(this.additionalProperties, paginationMetadata.additionalProperties); + Objects.equals(this.totalItems, paginationMetadata.totalItems); } @Override public int hashCode() { - return Objects.hash(page, perPage, totalPages, totalItems, additionalProperties); + return Objects.hash(page, perPage, totalPages, totalItems); } @Override @@ -221,7 +176,6 @@ public String toString() { sb.append(" perPage: ").append(toIndentedString(perPage)).append("\n"); sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -253,22 +207,6 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PaginationMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (io.tiledb.cloud.rest_api.v2.model.PaginationMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", io.tiledb.cloud.rest_api.v2.model.PaginationMetadata.openapiRequiredFields.toString())); - } - } - } - /** * Validates the JSON Element and throws an exception if issues found * @@ -281,6 +219,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", PaginationMetadata.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PaginationMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PaginationMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); } @@ -299,28 +245,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, PaginationMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -328,28 +252,7 @@ else if (entry.getValue() instanceof Character) public PaginationMetadata read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - PaginationMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java index 5f87230..df69a90 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java @@ -54,7 +54,7 @@ /** * Pricing created by converting an array to product */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Pricing { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -357,50 +357,6 @@ public void setActivated(Boolean activated) { this.activated = activated; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Pricing instance itself - */ - public Pricing putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -424,13 +380,12 @@ public boolean equals(Object o) { Objects.equals(this.interval, pricing.interval) && Objects.equals(this.dividedBy, pricing.dividedBy) && Objects.equals(this.charge, pricing.charge) && - Objects.equals(this.activated, pricing.activated)&& - Objects.equals(this.additionalProperties, pricing.additionalProperties); + Objects.equals(this.activated, pricing.activated); } @Override public int hashCode() { - return Objects.hash(id, arrayUuid, pricingName, pricingType, productName, productStatementDescriptor, productUnitLabel, currency, aggregateUsage, interval, dividedBy, charge, activated, additionalProperties); + return Objects.hash(id, arrayUuid, pricingName, pricingType, productName, productStatementDescriptor, productUnitLabel, currency, aggregateUsage, interval, dividedBy, charge, activated); } @Override @@ -450,7 +405,6 @@ public String toString() { sb.append(" dividedBy: ").append(toIndentedString(dividedBy)).append("\n"); sb.append(" charge: ").append(toIndentedString(charge)).append("\n"); sb.append(" activated: ").append(toIndentedString(activated)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -503,6 +457,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Pricing is not found in the empty JSON string", Pricing.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Pricing.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Pricing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -556,28 +518,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Pricing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -585,28 +525,7 @@ else if (entry.getValue() instanceof Character) public Pricing read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Pricing instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java index 98c8469..c74277d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java @@ -57,7 +57,7 @@ /** * Query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Query { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -276,50 +276,6 @@ public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { this.totalVarLenBufferBytes = totalVarLenBufferBytes; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Query instance itself - */ - public Query putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -339,13 +295,12 @@ public boolean equals(Object o) { Objects.equals(this.reader, query.reader) && Objects.equals(this.array, query.array) && Objects.equals(this.totalFixedLengthBufferBytes, query.totalFixedLengthBufferBytes) && - Objects.equals(this.totalVarLenBufferBytes, query.totalVarLenBufferBytes)&& - Objects.equals(this.additionalProperties, query.additionalProperties); + Objects.equals(this.totalVarLenBufferBytes, query.totalVarLenBufferBytes); } @Override public int hashCode() { - return Objects.hash(type, layout, status, attributeBufferHeaders, writer, reader, array, totalFixedLengthBufferBytes, totalVarLenBufferBytes, additionalProperties); + return Objects.hash(type, layout, status, attributeBufferHeaders, writer, reader, array, totalFixedLengthBufferBytes, totalVarLenBufferBytes); } @Override @@ -361,7 +316,6 @@ public String toString() { sb.append(" array: ").append(toIndentedString(array)).append("\n"); sb.append(" totalFixedLengthBufferBytes: ").append(toIndentedString(totalFixedLengthBufferBytes)).append("\n"); sb.append(" totalVarLenBufferBytes: ").append(toIndentedString(totalVarLenBufferBytes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -418,6 +372,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Query.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Query` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Query.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -468,28 +430,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Query value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -497,28 +437,7 @@ else if (entry.getValue() instanceof Character) public Query read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Query instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java index 6af759a..c36dd4d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java @@ -52,7 +52,7 @@ /** * Query returning results as JSON */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class QueryJson { public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; @SerializedName(SERIALIZED_NAME_QUERY_RANGES) @@ -110,50 +110,6 @@ public void setFields(List fields) { this.fields = fields; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the QueryJson instance itself - */ - public QueryJson putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -166,13 +122,12 @@ public boolean equals(Object o) { } QueryJson queryJson = (QueryJson) o; return Objects.equals(this.queryRanges, queryJson.queryRanges) && - Objects.equals(this.fields, queryJson.fields)&& - Objects.equals(this.additionalProperties, queryJson.additionalProperties); + Objects.equals(this.fields, queryJson.fields); } @Override public int hashCode() { - return Objects.hash(queryRanges, fields, additionalProperties); + return Objects.hash(queryRanges, fields); } @Override @@ -181,7 +136,6 @@ public String toString() { sb.append("class QueryJson {\n"); sb.append(" queryRanges: ").append(toIndentedString(queryRanges)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,6 +177,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in QueryJson is not found in the empty JSON string", QueryJson.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!QueryJson.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryJson` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `query_ranges` if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) { @@ -249,28 +211,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, QueryJson value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -278,28 +218,7 @@ else if (entry.getValue() instanceof Character) public QueryJson read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - QueryJson instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java index db2e909..4b79707 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java @@ -53,7 +53,7 @@ /** * Subarray bounds to query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class QueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -111,50 +111,6 @@ public void setRanges(List> ranges) { this.ranges = ranges; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the QueryRanges instance itself - */ - public QueryRanges putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } QueryRanges queryRanges = (QueryRanges) o; return Objects.equals(this.layout, queryRanges.layout) && - Objects.equals(this.ranges, queryRanges.ranges)&& - Objects.equals(this.additionalProperties, queryRanges.additionalProperties); + Objects.equals(this.ranges, queryRanges.ranges); } @Override public int hashCode() { - return Objects.hash(layout, ranges, additionalProperties); + return Objects.hash(layout, ranges); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class QueryRanges {\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in QueryRanges is not found in the empty JSON string", QueryRanges.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!QueryRanges.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryRanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `layout` if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { @@ -250,28 +212,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, QueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -279,28 +219,7 @@ else if (entry.getValue() instanceof Character) public QueryRanges read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - QueryRanges instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java index 52a4d8a..b23995e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java @@ -52,7 +52,7 @@ /** * Read struct (can't be called reader due to class name conflict) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class QueryReader { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -194,50 +194,6 @@ public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { this.varOffsetsBitsize = varOffsetsBitsize; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the QueryReader instance itself - */ - public QueryReader putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -254,13 +210,12 @@ public boolean equals(Object o) { Objects.equals(this.readState, queryReader.readState) && Objects.equals(this.varOffsetsMode, queryReader.varOffsetsMode) && Objects.equals(this.varOffsetsAddExtraElement, queryReader.varOffsetsAddExtraElement) && - Objects.equals(this.varOffsetsBitsize, queryReader.varOffsetsBitsize)&& - Objects.equals(this.additionalProperties, queryReader.additionalProperties); + Objects.equals(this.varOffsetsBitsize, queryReader.varOffsetsBitsize); } @Override public int hashCode() { - return Objects.hash(layout, subarray, readState, varOffsetsMode, varOffsetsAddExtraElement, varOffsetsBitsize, additionalProperties); + return Objects.hash(layout, subarray, readState, varOffsetsMode, varOffsetsAddExtraElement, varOffsetsBitsize); } @Override @@ -273,7 +228,6 @@ public String toString() { sb.append(" varOffsetsMode: ").append(toIndentedString(varOffsetsMode)).append("\n"); sb.append(" varOffsetsAddExtraElement: ").append(toIndentedString(varOffsetsAddExtraElement)).append("\n"); sb.append(" varOffsetsBitsize: ").append(toIndentedString(varOffsetsBitsize)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -319,6 +273,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in QueryReader is not found in the empty JSON string", QueryReader.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!QueryReader.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryReader` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `layout` if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { @@ -352,28 +314,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, QueryReader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -381,28 +321,7 @@ else if (entry.getValue() instanceof Character) public QueryReader read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - QueryReader instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java index 8c5bd25..cb7e71d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java @@ -50,7 +50,7 @@ /** * state for reads */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ReadState { public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; @SerializedName(SERIALIZED_NAME_INITIALIZED) @@ -146,50 +146,6 @@ public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { this.subarrayPartitioner = subarrayPartitioner; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ReadState instance itself - */ - public ReadState putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -204,13 +160,12 @@ public boolean equals(Object o) { return Objects.equals(this.initialized, readState.initialized) && Objects.equals(this.overflowed, readState.overflowed) && Objects.equals(this.unsplittable, readState.unsplittable) && - Objects.equals(this.subarrayPartitioner, readState.subarrayPartitioner)&& - Objects.equals(this.additionalProperties, readState.additionalProperties); + Objects.equals(this.subarrayPartitioner, readState.subarrayPartitioner); } @Override public int hashCode() { - return Objects.hash(initialized, overflowed, unsplittable, subarrayPartitioner, additionalProperties); + return Objects.hash(initialized, overflowed, unsplittable, subarrayPartitioner); } @Override @@ -221,7 +176,6 @@ public String toString() { sb.append(" overflowed: ").append(toIndentedString(overflowed)).append("\n"); sb.append(" unsplittable: ").append(toIndentedString(unsplittable)).append("\n"); sb.append(" subarrayPartitioner: ").append(toIndentedString(subarrayPartitioner)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,6 +219,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ReadState is not found in the empty JSON string", ReadState.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ReadState.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ReadState` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarrayPartitioner` if (jsonObj.get("subarrayPartitioner") != null && !jsonObj.get("subarrayPartitioner").isJsonNull()) { @@ -287,28 +249,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ReadState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -316,28 +256,7 @@ else if (entry.getValue() instanceof Character) public ReadState read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ReadState instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java index 87dc568..c664f48 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java @@ -53,7 +53,7 @@ /** * The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -257,50 +257,6 @@ public void setNodes(List nodes) { this.nodes = nodes; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RegisteredTaskGraph instance itself - */ - public RegisteredTaskGraph putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -319,8 +275,7 @@ public boolean equals(Object o) { Objects.equals(this.licenseId, registeredTaskGraph.licenseId) && Objects.equals(this.licenseText, registeredTaskGraph.licenseText) && Objects.equals(this.tags, registeredTaskGraph.tags) && - Objects.equals(this.nodes, registeredTaskGraph.nodes)&& - Objects.equals(this.additionalProperties, registeredTaskGraph.additionalProperties); + Objects.equals(this.nodes, registeredTaskGraph.nodes); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -329,7 +284,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, namespace, name, readme, licenseId, licenseText, tags, nodes, additionalProperties); + return Objects.hash(uuid, namespace, name, readme, licenseId, licenseText, tags, nodes); } private static int hashCodeNullable(JsonNullable a) { @@ -351,7 +306,6 @@ public String toString() { sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -399,6 +353,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in RegisteredTaskGraph is not found in the empty JSON string", RegisteredTaskGraph.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RegisteredTaskGraph.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RegisteredTaskGraph` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); @@ -453,28 +415,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, RegisteredTaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -482,28 +422,7 @@ else if (entry.getValue() instanceof Character) public RegisteredTaskGraph read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - RegisteredTaskGraph instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java index c0f1c46..f9f9654 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java @@ -49,7 +49,7 @@ /** * Password to update */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ResetUserPasswordRequest { public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) @@ -76,50 +76,6 @@ public void setPassword(String password) { this.password = password; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ResetUserPasswordRequest instance itself - */ - public ResetUserPasswordRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -131,13 +87,12 @@ public boolean equals(Object o) { return false; } ResetUserPasswordRequest resetUserPasswordRequest = (ResetUserPasswordRequest) o; - return Objects.equals(this.password, resetUserPasswordRequest.password)&& - Objects.equals(this.additionalProperties, resetUserPasswordRequest.additionalProperties); + return Objects.equals(this.password, resetUserPasswordRequest.password); } @Override public int hashCode() { - return Objects.hash(password, additionalProperties); + return Objects.hash(password); } @Override @@ -145,7 +100,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResetUserPasswordRequest {\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -186,6 +140,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ResetUserPasswordRequest is not found in the empty JSON string", ResetUserPasswordRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ResetUserPasswordRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResetUserPasswordRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); @@ -207,28 +169,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ResetUserPasswordRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -236,28 +176,7 @@ else if (entry.getValue() instanceof Character) public ResetUserPasswordRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - ResetUserPasswordRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java index 1d8acba..9188def 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java @@ -51,7 +51,7 @@ /** * RetryStrategy provides controls on how to retry a taskgraph node */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class RetryStrategy { public static final String SERIALIZED_NAME_BACKOFF = "backoff"; @SerializedName(SERIALIZED_NAME_BACKOFF) @@ -147,50 +147,6 @@ public void setRetryPolicy(RetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RetryStrategy instance itself - */ - public RetryStrategy putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -205,13 +161,12 @@ public boolean equals(Object o) { return Objects.equals(this.backoff, retryStrategy.backoff) && Objects.equals(this.expression, retryStrategy.expression) && Objects.equals(this.limit, retryStrategy.limit) && - Objects.equals(this.retryPolicy, retryStrategy.retryPolicy)&& - Objects.equals(this.additionalProperties, retryStrategy.additionalProperties); + Objects.equals(this.retryPolicy, retryStrategy.retryPolicy); } @Override public int hashCode() { - return Objects.hash(backoff, expression, limit, retryPolicy, additionalProperties); + return Objects.hash(backoff, expression, limit, retryPolicy); } @Override @@ -222,7 +177,6 @@ public String toString() { sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -266,6 +220,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in RetryStrategy is not found in the empty JSON string", RetryStrategy.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RetryStrategy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RetryStrategy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `backoff` if (jsonObj.get("backoff") != null && !jsonObj.get("backoff").isJsonNull()) { @@ -295,28 +257,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, RetryStrategy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -324,28 +264,7 @@ else if (entry.getValue() instanceof Character) public RetryStrategy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - RetryStrategy instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java index 4c63642..5f31704 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java @@ -52,7 +52,7 @@ /** * Parameters for running sql query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SQLParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -325,50 +325,6 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SQLParameters instance itself - */ - public SQLParameters putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -390,13 +346,12 @@ public boolean equals(Object o) { Objects.equals(this.initCommands, sqLParameters.initCommands) && Objects.equals(this.parameters, sqLParameters.parameters) && Objects.equals(this.taskGraphUuid, sqLParameters.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, sqLParameters.clientNodeUuid)&& - Objects.equals(this.additionalProperties, sqLParameters.additionalProperties); + Objects.equals(this.clientNodeUuid, sqLParameters.clientNodeUuid); } @Override public int hashCode() { - return Objects.hash(name, query, outputUri, storeResults, dontDownloadResults, resourceClass, resultFormat, initCommands, parameters, taskGraphUuid, clientNodeUuid, additionalProperties); + return Objects.hash(name, query, outputUri, storeResults, dontDownloadResults, resourceClass, resultFormat, initCommands, parameters, taskGraphUuid, clientNodeUuid); } @Override @@ -414,7 +369,6 @@ public String toString() { sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -465,6 +419,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SQLParameters is not found in the empty JSON string", SQLParameters.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SQLParameters.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SQLParameters` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); @@ -513,28 +475,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SQLParameters value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -542,28 +482,7 @@ else if (entry.getValue() instanceof Character) public SQLParameters read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SQLParameters instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java index 38d0496..894e9d3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java @@ -55,7 +55,7 @@ /** * The information used to set up a single-sign on connection to a customer domain. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SSODomainConfig { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -251,50 +251,6 @@ public void setCheckResults(List checkResults) { this.checkResults = checkResults; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SSODomainConfig instance itself - */ - public SSODomainConfig putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -313,8 +269,7 @@ public boolean equals(Object o) { Objects.equals(this.oidcClientSecret, ssODomainConfig.oidcClientSecret) && Objects.equals(this.domainSetup, ssODomainConfig.domainSetup) && Objects.equals(this.verificationStatus, ssODomainConfig.verificationStatus) && - Objects.equals(this.checkResults, ssODomainConfig.checkResults)&& - Objects.equals(this.additionalProperties, ssODomainConfig.additionalProperties); + Objects.equals(this.checkResults, ssODomainConfig.checkResults); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -323,7 +278,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, domain, oidcIssuer, oidcClientId, oidcClientSecret, domainSetup, verificationStatus, checkResults, additionalProperties); + return Objects.hash(uuid, domain, oidcIssuer, oidcClientId, oidcClientSecret, domainSetup, verificationStatus, checkResults); } private static int hashCodeNullable(JsonNullable a) { @@ -345,7 +300,6 @@ public String toString() { sb.append(" domainSetup: ").append(toIndentedString(domainSetup)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append(" checkResults: ").append(toIndentedString(checkResults)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -393,6 +347,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfig is not found in the empty JSON string", SSODomainConfig.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SSODomainConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SSODomainConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); @@ -448,28 +410,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SSODomainConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -477,28 +417,7 @@ else if (entry.getValue() instanceof Character) public SSODomainConfig read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SSODomainConfig instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java index 4e2cdfc..f4dc407 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java @@ -52,7 +52,7 @@ /** * The response to a request for the list of domain claims associated with a particular organization. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SSODomainConfigResponse { public static final String SERIALIZED_NAME_DOMAIN_CONFIGS = "domain_configs"; @SerializedName(SERIALIZED_NAME_DOMAIN_CONFIGS) @@ -87,50 +87,6 @@ public void setDomainConfigs(List domainConfigs) { this.domainConfigs = domainConfigs; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SSODomainConfigResponse instance itself - */ - public SSODomainConfigResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } SSODomainConfigResponse ssODomainConfigResponse = (SSODomainConfigResponse) o; - return Objects.equals(this.domainConfigs, ssODomainConfigResponse.domainConfigs)&& - Objects.equals(this.additionalProperties, ssODomainConfigResponse.additionalProperties); + return Objects.equals(this.domainConfigs, ssODomainConfigResponse.domainConfigs); } @Override public int hashCode() { - return Objects.hash(domainConfigs, additionalProperties); + return Objects.hash(domainConfigs); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SSODomainConfigResponse {\n"); sb.append(" domainConfigs: ").append(toIndentedString(domainConfigs)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfigResponse is not found in the empty JSON string", SSODomainConfigResponse.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SSODomainConfigResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SSODomainConfigResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("domain_configs") != null && !jsonObj.get("domain_configs").isJsonNull()) { JsonArray jsonArraydomainConfigs = jsonObj.getAsJsonArray("domain_configs"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SSODomainConfigResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public SSODomainConfigResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SSODomainConfigResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java index 94d9127..1e914f5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java @@ -49,7 +49,7 @@ /** * Configuration settings to verify ownership of a given domain. At least one of these must be completed enable user login from the domain. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SSODomainSetup { public static final String SERIALIZED_NAME_TXT = "txt"; @SerializedName(SERIALIZED_NAME_TXT) @@ -122,50 +122,6 @@ public void setCnameDst(String cnameDst) { this.cnameDst = cnameDst; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SSODomainSetup instance itself - */ - public SSODomainSetup putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { SSODomainSetup ssODomainSetup = (SSODomainSetup) o; return Objects.equals(this.txt, ssODomainSetup.txt) && Objects.equals(this.cnameSrc, ssODomainSetup.cnameSrc) && - Objects.equals(this.cnameDst, ssODomainSetup.cnameDst)&& - Objects.equals(this.additionalProperties, ssODomainSetup.additionalProperties); + Objects.equals(this.cnameDst, ssODomainSetup.cnameDst); } @Override public int hashCode() { - return Objects.hash(txt, cnameSrc, cnameDst, additionalProperties); + return Objects.hash(txt, cnameSrc, cnameDst); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" txt: ").append(toIndentedString(txt)).append("\n"); sb.append(" cnameSrc: ").append(toIndentedString(cnameSrc)).append("\n"); sb.append(" cnameDst: ").append(toIndentedString(cnameDst)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainSetup is not found in the empty JSON string", SSODomainSetup.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SSODomainSetup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SSODomainSetup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("txt") != null && !jsonObj.get("txt").isJsonNull()) && !jsonObj.get("txt").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `txt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("txt").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SSODomainSetup value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public SSODomainSetup read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SSODomainSetup instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java index f3c175d..f7a04dc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java @@ -51,7 +51,7 @@ /** * SharePaymentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SharePaymentRequest { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -86,50 +86,6 @@ public void setNamespaces(List namespaces) { this.namespaces = namespaces; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SharePaymentRequest instance itself - */ - public SharePaymentRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -141,13 +97,12 @@ public boolean equals(Object o) { return false; } SharePaymentRequest sharePaymentRequest = (SharePaymentRequest) o; - return Objects.equals(this.namespaces, sharePaymentRequest.namespaces)&& - Objects.equals(this.additionalProperties, sharePaymentRequest.additionalProperties); + return Objects.equals(this.namespaces, sharePaymentRequest.namespaces); } @Override public int hashCode() { - return Objects.hash(namespaces, additionalProperties); + return Objects.hash(namespaces); } @Override @@ -155,7 +110,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SharePaymentRequest {\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,6 +150,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SharePaymentRequest is not found in the empty JSON string", SharePaymentRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SharePaymentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SharePaymentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { @@ -218,28 +180,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SharePaymentRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -247,28 +187,7 @@ else if (entry.getValue() instanceof Character) public SharePaymentRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SharePaymentRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java index bc5fa0d..6260d10 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java @@ -50,7 +50,7 @@ /** * Single Fragment info of an array */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SingleFragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_NAME = "ArraySchemaName"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_NAME) @@ -100,50 +100,6 @@ public void setMeta(FragmentMetadata meta) { this.meta = meta; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SingleFragmentInfo instance itself - */ - public SingleFragmentInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -156,13 +112,12 @@ public boolean equals(Object o) { } SingleFragmentInfo singleFragmentInfo = (SingleFragmentInfo) o; return Objects.equals(this.arraySchemaName, singleFragmentInfo.arraySchemaName) && - Objects.equals(this.meta, singleFragmentInfo.meta)&& - Objects.equals(this.additionalProperties, singleFragmentInfo.additionalProperties); + Objects.equals(this.meta, singleFragmentInfo.meta); } @Override public int hashCode() { - return Objects.hash(arraySchemaName, meta, additionalProperties); + return Objects.hash(arraySchemaName, meta); } @Override @@ -171,7 +126,6 @@ public String toString() { sb.append("class SingleFragmentInfo {\n"); sb.append(" arraySchemaName: ").append(toIndentedString(arraySchemaName)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -213,6 +167,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SingleFragmentInfo is not found in the empty JSON string", SingleFragmentInfo.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SingleFragmentInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SingleFragmentInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("ArraySchemaName") != null && !jsonObj.get("ArraySchemaName").isJsonNull()) && !jsonObj.get("ArraySchemaName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `ArraySchemaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ArraySchemaName").toString())); @@ -238,28 +200,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SingleFragmentInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -267,28 +207,7 @@ else if (entry.getValue() instanceof Character) public SingleFragmentInfo read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SingleFragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java index 938bdea..4d62a25 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java @@ -50,7 +50,7 @@ /** * The path at which a given asset will be stored, and the credentials used to access that asset. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class StorageLocation { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -100,50 +100,6 @@ public void setCredentialsName(String credentialsName) { this.credentialsName = credentialsName; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the StorageLocation instance itself - */ - public StorageLocation putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -156,8 +112,7 @@ public boolean equals(Object o) { } StorageLocation storageLocation = (StorageLocation) o; return Objects.equals(this.path, storageLocation.path) && - Objects.equals(this.credentialsName, storageLocation.credentialsName)&& - Objects.equals(this.additionalProperties, storageLocation.additionalProperties); + Objects.equals(this.credentialsName, storageLocation.credentialsName); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -166,7 +121,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(path, credentialsName, additionalProperties); + return Objects.hash(path, credentialsName); } private static int hashCodeNullable(JsonNullable a) { @@ -182,7 +137,6 @@ public String toString() { sb.append("class StorageLocation {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" credentialsName: ").append(toIndentedString(credentialsName)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in StorageLocation is not found in the empty JSON string", StorageLocation.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!StorageLocation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `StorageLocation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); @@ -248,28 +210,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, StorageLocation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -277,28 +217,7 @@ else if (entry.getValue() instanceof Character) public StorageLocation read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - StorageLocation instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java index a29f6b2..2df4e24 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java @@ -53,7 +53,7 @@ /** * A Subarray */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Subarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -111,50 +111,6 @@ public void setRanges(List ranges) { this.ranges = ranges; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Subarray instance itself - */ - public Subarray putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } Subarray subarray = (Subarray) o; return Objects.equals(this.layout, subarray.layout) && - Objects.equals(this.ranges, subarray.ranges)&& - Objects.equals(this.additionalProperties, subarray.additionalProperties); + Objects.equals(this.ranges, subarray.ranges); } @Override public int hashCode() { - return Objects.hash(layout, ranges, additionalProperties); + return Objects.hash(layout, ranges); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class Subarray {\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Subarray is not found in the empty JSON string", Subarray.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Subarray.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Subarray` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `layout` if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Subarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public Subarray read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Subarray instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java index bd1aefc..1dcf77f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java @@ -55,7 +55,7 @@ /** * The subarray partitioner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SubarrayPartitioner { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -205,50 +205,6 @@ public void setMemoryBudgetVar(Integer memoryBudgetVar) { this.memoryBudgetVar = memoryBudgetVar; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayPartitioner instance itself - */ - public SubarrayPartitioner putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -265,13 +221,12 @@ public boolean equals(Object o) { Objects.equals(this.current, subarrayPartitioner.current) && Objects.equals(this.state, subarrayPartitioner.state) && Objects.equals(this.memoryBudget, subarrayPartitioner.memoryBudget) && - Objects.equals(this.memoryBudgetVar, subarrayPartitioner.memoryBudgetVar)&& - Objects.equals(this.additionalProperties, subarrayPartitioner.additionalProperties); + Objects.equals(this.memoryBudgetVar, subarrayPartitioner.memoryBudgetVar); } @Override public int hashCode() { - return Objects.hash(subarray, budget, current, state, memoryBudget, memoryBudgetVar, additionalProperties); + return Objects.hash(subarray, budget, current, state, memoryBudget, memoryBudgetVar); } @Override @@ -284,7 +239,6 @@ public String toString() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" memoryBudget: ").append(toIndentedString(memoryBudget)).append("\n"); sb.append(" memoryBudgetVar: ").append(toIndentedString(memoryBudgetVar)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -330,6 +284,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitioner is not found in the empty JSON string", SubarrayPartitioner.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SubarrayPartitioner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitioner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { @@ -374,28 +336,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayPartitioner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -403,28 +343,7 @@ else if (entry.getValue() instanceof Character) public SubarrayPartitioner read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SubarrayPartitioner instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java index fe2fc02..e2c9c46 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java @@ -50,7 +50,7 @@ /** * The current partition info */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SubarrayPartitionerCurrent { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -146,50 +146,6 @@ public void setSplitMultiRange(Boolean splitMultiRange) { this.splitMultiRange = splitMultiRange; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayPartitionerCurrent instance itself - */ - public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -204,13 +160,12 @@ public boolean equals(Object o) { return Objects.equals(this.subarray, subarrayPartitionerCurrent.subarray) && Objects.equals(this.start, subarrayPartitionerCurrent.start) && Objects.equals(this.end, subarrayPartitionerCurrent.end) && - Objects.equals(this.splitMultiRange, subarrayPartitionerCurrent.splitMultiRange)&& - Objects.equals(this.additionalProperties, subarrayPartitionerCurrent.additionalProperties); + Objects.equals(this.splitMultiRange, subarrayPartitionerCurrent.splitMultiRange); } @Override public int hashCode() { - return Objects.hash(subarray, start, end, splitMultiRange, additionalProperties); + return Objects.hash(subarray, start, end, splitMultiRange); } @Override @@ -221,7 +176,6 @@ public String toString() { sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" splitMultiRange: ").append(toIndentedString(splitMultiRange)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,6 +219,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerCurrent is not found in the empty JSON string", SubarrayPartitionerCurrent.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SubarrayPartitionerCurrent.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitionerCurrent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { @@ -287,28 +249,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -316,28 +256,7 @@ else if (entry.getValue() instanceof Character) public SubarrayPartitionerCurrent read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SubarrayPartitionerCurrent instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java index f8712ee..76777ac 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java @@ -52,7 +52,7 @@ /** * The state information for the remaining partitions to be produced */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -164,50 +164,6 @@ public void setMultiRange(List multiRange) { this.multiRange = multiRange; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayPartitionerState instance itself - */ - public SubarrayPartitionerState putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -222,13 +178,12 @@ public boolean equals(Object o) { return Objects.equals(this.start, subarrayPartitionerState.start) && Objects.equals(this.end, subarrayPartitionerState.end) && Objects.equals(this.singleRange, subarrayPartitionerState.singleRange) && - Objects.equals(this.multiRange, subarrayPartitionerState.multiRange)&& - Objects.equals(this.additionalProperties, subarrayPartitionerState.additionalProperties); + Objects.equals(this.multiRange, subarrayPartitionerState.multiRange); } @Override public int hashCode() { - return Objects.hash(start, end, singleRange, multiRange, additionalProperties); + return Objects.hash(start, end, singleRange, multiRange); } @Override @@ -239,7 +194,6 @@ public String toString() { sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" singleRange: ").append(toIndentedString(singleRange)).append("\n"); sb.append(" multiRange: ").append(toIndentedString(multiRange)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -283,6 +237,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerState is not found in the empty JSON string", SubarrayPartitionerState.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SubarrayPartitionerState.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitionerState` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("singleRange") != null && !jsonObj.get("singleRange").isJsonNull()) { JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); @@ -329,28 +291,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayPartitionerState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -358,28 +298,7 @@ else if (entry.getValue() instanceof Character) public SubarrayPartitionerState read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SubarrayPartitionerState instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java index 023d9fd..74090f4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java @@ -52,7 +52,7 @@ /** * A set of 1D ranges for a subarray */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SubarrayRanges { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -133,50 +133,6 @@ public void setBuffer(List buffer) { this.buffer = buffer; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SubarrayRanges instance itself - */ - public SubarrayRanges putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -190,13 +146,12 @@ public boolean equals(Object o) { SubarrayRanges subarrayRanges = (SubarrayRanges) o; return Objects.equals(this.type, subarrayRanges.type) && Objects.equals(this.hasDefaultRange, subarrayRanges.hasDefaultRange) && - Objects.equals(this.buffer, subarrayRanges.buffer)&& - Objects.equals(this.additionalProperties, subarrayRanges.additionalProperties); + Objects.equals(this.buffer, subarrayRanges.buffer); } @Override public int hashCode() { - return Objects.hash(type, hasDefaultRange, buffer, additionalProperties); + return Objects.hash(type, hasDefaultRange, buffer); } @Override @@ -206,7 +161,6 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" hasDefaultRange: ").append(toIndentedString(hasDefaultRange)).append("\n"); sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -249,6 +203,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayRanges is not found in the empty JSON string", SubarrayRanges.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SubarrayRanges.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayRanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `type` if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { @@ -275,28 +237,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -304,28 +244,7 @@ else if (entry.getValue() instanceof Character) public SubarrayRanges read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - SubarrayRanges instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java index b4558e4..ae50ba5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java @@ -52,7 +52,7 @@ /** * Subscription of a user (customer) to another user's arrays */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Subscription { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -156,50 +156,6 @@ public void setPricing(List pricing) { this.pricing = pricing; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Subscription instance itself - */ - public Subscription putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -214,13 +170,12 @@ public boolean equals(Object o) { return Objects.equals(this.id, subscription.id) && Objects.equals(this.ownerNamespaceUuid, subscription.ownerNamespaceUuid) && Objects.equals(this.customerNamespaceUuid, subscription.customerNamespaceUuid) && - Objects.equals(this.pricing, subscription.pricing)&& - Objects.equals(this.additionalProperties, subscription.additionalProperties); + Objects.equals(this.pricing, subscription.pricing); } @Override public int hashCode() { - return Objects.hash(id, ownerNamespaceUuid, customerNamespaceUuid, pricing, additionalProperties); + return Objects.hash(id, ownerNamespaceUuid, customerNamespaceUuid, pricing); } @Override @@ -231,7 +186,6 @@ public String toString() { sb.append(" ownerNamespaceUuid: ").append(toIndentedString(ownerNamespaceUuid)).append("\n"); sb.append(" customerNamespaceUuid: ").append(toIndentedString(customerNamespaceUuid)).append("\n"); sb.append(" pricing: ").append(toIndentedString(pricing)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -275,6 +229,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Subscription is not found in the empty JSON string", Subscription.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Subscription.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Subscription` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -316,28 +278,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Subscription value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -345,28 +285,7 @@ else if (entry.getValue() instanceof Character) public Subscription read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Subscription instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java index 99f5119..12b1fc4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java @@ -50,7 +50,7 @@ /** * The details of an array that should be queried and provided as the input to a UDF Node. This is essentially a `UDFArrayDetails`, but you’re allowed to provide most of the values as Nodes if you want. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGArrayNodeData { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -123,50 +123,6 @@ public void setBuffers(Object buffers) { this.buffers = buffers; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGArrayNodeData instance itself - */ - public TGArrayNodeData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -180,13 +136,12 @@ public boolean equals(Object o) { TGArrayNodeData tgArrayNodeData = (TGArrayNodeData) o; return Objects.equals(this.uri, tgArrayNodeData.uri) && Objects.equals(this.ranges, tgArrayNodeData.ranges) && - Objects.equals(this.buffers, tgArrayNodeData.buffers)&& - Objects.equals(this.additionalProperties, tgArrayNodeData.additionalProperties); + Objects.equals(this.buffers, tgArrayNodeData.buffers); } @Override public int hashCode() { - return Objects.hash(uri, ranges, buffers, additionalProperties); + return Objects.hash(uri, ranges, buffers); } @Override @@ -196,7 +151,6 @@ public String toString() { sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" buffers: ").append(toIndentedString(buffers)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,6 +193,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGArrayNodeData is not found in the empty JSON string", TGArrayNodeData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGArrayNodeData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGArrayNodeData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `ranges` if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { @@ -261,28 +223,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGArrayNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -290,28 +230,7 @@ else if (entry.getValue() instanceof Character) public TGArrayNodeData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGArrayNodeData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java index 453929a..382e791 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java @@ -50,7 +50,7 @@ /** * Specifies that a node is an “input value”, allowing for parameterized task graphs. An input node may not depend upon any other nodes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGInputNodeData { public static final String SERIALIZED_NAME_DEFAULT_VALUE = "default_value"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) @@ -100,50 +100,6 @@ public void setDatatype(String datatype) { this.datatype = datatype; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGInputNodeData instance itself - */ - public TGInputNodeData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -156,8 +112,7 @@ public boolean equals(Object o) { } TGInputNodeData tgInputNodeData = (TGInputNodeData) o; return Objects.equals(this.defaultValue, tgInputNodeData.defaultValue) && - Objects.equals(this.datatype, tgInputNodeData.datatype)&& - Objects.equals(this.additionalProperties, tgInputNodeData.additionalProperties); + Objects.equals(this.datatype, tgInputNodeData.datatype); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -166,7 +121,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(defaultValue, datatype, additionalProperties); + return Objects.hash(defaultValue, datatype); } private static int hashCodeNullable(JsonNullable a) { @@ -182,7 +137,6 @@ public String toString() { sb.append("class TGInputNodeData {\n"); sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); sb.append(" datatype: ").append(toIndentedString(datatype)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGInputNodeData is not found in the empty JSON string", TGInputNodeData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGInputNodeData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGInputNodeData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("datatype") != null && !jsonObj.get("datatype").isJsonNull()) && !jsonObj.get("datatype").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `datatype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datatype").toString())); @@ -245,28 +207,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGInputNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -274,28 +214,7 @@ else if (entry.getValue() instanceof Character) public TGInputNodeData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGInputNodeData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java index 30ef336..978aa05 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java @@ -50,7 +50,7 @@ /** * Parameterizable version of `QueryRanges`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGQueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -123,50 +123,6 @@ public void setRanges(Object ranges) { this.ranges = ranges; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGQueryRanges instance itself - */ - public TGQueryRanges putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -180,13 +136,12 @@ public boolean equals(Object o) { TGQueryRanges tgQueryRanges = (TGQueryRanges) o; return Objects.equals(this.layout, tgQueryRanges.layout) && Objects.equals(this.friendlyRanges, tgQueryRanges.friendlyRanges) && - Objects.equals(this.ranges, tgQueryRanges.ranges)&& - Objects.equals(this.additionalProperties, tgQueryRanges.additionalProperties); + Objects.equals(this.ranges, tgQueryRanges.ranges); } @Override public int hashCode() { - return Objects.hash(layout, friendlyRanges, ranges, additionalProperties); + return Objects.hash(layout, friendlyRanges, ranges); } @Override @@ -196,7 +151,6 @@ public String toString() { sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" friendlyRanges: ").append(toIndentedString(friendlyRanges)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,6 +193,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGQueryRanges is not found in the empty JSON string", TGQueryRanges.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGQueryRanges.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGQueryRanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `layout` if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { @@ -261,28 +223,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGQueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -290,28 +230,7 @@ else if (entry.getValue() instanceof Character) public TGQueryRanges read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGQueryRanges instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java index 283243e..965c5b0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java @@ -53,7 +53,7 @@ /** * A node specifying an SQL query to execute in TileDB Cloud. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGSQLNodeData { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) @@ -188,50 +188,6 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGSQLNodeData instance itself - */ - public TGSQLNodeData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -247,8 +203,7 @@ public boolean equals(Object o) { Objects.equals(this.query, tgSQLNodeData.query) && Objects.equals(this.parameters, tgSQLNodeData.parameters) && Objects.equals(this.resultFormat, tgSQLNodeData.resultFormat) && - Objects.equals(this.namespace, tgSQLNodeData.namespace)&& - Objects.equals(this.additionalProperties, tgSQLNodeData.additionalProperties); + Objects.equals(this.namespace, tgSQLNodeData.namespace); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -257,7 +212,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(initCommands, query, parameters, resultFormat, namespace, additionalProperties); + return Objects.hash(initCommands, query, parameters, resultFormat, namespace); } private static int hashCodeNullable(JsonNullable a) { @@ -276,7 +231,6 @@ public String toString() { sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append(" resultFormat: ").append(toIndentedString(resultFormat)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -321,6 +275,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGSQLNodeData is not found in the empty JSON string", TGSQLNodeData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGSQLNodeData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGSQLNodeData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull() && !jsonObj.get("init_commands").isJsonArray()) { @@ -357,28 +319,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGSQLNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -386,28 +326,7 @@ else if (entry.getValue() instanceof Character) public TGSQLNodeData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGSQLNodeData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java index 1209bb1..190ef9f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java @@ -50,7 +50,7 @@ /** * A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGUDFArgument { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -100,50 +100,6 @@ public void setValue(Object value) { this.value = value; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFArgument instance itself - */ - public TGUDFArgument putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -156,8 +112,7 @@ public boolean equals(Object o) { } TGUDFArgument tgUDFArgument = (TGUDFArgument) o; return Objects.equals(this.name, tgUDFArgument.name) && - Objects.equals(this.value, tgUDFArgument.value)&& - Objects.equals(this.additionalProperties, tgUDFArgument.additionalProperties); + Objects.equals(this.value, tgUDFArgument.value); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -166,7 +121,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, value, additionalProperties); + return Objects.hash(name, value); } private static int hashCodeNullable(JsonNullable a) { @@ -182,7 +137,6 @@ public String toString() { sb.append("class TGUDFArgument {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFArgument is not found in the empty JSON string", TGUDFArgument.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGUDFArgument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFArgument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); @@ -245,28 +207,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFArgument value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -274,28 +214,7 @@ else if (entry.getValue() instanceof Character) public TGUDFArgument read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGUDFArgument instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java index 79168f6..96063e7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; +import io.tiledb.cloud.rest_api.model.TGUDFStorage; import io.tiledb.cloud.rest_api.model.UDFLanguage; import java.io.IOException; import java.math.BigDecimal; @@ -55,7 +56,7 @@ /** * Metadata about the environment where we want to execute a UDF. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGUDFEnvironment { public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @@ -95,7 +96,7 @@ public class TGUDFEnvironment { public static final String SERIALIZED_NAME_STORAGE = "storage"; @SerializedName(SERIALIZED_NAME_STORAGE) - private List storage = new ArrayList<>(); + private List storage = new ArrayList<>(); public TGUDFEnvironment() { } @@ -271,12 +272,12 @@ public void setTimeout(BigDecimal timeout) { } - public TGUDFEnvironment storage(List storage) { + public TGUDFEnvironment storage(List storage) { this.storage = storage; return this; } - public TGUDFEnvironment addStorageItem(Object storageItem) { + public TGUDFEnvironment addStorageItem(TGUDFStorage storageItem) { if (this.storage == null) { this.storage = new ArrayList<>(); } @@ -285,62 +286,18 @@ public TGUDFEnvironment addStorageItem(Object storageItem) { } /** - * Storage options for mounting persistent volumes + * Storage options for mounting persistent volumes. * @return storage */ @javax.annotation.Nullable - public List getStorage() { + public List getStorage() { return storage; } - public void setStorage(List storage) { + public void setStorage(List storage) { this.storage = storage; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFEnvironment instance itself - */ - public TGUDFEnvironment putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -361,8 +318,7 @@ public boolean equals(Object o) { Objects.equals(this.resources, tgUDFEnvironment.resources) && Objects.equals(this.runClientSide, tgUDFEnvironment.runClientSide) && Objects.equals(this.timeout, tgUDFEnvironment.timeout) && - Objects.equals(this.storage, tgUDFEnvironment.storage)&& - Objects.equals(this.additionalProperties, tgUDFEnvironment.additionalProperties); + Objects.equals(this.storage, tgUDFEnvironment.storage); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -371,7 +327,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(language, languageVersion, imageName, accessCredentialsName, namespace, resourceClass, resources, runClientSide, timeout, storage, additionalProperties); + return Objects.hash(language, languageVersion, imageName, accessCredentialsName, namespace, resourceClass, resources, runClientSide, timeout, storage); } private static int hashCodeNullable(JsonNullable a) { @@ -395,7 +351,6 @@ public String toString() { sb.append(" runClientSide: ").append(toIndentedString(runClientSide)).append("\n"); sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -445,6 +400,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironment is not found in the empty JSON string", TGUDFEnvironment.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGUDFEnvironment.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFEnvironment` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `language` if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { @@ -469,9 +432,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { TGUDFEnvironmentResources.validateJsonElement(jsonObj.get("resources")); } - // ensure the optional json data is an array if present - if (jsonObj.get("storage") != null && !jsonObj.get("storage").isJsonNull() && !jsonObj.get("storage").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `storage` to be an array in the JSON string but got `%s`", jsonObj.get("storage").toString())); + if (jsonObj.get("storage") != null && !jsonObj.get("storage").isJsonNull()) { + JsonArray jsonArraystorage = jsonObj.getAsJsonArray("storage"); + if (jsonArraystorage != null) { + // ensure the json data is an array + if (!jsonObj.get("storage").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `storage` to be an array in the JSON string but got `%s`", jsonObj.get("storage").toString())); + } + + // validate the optional field `storage` (array) + for (int i = 0; i < jsonArraystorage.size(); i++) { + TGUDFStorage.validateJsonElement(jsonArraystorage.get(i)); + }; + } } } @@ -490,28 +463,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFEnvironment value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -519,28 +470,7 @@ else if (entry.getValue() instanceof Character) public TGUDFEnvironment read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGUDFEnvironment instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java index 26b8868..d7a1e57 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java @@ -49,7 +49,7 @@ /** * The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGUDFEnvironmentResources { public static final String SERIALIZED_NAME_CPU = "cpu"; @SerializedName(SERIALIZED_NAME_CPU) @@ -122,50 +122,6 @@ public void setGpu(Integer gpu) { this.gpu = gpu; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFEnvironmentResources instance itself - */ - public TGUDFEnvironmentResources putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { TGUDFEnvironmentResources tgUDFEnvironmentResources = (TGUDFEnvironmentResources) o; return Objects.equals(this.cpu, tgUDFEnvironmentResources.cpu) && Objects.equals(this.memory, tgUDFEnvironmentResources.memory) && - Objects.equals(this.gpu, tgUDFEnvironmentResources.gpu)&& - Objects.equals(this.additionalProperties, tgUDFEnvironmentResources.additionalProperties); + Objects.equals(this.gpu, tgUDFEnvironmentResources.gpu); } @Override public int hashCode() { - return Objects.hash(cpu, memory, gpu, additionalProperties); + return Objects.hash(cpu, memory, gpu); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); sb.append(" memory: ").append(toIndentedString(memory)).append("\n"); sb.append(" gpu: ").append(toIndentedString(gpu)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironmentResources is not found in the empty JSON string", TGUDFEnvironmentResources.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGUDFEnvironmentResources.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFEnvironmentResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("cpu") != null && !jsonObj.get("cpu").isJsonNull()) && !jsonObj.get("cpu").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cpu` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cpu").toString())); @@ -262,28 +224,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFEnvironmentResources value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -291,28 +231,7 @@ else if (entry.getValue() instanceof Character) public TGUDFEnvironmentResources read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGUDFEnvironmentResources instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java index 7097528..484ba10 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java @@ -55,7 +55,7 @@ /** * A node specifying the execution of a user-defined function. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGUDFNodeData { public static final String SERIALIZED_NAME_REGISTERED_UDF_NAME = "registered_udf_name"; @SerializedName(SERIALIZED_NAME_REGISTERED_UDF_NAME) @@ -205,50 +205,6 @@ public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFNodeData instance itself - */ - public TGUDFNodeData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -265,8 +221,7 @@ public boolean equals(Object o) { Objects.equals(this.sourceText, tgUDFNodeData.sourceText) && Objects.equals(this.environment, tgUDFNodeData.environment) && Objects.equals(this.arguments, tgUDFNodeData.arguments) && - Objects.equals(this.resultFormat, tgUDFNodeData.resultFormat)&& - Objects.equals(this.additionalProperties, tgUDFNodeData.additionalProperties); + Objects.equals(this.resultFormat, tgUDFNodeData.resultFormat); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -275,7 +230,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(registeredUdfName, executableCode, sourceText, environment, arguments, resultFormat, additionalProperties); + return Objects.hash(registeredUdfName, executableCode, sourceText, environment, arguments, resultFormat); } private static int hashCodeNullable(JsonNullable a) { @@ -295,7 +250,6 @@ public String toString() { sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n"); sb.append(" resultFormat: ").append(toIndentedString(resultFormat)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -341,6 +295,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFNodeData is not found in the empty JSON string", TGUDFNodeData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGUDFNodeData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFNodeData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("registered_udf_name") != null && !jsonObj.get("registered_udf_name").isJsonNull()) && !jsonObj.get("registered_udf_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `registered_udf_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("registered_udf_name").toString())); @@ -390,28 +352,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -419,28 +359,7 @@ else if (entry.getValue() instanceof Character) public TGUDFNodeData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGUDFNodeData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java index 17a0f5e..0944a66 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java @@ -47,14 +47,18 @@ import io.tiledb.cloud.rest_api.JSON; /** - * Storage mount details + * Storage options for mounting persistent volumes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TGUDFStorage { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) private String path; + public static final String SERIALIZED_NAME_TILEDB_URI = "tiledb_uri"; + @SerializedName(SERIALIZED_NAME_TILEDB_URI) + private String tiledbUri; + public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) private String size; @@ -72,7 +76,7 @@ public TGUDFStorage path(String path) { } /** - * mount path + * Mount path for the attached volume. * @return path */ @javax.annotation.Nullable @@ -85,13 +89,32 @@ public void setPath(String path) { } + public TGUDFStorage tiledbUri(String tiledbUri) { + this.tiledbUri = tiledbUri; + return this; + } + + /** + * TileDB filesystem to mount + * @return tiledbUri + */ + @javax.annotation.Nullable + public String getTiledbUri() { + return tiledbUri; + } + + public void setTiledbUri(String tiledbUri) { + this.tiledbUri = tiledbUri; + } + + public TGUDFStorage size(String size) { this.size = size; return this; } /** - * storage size in bytes + * Storage size. * @return size */ @javax.annotation.Nullable @@ -110,7 +133,7 @@ public TGUDFStorage storageClass(String storageClass) { } /** - * storage class + * Storage class to use for creating the volume. * @return storageClass */ @javax.annotation.Nullable @@ -122,50 +145,6 @@ public void setStorageClass(String storageClass) { this.storageClass = storageClass; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TGUDFStorage instance itself - */ - public TGUDFStorage putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -178,14 +157,14 @@ public boolean equals(Object o) { } TGUDFStorage tgUDFStorage = (TGUDFStorage) o; return Objects.equals(this.path, tgUDFStorage.path) && + Objects.equals(this.tiledbUri, tgUDFStorage.tiledbUri) && Objects.equals(this.size, tgUDFStorage.size) && - Objects.equals(this.storageClass, tgUDFStorage.storageClass)&& - Objects.equals(this.additionalProperties, tgUDFStorage.additionalProperties); + Objects.equals(this.storageClass, tgUDFStorage.storageClass); } @Override public int hashCode() { - return Objects.hash(path, size, storageClass, additionalProperties); + return Objects.hash(path, tiledbUri, size, storageClass); } @Override @@ -193,9 +172,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TGUDFStorage {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" tiledbUri: ").append(toIndentedString(tiledbUri)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" storageClass: ").append(toIndentedString(storageClass)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -219,6 +198,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("path"); + openapiFields.add("tiledb_uri"); openapiFields.add("size"); openapiFields.add("storage_class"); @@ -238,10 +218,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFStorage is not found in the empty JSON string", TGUDFStorage.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TGUDFStorage.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFStorage` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } + if ((jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonNull()) && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); + } + if ((jsonObj.get("size") != null && !jsonObj.get("size").isJsonNull()) && !jsonObj.get("size").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `size` to be a primitive type in the JSON string but got `%s`", jsonObj.get("size").toString())); + } if ((jsonObj.get("storage_class") != null && !jsonObj.get("storage_class").isJsonNull()) && !jsonObj.get("storage_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `storage_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storage_class").toString())); } @@ -262,28 +256,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFStorage value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -291,28 +263,7 @@ else if (entry.getValue() instanceof Character) public TGUDFStorage read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TGUDFStorage instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java index fba920d..2cb0d93 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java @@ -56,7 +56,7 @@ /** * Information about a task graph. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -285,50 +285,6 @@ public void setTaskGraphType(TaskGraphType taskGraphType) { this.taskGraphType = taskGraphType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraph instance itself - */ - public TaskGraph putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -349,8 +305,7 @@ public boolean equals(Object o) { Objects.equals(this.parallelism, taskGraph.parallelism) && Objects.equals(this.retryStrategy, taskGraph.retryStrategy) && Objects.equals(this.deadline, taskGraph.deadline) && - Objects.equals(this.taskGraphType, taskGraph.taskGraphType)&& - Objects.equals(this.additionalProperties, taskGraph.additionalProperties); + Objects.equals(this.taskGraphType, taskGraph.taskGraphType); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -359,7 +314,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, namespace, createdBy, name, createdAt, nodes, parallelism, retryStrategy, deadline, taskGraphType, additionalProperties); + return Objects.hash(uuid, namespace, createdBy, name, createdAt, nodes, parallelism, retryStrategy, deadline, taskGraphType); } private static int hashCodeNullable(JsonNullable a) { @@ -383,7 +338,6 @@ public String toString() { sb.append(" retryStrategy: ").append(toIndentedString(retryStrategy)).append("\n"); sb.append(" deadline: ").append(toIndentedString(deadline)).append("\n"); sb.append(" taskGraphType: ").append(toIndentedString(taskGraphType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -433,6 +387,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraph is not found in the empty JSON string", TaskGraph.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraph.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraph` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); @@ -485,28 +447,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -514,28 +454,7 @@ else if (entry.getValue() instanceof Character) public TaskGraph read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraph instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java index 5356fb4..52a4721 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java @@ -50,7 +50,7 @@ /** * A report of the execution status of a node that ran on the client side. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphClientNodeStatus { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -100,50 +100,6 @@ public void setStatus(ArrayTaskStatus status) { this.status = status; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphClientNodeStatus instance itself - */ - public TaskGraphClientNodeStatus putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -156,13 +112,12 @@ public boolean equals(Object o) { } TaskGraphClientNodeStatus taskGraphClientNodeStatus = (TaskGraphClientNodeStatus) o; return Objects.equals(this.clientNodeUuid, taskGraphClientNodeStatus.clientNodeUuid) && - Objects.equals(this.status, taskGraphClientNodeStatus.status)&& - Objects.equals(this.additionalProperties, taskGraphClientNodeStatus.additionalProperties); + Objects.equals(this.status, taskGraphClientNodeStatus.status); } @Override public int hashCode() { - return Objects.hash(clientNodeUuid, status, additionalProperties); + return Objects.hash(clientNodeUuid, status); } @Override @@ -171,7 +126,6 @@ public String toString() { sb.append("class TaskGraphClientNodeStatus {\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -213,6 +167,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphClientNodeStatus is not found in the empty JSON string", TaskGraphClientNodeStatus.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphClientNodeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphClientNodeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); @@ -238,28 +200,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphClientNodeStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -267,28 +207,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphClientNodeStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphClientNodeStatus instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java index 7801e40..c66942e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java @@ -59,7 +59,7 @@ /** * Logging information about the execution of a task graph. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphLog { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -133,6 +133,14 @@ public class TaskGraphLog { @SerializedName(SERIALIZED_NAME_CLOUD_REGION) private String cloudRegion; + public static final String SERIALIZED_NAME_ROOT_TASK_GRAPH_UUID = "root_task_graph_uuid"; + @SerializedName(SERIALIZED_NAME_ROOT_TASK_GRAPH_UUID) + private String rootTaskGraphUuid; + + public static final String SERIALIZED_NAME_CHILDREN_TASK_GRAPH_UUIDS = "children_task_graph_uuids"; + @SerializedName(SERIALIZED_NAME_CHILDREN_TASK_GRAPH_UUIDS) + private List childrenTaskGraphUuids = new ArrayList<>(); + public TaskGraphLog() { } @@ -468,52 +476,54 @@ public void setCloudRegion(String cloudRegion) { this.cloudRegion = cloudRegion; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; + + public TaskGraphLog rootTaskGraphUuid(String rootTaskGraphUuid) { + this.rootTaskGraphUuid = rootTaskGraphUuid; + return this; + } /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphLog instance itself + * The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. + * @return rootTaskGraphUuid */ - public TaskGraphLog putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); + @javax.annotation.Nullable + public String getRootTaskGraphUuid() { + return rootTaskGraphUuid; + } + + public void setRootTaskGraphUuid(String rootTaskGraphUuid) { + this.rootTaskGraphUuid = rootTaskGraphUuid; + } + + + public TaskGraphLog childrenTaskGraphUuids(List childrenTaskGraphUuids) { + this.childrenTaskGraphUuids = childrenTaskGraphUuids; + return this; + } + + public TaskGraphLog addChildrenTaskGraphUuidsItem(String childrenTaskGraphUuidsItem) { + if (this.childrenTaskGraphUuids == null) { + this.childrenTaskGraphUuids = new ArrayList<>(); } - this.additionalProperties.put(key, value); + this.childrenTaskGraphUuids.add(childrenTaskGraphUuidsItem); return this; } /** - * Return the additional (undeclared) property. - * - * @return a map of objects + * If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. + * @return childrenTaskGraphUuids */ - public Map getAdditionalProperties() { - return additionalProperties; + @javax.annotation.Nullable + public List getChildrenTaskGraphUuids() { + return childrenTaskGraphUuids; } - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); + public void setChildrenTaskGraphUuids(List childrenTaskGraphUuids) { + this.childrenTaskGraphUuids = childrenTaskGraphUuids; } + @Override public boolean equals(Object o) { if (this == o) { @@ -540,8 +550,9 @@ public boolean equals(Object o) { Objects.equals(this.taskGraphType, taskGraphLog.taskGraphType) && Objects.equals(this.taskGraphId, taskGraphLog.taskGraphId) && Objects.equals(this.cloudProvider, taskGraphLog.cloudProvider) && - Objects.equals(this.cloudRegion, taskGraphLog.cloudRegion)&& - Objects.equals(this.additionalProperties, taskGraphLog.additionalProperties); + Objects.equals(this.cloudRegion, taskGraphLog.cloudRegion) && + Objects.equals(this.rootTaskGraphUuid, taskGraphLog.rootTaskGraphUuid) && + Objects.equals(this.childrenTaskGraphUuids, taskGraphLog.childrenTaskGraphUuids); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -550,7 +561,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, cloudProvider, cloudRegion, additionalProperties); + return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, cloudProvider, cloudRegion, rootTaskGraphUuid, childrenTaskGraphUuids); } private static int hashCodeNullable(JsonNullable a) { @@ -582,7 +593,8 @@ public String toString() { sb.append(" taskGraphId: ").append(toIndentedString(taskGraphId)).append("\n"); sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append(" rootTaskGraphUuid: ").append(toIndentedString(rootTaskGraphUuid)).append("\n"); + sb.append(" childrenTaskGraphUuids: ").append(toIndentedString(childrenTaskGraphUuids)).append("\n"); sb.append("}"); return sb.toString(); } @@ -623,6 +635,8 @@ private String toIndentedString(Object o) { openapiFields.add("task_graph_id"); openapiFields.add("cloud_provider"); openapiFields.add("cloud_region"); + openapiFields.add("root_task_graph_uuid"); + openapiFields.add("children_task_graph_uuids"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -640,6 +654,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLog is not found in the empty JSON string", TaskGraphLog.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphLog.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); @@ -687,6 +709,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); } + if ((jsonObj.get("root_task_graph_uuid") != null && !jsonObj.get("root_task_graph_uuid").isJsonNull()) && !jsonObj.get("root_task_graph_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `root_task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("root_task_graph_uuid").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("children_task_graph_uuids") != null && !jsonObj.get("children_task_graph_uuids").isJsonNull() && !jsonObj.get("children_task_graph_uuids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `children_task_graph_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("children_task_graph_uuids").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -704,28 +733,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -733,28 +740,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphLog read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphLog instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java index bcd5a2d..34d7e55 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java @@ -53,7 +53,7 @@ /** * Response data for a task graph list, including pagination metadata. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphLogsData { public static final String SERIALIZED_NAME_TASK_GRAPH_LOGS = "task_graph_logs"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_LOGS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphLogsData instance itself - */ - public TaskGraphLogsData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } TaskGraphLogsData taskGraphLogsData = (TaskGraphLogsData) o; return Objects.equals(this.taskGraphLogs, taskGraphLogsData.taskGraphLogs) && - Objects.equals(this.paginationMetadata, taskGraphLogsData.paginationMetadata)&& - Objects.equals(this.additionalProperties, taskGraphLogsData.additionalProperties); + Objects.equals(this.paginationMetadata, taskGraphLogsData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(taskGraphLogs, paginationMetadata, additionalProperties); + return Objects.hash(taskGraphLogs, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class TaskGraphLogsData {\n"); sb.append(" taskGraphLogs: ").append(toIndentedString(taskGraphLogs)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLogsData is not found in the empty JSON string", TaskGraphLogsData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphLogsData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphLogsData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("task_graph_logs") != null && !jsonObj.get("task_graph_logs").isJsonNull()) { JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphLogsData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphLogsData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphLogsData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java index d4f8575..34b9d31 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java @@ -57,7 +57,7 @@ /** * Information about a single node within a registered task graph. A single node represents one piece of data or a computational step; either as an input value, a data source, or a computation that acts upon earlier nodes. The structure parallels the existing `TaskGraphNodeMetadata`. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphNode { public static final String SERIALIZED_NAME_CLIENT_NODE_ID = "client_node_id"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_ID) @@ -299,50 +299,6 @@ public void setDeadline(Long deadline) { this.deadline = deadline; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphNode instance itself - */ - public TaskGraphNode putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -363,8 +319,7 @@ public boolean equals(Object o) { Objects.equals(this.udfNode, taskGraphNode.udfNode) && Objects.equals(this.retryStrategy, taskGraphNode.retryStrategy) && Objects.equals(this.expandNodeOutput, taskGraphNode.expandNodeOutput) && - Objects.equals(this.deadline, taskGraphNode.deadline)&& - Objects.equals(this.additionalProperties, taskGraphNode.additionalProperties); + Objects.equals(this.deadline, taskGraphNode.deadline); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -373,7 +328,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(clientNodeId, name, dependsOn, arrayNode, inputNode, sqlNode, udfNode, retryStrategy, expandNodeOutput, deadline, additionalProperties); + return Objects.hash(clientNodeId, name, dependsOn, arrayNode, inputNode, sqlNode, udfNode, retryStrategy, expandNodeOutput, deadline); } private static int hashCodeNullable(JsonNullable a) { @@ -397,7 +352,6 @@ public String toString() { sb.append(" retryStrategy: ").append(toIndentedString(retryStrategy)).append("\n"); sb.append(" expandNodeOutput: ").append(toIndentedString(expandNodeOutput)).append("\n"); sb.append(" deadline: ").append(toIndentedString(deadline)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -447,6 +401,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNode is not found in the empty JSON string", TaskGraphNode.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphNode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphNode` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("client_node_id") != null && !jsonObj.get("client_node_id").isJsonNull()) && !jsonObj.get("client_node_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_id").toString())); @@ -498,28 +460,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphNode value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -527,28 +467,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphNode read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphNode instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java index 8428869..17de8a6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java @@ -55,7 +55,7 @@ /** * Metadata about an individual node in a task graph. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -227,50 +227,6 @@ public List getExecutions() { } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphNodeMetadata instance itself - */ - public TaskGraphNodeMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -288,8 +244,7 @@ public boolean equals(Object o) { Objects.equals(this.runLocation, taskGraphNodeMetadata.runLocation) && Objects.equals(this.status, taskGraphNodeMetadata.status) && Objects.equals(this.statusMessage, taskGraphNodeMetadata.statusMessage) && - Objects.equals(this.executions, taskGraphNodeMetadata.executions)&& - Objects.equals(this.additionalProperties, taskGraphNodeMetadata.additionalProperties); + Objects.equals(this.executions, taskGraphNodeMetadata.executions); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -298,7 +253,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(clientNodeUuid, name, dependsOn, runLocation, status, statusMessage, executions, additionalProperties); + return Objects.hash(clientNodeUuid, name, dependsOn, runLocation, status, statusMessage, executions); } private static int hashCodeNullable(JsonNullable a) { @@ -319,7 +274,6 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -366,6 +320,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNodeMetadata is not found in the empty JSON string", TaskGraphNodeMetadata.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphNodeMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphNodeMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); @@ -419,28 +381,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphNodeMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -448,28 +388,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphNodeMetadata read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphNodeMetadata instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java index feedb5f..d6f4640 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java @@ -52,7 +52,7 @@ /** * details for sharing a given registered task graph */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -133,50 +133,6 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphSharing instance itself - */ - public TaskGraphSharing putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -190,13 +146,12 @@ public boolean equals(Object o) { TaskGraphSharing taskGraphSharing = (TaskGraphSharing) o; return Objects.equals(this.actions, taskGraphSharing.actions) && Objects.equals(this.namespace, taskGraphSharing.namespace) && - Objects.equals(this.namespaceType, taskGraphSharing.namespaceType)&& - Objects.equals(this.additionalProperties, taskGraphSharing.additionalProperties); + Objects.equals(this.namespaceType, taskGraphSharing.namespaceType); } @Override public int hashCode() { - return Objects.hash(actions, namespace, namespaceType, additionalProperties); + return Objects.hash(actions, namespace, namespaceType); } @Override @@ -206,7 +161,6 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -249,6 +203,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphSharing is not found in the empty JSON string", TaskGraphSharing.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphSharing.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphSharing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { @@ -277,28 +239,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -306,28 +246,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphSharing read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphSharing instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java index c1ad82d..413a391 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java @@ -30,9 +30,9 @@ public enum TaskGraphType { BATCH("batch"), - + REALTIME("realtime"), - + NEXTFLOW("nextflow"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java index bb434ab..6910b39 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java @@ -52,7 +52,7 @@ /** * Information about a series of task graphs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TaskGraphs { public static final String SERIALIZED_NAME_GRAPHS = "graphs"; @SerializedName(SERIALIZED_NAME_GRAPHS) @@ -87,50 +87,6 @@ public void setGraphs(List graphs) { this.graphs = graphs; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TaskGraphs instance itself - */ - public TaskGraphs putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } TaskGraphs taskGraphs = (TaskGraphs) o; - return Objects.equals(this.graphs, taskGraphs.graphs)&& - Objects.equals(this.additionalProperties, taskGraphs.additionalProperties); + return Objects.equals(this.graphs, taskGraphs.graphs); } @Override public int hashCode() { - return Objects.hash(graphs, additionalProperties); + return Objects.hash(graphs); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TaskGraphs {\n"); sb.append(" graphs: ").append(toIndentedString(graphs)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphs is not found in the empty JSON string", TaskGraphs.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TaskGraphs.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphs` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("graphs") != null && !jsonObj.get("graphs").isJsonNull()) { JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphs value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public TaskGraphs read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TaskGraphs instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java index f3cc0f5..057aee4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java @@ -52,7 +52,7 @@ /** * TileDB config used for interaction with the embedded library */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TileDBConfig { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -87,50 +87,6 @@ public void setEntries(List entries) { this.entries = entries; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TileDBConfig instance itself - */ - public TileDBConfig putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -142,13 +98,12 @@ public boolean equals(Object o) { return false; } TileDBConfig tileDBConfig = (TileDBConfig) o; - return Objects.equals(this.entries, tileDBConfig.entries)&& - Objects.equals(this.additionalProperties, tileDBConfig.additionalProperties); + return Objects.equals(this.entries, tileDBConfig.entries); } @Override public int hashCode() { - return Objects.hash(entries, additionalProperties); + return Objects.hash(entries); } @Override @@ -156,7 +111,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TileDBConfig {\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,6 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfig is not found in the empty JSON string", TileDBConfig.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TileDBConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TileDBConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); @@ -229,28 +191,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TileDBConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -258,28 +198,7 @@ else if (entry.getValue() instanceof Character) public TileDBConfig read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TileDBConfig instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java index f9cf874..0237561 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java @@ -49,7 +49,7 @@ /** * TileDBConfigEntriesInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TileDBConfigEntriesInner { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -99,50 +99,6 @@ public void setValue(String value) { this.value = value; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TileDBConfigEntriesInner instance itself - */ - public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -155,13 +111,12 @@ public boolean equals(Object o) { } TileDBConfigEntriesInner tileDBConfigEntriesInner = (TileDBConfigEntriesInner) o; return Objects.equals(this.key, tileDBConfigEntriesInner.key) && - Objects.equals(this.value, tileDBConfigEntriesInner.value)&& - Objects.equals(this.additionalProperties, tileDBConfigEntriesInner.additionalProperties); + Objects.equals(this.value, tileDBConfigEntriesInner.value); } @Override public int hashCode() { - return Objects.hash(key, value, additionalProperties); + return Objects.hash(key, value); } @Override @@ -170,7 +125,6 @@ public String toString() { sb.append("class TileDBConfigEntriesInner {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -212,6 +166,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfigEntriesInner is not found in the empty JSON string", TileDBConfigEntriesInner.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TileDBConfigEntriesInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TileDBConfigEntriesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); @@ -236,28 +198,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TileDBConfigEntriesInner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -265,28 +205,7 @@ else if (entry.getValue() instanceof Character) public TileDBConfigEntriesInner read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TileDBConfigEntriesInner instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Token.java b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java index 422b0c8..08da614 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Token.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java @@ -53,7 +53,7 @@ /** * A api token and its metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Token { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -180,50 +180,6 @@ public void setScope(List scope) { this.scope = scope; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Token instance itself - */ - public Token putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -239,13 +195,12 @@ public boolean equals(Object o) { Objects.equals(this.name, token.name) && Objects.equals(this.issuedAt, token.issuedAt) && Objects.equals(this.expiresAt, token.expiresAt) && - Objects.equals(this.scope, token.scope)&& - Objects.equals(this.additionalProperties, token.additionalProperties); + Objects.equals(this.scope, token.scope); } @Override public int hashCode() { - return Objects.hash(token, name, issuedAt, expiresAt, scope, additionalProperties); + return Objects.hash(token, name, issuedAt, expiresAt, scope); } @Override @@ -257,7 +212,6 @@ public String toString() { sb.append(" issuedAt: ").append(toIndentedString(issuedAt)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -302,6 +256,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Token is not found in the empty JSON string", Token.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Token.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Token` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("token") != null && !jsonObj.get("token").isJsonNull()) && !jsonObj.get("token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); @@ -330,28 +292,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Token value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -359,28 +299,7 @@ else if (entry.getValue() instanceof Character) public Token read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Token instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java index 8987400..78671c0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java @@ -53,7 +53,7 @@ /** * A request from a user for an api token */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TokenRequest { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @SerializedName(SERIALIZED_NAME_EXPIRES) @@ -134,50 +134,6 @@ public void setScope(List scope) { this.scope = scope; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the TokenRequest instance itself - */ - public TokenRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -191,13 +147,12 @@ public boolean equals(Object o) { TokenRequest tokenRequest = (TokenRequest) o; return Objects.equals(this.expires, tokenRequest.expires) && Objects.equals(this.name, tokenRequest.name) && - Objects.equals(this.scope, tokenRequest.scope)&& - Objects.equals(this.additionalProperties, tokenRequest.additionalProperties); + Objects.equals(this.scope, tokenRequest.scope); } @Override public int hashCode() { - return Objects.hash(expires, name, scope, additionalProperties); + return Objects.hash(expires, name, scope); } @Override @@ -207,7 +162,6 @@ public String toString() { sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -250,6 +204,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TokenRequest is not found in the empty JSON string", TokenRequest.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TokenRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TokenRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); @@ -275,28 +237,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TokenRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -304,28 +244,7 @@ else if (entry.getValue() instanceof Character) public TokenRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - TokenRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java index 6b910ac..2212f1a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java @@ -53,7 +53,7 @@ /** * Contains array details for multi-array query including uri, ranges buffers */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFArrayDetails { public static final String SERIALIZED_NAME_PARAMETER_ID = "parameter_id"; @SerializedName(SERIALIZED_NAME_PARAMETER_ID) @@ -157,50 +157,6 @@ public void setBuffers(List buffers) { this.buffers = buffers; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFArrayDetails instance itself - */ - public UDFArrayDetails putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -215,8 +171,7 @@ public boolean equals(Object o) { return Objects.equals(this.parameterId, udFArrayDetails.parameterId) && Objects.equals(this.uri, udFArrayDetails.uri) && Objects.equals(this.ranges, udFArrayDetails.ranges) && - Objects.equals(this.buffers, udFArrayDetails.buffers)&& - Objects.equals(this.additionalProperties, udFArrayDetails.additionalProperties); + Objects.equals(this.buffers, udFArrayDetails.buffers); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -225,7 +180,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(parameterId, uri, ranges, buffers, additionalProperties); + return Objects.hash(parameterId, uri, ranges, buffers); } private static int hashCodeNullable(JsonNullable a) { @@ -243,7 +198,6 @@ public String toString() { sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" buffers: ").append(toIndentedString(buffers)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -287,6 +241,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFArrayDetails is not found in the empty JSON string", UDFArrayDetails.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFArrayDetails.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFArrayDetails` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("parameter_id") != null && !jsonObj.get("parameter_id").isJsonNull()) && !jsonObj.get("parameter_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parameter_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parameter_id").toString())); @@ -319,28 +281,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFArrayDetails value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -348,28 +288,7 @@ else if (entry.getValue() instanceof Character) public UDFArrayDetails read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFArrayDetails instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java index 7dd7b54..f114d8a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java @@ -49,7 +49,7 @@ /** * Copied udf uri and information */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -145,50 +145,6 @@ public void setId(String id) { this.id = id; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFCopied instance itself - */ - public UDFCopied putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -203,13 +159,12 @@ public boolean equals(Object o) { return Objects.equals(this.outputUri, udFCopied.outputUri) && Objects.equals(this.namespace, udFCopied.namespace) && Objects.equals(this.name, udFCopied.name) && - Objects.equals(this.id, udFCopied.id)&& - Objects.equals(this.additionalProperties, udFCopied.additionalProperties); + Objects.equals(this.id, udFCopied.id); } @Override public int hashCode() { - return Objects.hash(outputUri, namespace, name, id, additionalProperties); + return Objects.hash(outputUri, namespace, name, id); } @Override @@ -220,7 +175,6 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -266,6 +220,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFCopied.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFCopied` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : UDFCopied.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -302,28 +264,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -331,28 +271,7 @@ else if (entry.getValue() instanceof Character) public UDFCopied read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFCopied instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java index b886a8e..706af77 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java @@ -49,7 +49,7 @@ /** * information required to copy a udf */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -122,50 +122,6 @@ public void setName(String name) { this.name = name; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFCopy instance itself - */ - public UDFCopy putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { UDFCopy udFCopy = (UDFCopy) o; return Objects.equals(this.outputUri, udFCopy.outputUri) && Objects.equals(this.namespace, udFCopy.namespace) && - Objects.equals(this.name, udFCopy.name)&& - Objects.equals(this.additionalProperties, udFCopy.additionalProperties); + Objects.equals(this.name, udFCopy.name); } @Override public int hashCode() { - return Objects.hash(outputUri, namespace, name, additionalProperties); + return Objects.hash(outputUri, namespace, name); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopy is not found in the empty JSON string", UDFCopy.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFCopy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFCopy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public UDFCopy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFCopy instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java index d2a7118..ed7f9b3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java @@ -49,7 +49,7 @@ /** * A user-favorite UDF item */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFFavorite { public static final String SERIALIZED_NAME_UDF_UUID = "udf_uuid"; @SerializedName(SERIALIZED_NAME_UDF_UUID) @@ -122,50 +122,6 @@ public void setName(String name) { this.name = name; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFFavorite instance itself - */ - public UDFFavorite putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -179,13 +135,12 @@ public boolean equals(Object o) { UDFFavorite udFFavorite = (UDFFavorite) o; return Objects.equals(this.udfUuid, udFFavorite.udfUuid) && Objects.equals(this.namespace, udFFavorite.namespace) && - Objects.equals(this.name, udFFavorite.name)&& - Objects.equals(this.additionalProperties, udFFavorite.additionalProperties); + Objects.equals(this.name, udFFavorite.name); } @Override public int hashCode() { - return Objects.hash(udfUuid, namespace, name, additionalProperties); + return Objects.hash(udfUuid, namespace, name); } @Override @@ -195,7 +150,6 @@ public String toString() { sb.append(" udfUuid: ").append(toIndentedString(udfUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -238,6 +192,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavorite is not found in the empty JSON string", UDFFavorite.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFFavorite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFFavorite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("udf_uuid") != null && !jsonObj.get("udf_uuid").isJsonNull()) && !jsonObj.get("udf_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_uuid").toString())); @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public UDFFavorite read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFFavorite instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java index 1173cf0..6b6ffe8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java @@ -53,7 +53,7 @@ /** * Object including UDF favorites and pagination metadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFFavoritesData { public static final String SERIALIZED_NAME_UDFS = "udfs"; @SerializedName(SERIALIZED_NAME_UDFS) @@ -111,50 +111,6 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFFavoritesData instance itself - */ - public UDFFavoritesData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } UDFFavoritesData udFFavoritesData = (UDFFavoritesData) o; return Objects.equals(this.udfs, udFFavoritesData.udfs) && - Objects.equals(this.paginationMetadata, udFFavoritesData.paginationMetadata)&& - Objects.equals(this.additionalProperties, udFFavoritesData.additionalProperties); + Objects.equals(this.paginationMetadata, udFFavoritesData.paginationMetadata); } @Override public int hashCode() { - return Objects.hash(udfs, paginationMetadata, additionalProperties); + return Objects.hash(udfs, paginationMetadata); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class UDFFavoritesData {\n"); sb.append(" udfs: ").append(toIndentedString(udfs)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavoritesData is not found in the empty JSON string", UDFFavoritesData.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFFavoritesData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFFavoritesData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { JsonArray jsonArrayudfs = jsonObj.getAsJsonArray("udfs"); @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public UDFFavoritesData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java index 48f3d39..a90900d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java @@ -50,7 +50,7 @@ /** * Defines a set of images related to a specific name */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFImage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -123,50 +123,6 @@ public void setLanguage(UDFLanguage language) { this.language = language; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFImage instance itself - */ - public UDFImage putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -180,13 +136,12 @@ public boolean equals(Object o) { UDFImage udFImage = (UDFImage) o; return Objects.equals(this.id, udFImage.id) && Objects.equals(this.name, udFImage.name) && - Objects.equals(this.language, udFImage.language)&& - Objects.equals(this.additionalProperties, udFImage.additionalProperties); + Objects.equals(this.language, udFImage.language); } @Override public int hashCode() { - return Objects.hash(id, name, language, additionalProperties); + return Objects.hash(id, name, language); } @Override @@ -196,7 +151,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,6 +193,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImage is not found in the empty JSON string", UDFImage.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFImage.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFImage` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -267,28 +229,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFImage value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -296,28 +236,7 @@ else if (entry.getValue() instanceof Character) public UDFImage read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFImage instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java index ca9f878..4b8e5f0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java @@ -50,7 +50,7 @@ /** * Defines an image that belongs to a set of images having a version */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFImageVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -215,50 +215,6 @@ public void setLatest(Boolean latest) { this.latest = latest; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFImageVersion instance itself - */ - public UDFImageVersion putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -276,13 +232,12 @@ public boolean equals(Object o) { Objects.equals(this.dockerImage, udFImageVersion.dockerImage) && Objects.equals(this.version, udFImageVersion.version) && Objects.equals(this._default, udFImageVersion._default) && - Objects.equals(this.latest, udFImageVersion.latest)&& - Objects.equals(this.additionalProperties, udFImageVersion.additionalProperties); + Objects.equals(this.latest, udFImageVersion.latest); } @Override public int hashCode() { - return Objects.hash(id, name, udfImageUuid, dockerImage, version, _default, latest, additionalProperties); + return Objects.hash(id, name, udfImageUuid, dockerImage, version, _default, latest); } @Override @@ -296,7 +251,6 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); sb.append(" latest: ").append(toIndentedString(latest)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -343,6 +297,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImageVersion is not found in the empty JSON string", UDFImageVersion.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFImageVersion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFImageVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -373,28 +335,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFImageVersion value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -402,28 +342,7 @@ else if (entry.getValue() instanceof Character) public UDFImageVersion read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFImageVersion instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java index 8879166..d53725a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java @@ -53,7 +53,7 @@ /** * User-defined function that can persist in db, used and shared multiple times */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -249,50 +249,6 @@ public void setTags(List tags) { this.tags = tags; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFInfo instance itself - */ - public UDFInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -311,13 +267,12 @@ public boolean equals(Object o) { Objects.equals(this.readme, udFInfo.readme) && Objects.equals(this.licenseId, udFInfo.licenseId) && Objects.equals(this.licenseText, udFInfo.licenseText) && - Objects.equals(this.tags, udFInfo.tags)&& - Objects.equals(this.additionalProperties, udFInfo.additionalProperties); + Objects.equals(this.tags, udFInfo.tags); } @Override public int hashCode() { - return Objects.hash(id, name, language, type, readme, licenseId, licenseText, tags, additionalProperties); + return Objects.hash(id, name, language, type, readme, licenseId, licenseText, tags); } @Override @@ -332,7 +287,6 @@ public String toString() { sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -380,6 +334,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfo is not found in the empty JSON string", UDFInfo.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -425,28 +387,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -454,28 +394,7 @@ else if (entry.getValue() instanceof Character) public UDFInfo read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java index 65c7b13..7ee6587 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java @@ -53,7 +53,7 @@ /** * User-defined function that can persist in db, used and shared multiple times */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFInfoUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -318,50 +318,6 @@ public void setTags(List tags) { this.tags = tags; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFInfoUpdate instance itself - */ - public UDFInfoUpdate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -383,13 +339,12 @@ public boolean equals(Object o) { Objects.equals(this.readme, udFInfoUpdate.readme) && Objects.equals(this.licenseId, udFInfoUpdate.licenseId) && Objects.equals(this.licenseText, udFInfoUpdate.licenseText) && - Objects.equals(this.tags, udFInfoUpdate.tags)&& - Objects.equals(this.additionalProperties, udFInfoUpdate.additionalProperties); + Objects.equals(this.tags, udFInfoUpdate.tags); } @Override public int hashCode() { - return Objects.hash(name, language, version, imageName, type, exec, execRaw, readme, licenseId, licenseText, tags, additionalProperties); + return Objects.hash(name, language, version, imageName, type, exec, execRaw, readme, licenseId, licenseText, tags); } @Override @@ -407,7 +362,6 @@ public String toString() { sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -458,6 +412,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfoUpdate is not found in the empty JSON string", UDFInfoUpdate.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFInfoUpdate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFInfoUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); @@ -512,28 +474,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -541,28 +481,7 @@ else if (entry.getValue() instanceof Character) public UDFInfoUpdate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java index 0d790fa..480951d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java @@ -31,9 +31,7 @@ public enum UDFLanguage { PYTHON("python"), - R("r"), - - NEXTFLOW("nextflow"); + R("r"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java index f0f19d3..625c710 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java @@ -52,7 +52,7 @@ /** * details for sharing a given UDF */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -133,50 +133,6 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFSharing instance itself - */ - public UDFSharing putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -190,13 +146,12 @@ public boolean equals(Object o) { UDFSharing udFSharing = (UDFSharing) o; return Objects.equals(this.actions, udFSharing.actions) && Objects.equals(this.namespace, udFSharing.namespace) && - Objects.equals(this.namespaceType, udFSharing.namespaceType)&& - Objects.equals(this.additionalProperties, udFSharing.additionalProperties); + Objects.equals(this.namespaceType, udFSharing.namespaceType); } @Override public int hashCode() { - return Objects.hash(actions, namespace, namespaceType, additionalProperties); + return Objects.hash(actions, namespace, namespaceType); } @Override @@ -206,7 +161,6 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -249,6 +203,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSharing is not found in the empty JSON string", UDFSharing.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFSharing.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSharing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { @@ -277,28 +239,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -306,28 +246,7 @@ else if (entry.getValue() instanceof Character) public UDFSharing read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFSharing instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java index 84a91b6..a2e9c8d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java @@ -53,7 +53,7 @@ /** * Subarray bounds to query for a UDF to operate on */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFSubarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -111,50 +111,6 @@ public void setRanges(List ranges) { this.ranges = ranges; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFSubarray instance itself - */ - public UDFSubarray putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -167,13 +123,12 @@ public boolean equals(Object o) { } UDFSubarray udFSubarray = (UDFSubarray) o; return Objects.equals(this.layout, udFSubarray.layout) && - Objects.equals(this.ranges, udFSubarray.ranges)&& - Objects.equals(this.additionalProperties, udFSubarray.additionalProperties); + Objects.equals(this.ranges, udFSubarray.ranges); } @Override public int hashCode() { - return Objects.hash(layout, ranges, additionalProperties); + return Objects.hash(layout, ranges); } @Override @@ -182,7 +137,6 @@ public String toString() { sb.append("class UDFSubarray {\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,6 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarray is not found in the empty JSON string", UDFSubarray.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFSubarray.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSubarray` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `layout` if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { @@ -260,28 +222,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFSubarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -289,28 +229,7 @@ else if (entry.getValue() instanceof Character) public UDFSubarray read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFSubarray instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java index 18f73ac..be1ad4d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java @@ -50,7 +50,7 @@ /** * A dimension range to query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class UDFSubarrayRange { public static final String SERIALIZED_NAME_DIMENSION_ID = "dimension_id"; @SerializedName(SERIALIZED_NAME_DIMENSION_ID) @@ -123,50 +123,6 @@ public void setRangeEnd(DimensionCoordinate rangeEnd) { this.rangeEnd = rangeEnd; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the UDFSubarrayRange instance itself - */ - public UDFSubarrayRange putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -180,13 +136,12 @@ public boolean equals(Object o) { UDFSubarrayRange udFSubarrayRange = (UDFSubarrayRange) o; return Objects.equals(this.dimensionId, udFSubarrayRange.dimensionId) && Objects.equals(this.rangeStart, udFSubarrayRange.rangeStart) && - Objects.equals(this.rangeEnd, udFSubarrayRange.rangeEnd)&& - Objects.equals(this.additionalProperties, udFSubarrayRange.additionalProperties); + Objects.equals(this.rangeEnd, udFSubarrayRange.rangeEnd); } @Override public int hashCode() { - return Objects.hash(dimensionId, rangeStart, rangeEnd, additionalProperties); + return Objects.hash(dimensionId, rangeStart, rangeEnd); } @Override @@ -196,7 +151,6 @@ public String toString() { sb.append(" dimensionId: ").append(toIndentedString(dimensionId)).append("\n"); sb.append(" rangeStart: ").append(toIndentedString(rangeStart)).append("\n"); sb.append(" rangeEnd: ").append(toIndentedString(rangeEnd)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,6 +193,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarrayRange is not found in the empty JSON string", UDFSubarrayRange.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UDFSubarrayRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSubarrayRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `range_start` if (jsonObj.get("range_start") != null && !jsonObj.get("range_start").isJsonNull()) { @@ -265,28 +227,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFSubarrayRange value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -294,28 +234,7 @@ else if (entry.getValue() instanceof Character) public UDFSubarrayRange read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - UDFSubarrayRange instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java index 3d30f63..5554783 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java @@ -33,9 +33,7 @@ public enum UDFType { SINGLE_ARRAY("single_array"), - GENERIC("generic"), - - BASH("bash"); + GENERIC("generic"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/User.java b/src/main/java/io/tiledb/cloud/rest_api/model/User.java index ab46e80..3c333e6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/User.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/User.java @@ -55,7 +55,7 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -479,50 +479,6 @@ public void setDefaultRegion(String defaultRegion) { this.defaultRegion = defaultRegion; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the User instance itself - */ - public User putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -552,8 +508,7 @@ public boolean equals(Object o) { Objects.equals(this.defaultS3PathCredentialsName, user.defaultS3PathCredentialsName) && Objects.equals(this.assetLocations, user.assetLocations) && Objects.equals(this.defaultNamespaceCharged, user.defaultNamespaceCharged) && - Objects.equals(this.defaultRegion, user.defaultRegion)&& - Objects.equals(this.additionalProperties, user.additionalProperties); + Objects.equals(this.defaultRegion, user.defaultRegion); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -562,7 +517,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, username, password, name, email, isValidEmail, stripeConnect, company, logo, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, defaultNamespaceCharged, defaultRegion, additionalProperties); + return Objects.hash(id, username, password, name, email, isValidEmail, stripeConnect, company, logo, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, defaultNamespaceCharged, defaultRegion); } private static int hashCodeNullable(JsonNullable a) { @@ -595,7 +550,6 @@ public String toString() { sb.append(" assetLocations: ").append(toIndentedString(assetLocations)).append("\n"); sb.append(" defaultNamespaceCharged: ").append(toIndentedString(defaultNamespaceCharged)).append("\n"); sb.append(" defaultRegion: ").append(toIndentedString(defaultRegion)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -656,6 +610,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!User.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + // check to make sure all required properties/fields are present in the JSON string for (String requiredField : User.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -739,28 +701,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, User value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -768,28 +708,7 @@ else if (entry.getValue() instanceof Character) public User read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - User instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java index 3c758a4..86fc3d6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java @@ -50,7 +50,7 @@ /** * Writer */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Writer { public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) @@ -146,50 +146,6 @@ public void setSubarray(DomainArray subarray) { this.subarray = subarray; } - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Writer instance itself - */ - public Writer putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } @Override @@ -204,13 +160,12 @@ public boolean equals(Object o) { return Objects.equals(this.checkCoordDups, writer.checkCoordDups) && Objects.equals(this.checkCoordOOB, writer.checkCoordOOB) && Objects.equals(this.dedupCoords, writer.dedupCoords) && - Objects.equals(this.subarray, writer.subarray)&& - Objects.equals(this.additionalProperties, writer.additionalProperties); + Objects.equals(this.subarray, writer.subarray); } @Override public int hashCode() { - return Objects.hash(checkCoordDups, checkCoordOOB, dedupCoords, subarray, additionalProperties); + return Objects.hash(checkCoordDups, checkCoordOOB, dedupCoords, subarray); } @Override @@ -221,7 +176,6 @@ public String toString() { sb.append(" checkCoordOOB: ").append(toIndentedString(checkCoordOOB)).append("\n"); sb.append(" dedupCoords: ").append(toIndentedString(dedupCoords)).append("\n"); sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,6 +219,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Writer is not found in the empty JSON string", Writer.openapiRequiredFields.toString())); } } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Writer.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Writer` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { @@ -287,28 +249,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Writer value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } - } - } - } elementAdapter.write(out, obj); } @@ -316,28 +256,7 @@ else if (entry.getValue() instanceof Character) public Writer read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - Writer instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; + return thisAdapter.fromJsonTree(jsonElement); } }.nullSafe(); diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java index 2b0ff77..e789dc0 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java @@ -60,14 +60,15 @@ public class ArrayApiTest { */ @Test public void arrayActivityLogTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; Integer start = null; Integer end = null; String eventTypes = null; String taskId = null; Boolean hasTaskId = null; - List response = api.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); + List response = api.arrayActivityLog(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId); // TODO: test validations } @@ -190,12 +191,13 @@ public void arraysBrowserSharedSidebarGetTest() throws ApiException { * @throws ApiException if the Api call fails */ @Test - public void arraysNamespaceArrayEndTimestampsGetTest() throws ApiException { - String namespace = null; + public void arraysWorkspaceTeamspaceArrayEndTimestampsGetTest() throws ApiException { + String workspace = null; + String teamspace = null; String array = null; Integer page = null; Integer perPage = null; - ArrayEndTimestampData response = api.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + ArrayEndTimestampData response = api.arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); // TODO: test validations } @@ -206,10 +208,11 @@ public void arraysNamespaceArrayEndTimestampsGetTest() throws ApiException { */ @Test public void consolidateArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArrayConsolidationRequest consolidateRequest = null; - api.consolidateArray(namespace, array, consolidateRequest); + api.consolidateArray(workspace, teamspace, array, consolidateRequest); // TODO: test validations } @@ -220,12 +223,13 @@ public void consolidateArrayTest() throws ApiException { */ @Test public void createArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; ArraySchema arraySchema = null; String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - api.createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + api.createArray(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); // TODO: test validations } @@ -236,10 +240,11 @@ public void createArrayTest() throws ApiException { */ @Test public void deleteArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; - api.deleteArray(namespace, array, contentType); + api.deleteArray(workspace, teamspace, array, contentType); // TODO: test validations } @@ -250,9 +255,10 @@ public void deleteArrayTest() throws ApiException { */ @Test public void deregisterArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; - api.deregisterArray(namespace, array); + api.deregisterArray(workspace, teamspace, array); // TODO: test validations } @@ -263,11 +269,12 @@ public void deregisterArrayTest() throws ApiException { */ @Test public void fragmentInfoTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; FragmentInfoRequest fragmentInfoRequest = null; - FragmentInfo response = api.fragmentInfo(namespace, array, contentType, fragmentInfoRequest); + FragmentInfo response = api.fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest); // TODO: test validations } @@ -278,10 +285,11 @@ public void fragmentInfoTest() throws ApiException { */ @Test public void getActivityLogByIdTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String id = null; - ArrayActivityLog response = api.getActivityLogById(namespace, array, id); + ArrayActivityLog response = api.getActivityLogById(workspace, teamspace, array, id); // TODO: test validations } @@ -304,10 +312,11 @@ public void getAllArrayMetadataTest() throws ApiException { */ @Test public void getArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; - ArraySchema response = api.getArray(namespace, array, contentType); + ArraySchema response = api.getArray(workspace, teamspace, array, contentType); // TODO: test validations } @@ -318,12 +327,13 @@ public void getArrayTest() throws ApiException { */ @Test public void getArrayMaxBufferSizesTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String subarray = null; String contentType = null; String xPayer = null; - MaxBufferSizes response = api.getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer); + MaxBufferSizes response = api.getArrayMaxBufferSizes(workspace, teamspace, array, subarray, contentType, xPayer); // TODO: test validations } @@ -334,11 +344,12 @@ public void getArrayMaxBufferSizesTest() throws ApiException { */ @Test public void getArrayMetaDataJsonTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; Integer length = null; Integer endTimestamp = null; - Map response = api.getArrayMetaDataJson(namespace, array, length, endTimestamp); + Map response = api.getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp); // TODO: test validations } @@ -349,9 +360,10 @@ public void getArrayMetaDataJsonTest() throws ApiException { */ @Test public void getArrayMetadataTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; - ArrayInfo response = api.getArrayMetadata(namespace, array); + ArrayInfo response = api.getArrayMetadata(workspace, teamspace, array); // TODO: test validations } @@ -362,9 +374,10 @@ public void getArrayMetadataTest() throws ApiException { */ @Test public void getArrayMetadataCapnpTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; - ArrayMetadata response = api.getArrayMetadataCapnp(namespace, array); + ArrayMetadata response = api.getArrayMetadataCapnp(workspace, teamspace, array); // TODO: test validations } @@ -375,11 +388,12 @@ public void getArrayMetadataCapnpTest() throws ApiException { */ @Test public void getArrayNonEmptyDomainTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; String xPayer = null; - NonEmptyDomain response = api.getArrayNonEmptyDomain(namespace, array, contentType, xPayer); + NonEmptyDomain response = api.getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer); // TODO: test validations } @@ -390,9 +404,10 @@ public void getArrayNonEmptyDomainTest() throws ApiException { */ @Test public void getArrayNonEmptyDomainJsonTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; - Map response = api.getArrayNonEmptyDomainJson(namespace, array); + Map response = api.getArrayNonEmptyDomainJson(workspace, teamspace, array); // TODO: test validations } @@ -403,10 +418,11 @@ public void getArrayNonEmptyDomainJsonTest() throws ApiException { */ @Test public void getArraySampleDataTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; BigDecimal samples = null; - ArraySample response = api.getArraySampleData(namespace, array, samples); + ArraySample response = api.getArraySampleData(workspace, teamspace, array, samples); // TODO: test validations } @@ -417,9 +433,10 @@ public void getArraySampleDataTest() throws ApiException { */ @Test public void getArraySharingPoliciesTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; - List response = api.getArraySharingPolicies(namespace, array); + List response = api.getArraySharingPolicies(workspace, teamspace, array); // TODO: test validations } @@ -430,9 +447,10 @@ public void getArraySharingPoliciesTest() throws ApiException { */ @Test public void getArraysInNamespaceTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; Boolean withMetadata = null; - List response = api.getArraysInNamespace(namespace, withMetadata); + List response = api.getArraysInNamespace(workspace, teamspace, withMetadata); // TODO: test validations } @@ -443,10 +461,11 @@ public void getArraysInNamespaceTest() throws ApiException { */ @Test public void getFragmentEndTimestampTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; Integer endTimestamp = null; - Integer response = api.getFragmentEndTimestamp(namespace, array, endTimestamp); + Integer response = api.getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp); // TODO: test validations } @@ -466,10 +485,11 @@ public void getLastAccessedArraysTest() throws ApiException { */ @Test public void loadArraySchemaTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; LoadArraySchemaRequest loadArraySchemaRequest = null; - LoadArraySchemaResponse response = api.loadArraySchema(namespace, array, loadArraySchemaRequest); + LoadArraySchemaResponse response = api.loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest); // TODO: test validations } @@ -480,10 +500,11 @@ public void loadArraySchemaTest() throws ApiException { */ @Test public void loadEnumerationsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; LoadEnumerationsRequest loadEnumerationsRequest = null; - LoadEnumerationsResponse response = api.loadEnumerations(namespace, array, loadEnumerationsRequest); + LoadEnumerationsResponse response = api.loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest); // TODO: test validations } @@ -494,10 +515,11 @@ public void loadEnumerationsTest() throws ApiException { */ @Test public void registerArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArrayInfoUpdate arrayMetadata = null; - ArrayInfo response = api.registerArray(namespace, array, arrayMetadata); + ArrayInfo response = api.registerArray(workspace, teamspace, array, arrayMetadata); // TODO: test validations } @@ -508,10 +530,11 @@ public void registerArrayTest() throws ApiException { */ @Test public void shareArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArraySharing arraySharing = null; - api.shareArray(namespace, array, arraySharing); + api.shareArray(workspace, teamspace, array, arraySharing); // TODO: test validations } @@ -522,10 +545,11 @@ public void shareArrayTest() throws ApiException { */ @Test public void updateArrayMetadataTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArrayInfoUpdate arrayMetadata = null; - api.updateArrayMetadata(namespace, array, arrayMetadata); + api.updateArrayMetadata(workspace, teamspace, array, arrayMetadata); // TODO: test validations } @@ -536,10 +560,11 @@ public void updateArrayMetadataTest() throws ApiException { */ @Test public void updateArrayMetadataCapnpTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArrayMetadata arrayMetadataEntries = null; - api.updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries); + api.updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries); // TODO: test validations } @@ -550,10 +575,11 @@ public void updateArrayMetadataCapnpTest() throws ApiException { */ @Test public void vacuumArrayTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArrayVacuumRequest vaccumRequest = null; - api.vacuumArray(namespace, array, vaccumRequest); + api.vacuumArray(workspace, teamspace, array, vaccumRequest); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java index 51aa6f1..2d29b8d 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java @@ -15,6 +15,7 @@ import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.model.AssetListResponse; +import io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest; import io.tiledb.cloud.rest_api.model.Error; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -32,6 +33,20 @@ public class AssetsApiTest { private final AssetsApi api = new AssetsApi(); + /** + * Changes the access credentials to the given assets + * + * @throws ApiException if the Api call fails + */ + @Test + public void changeAssetCredentialsTest() throws ApiException { + String workspace = null; + String teamspace = null; + ChangeAssetCredentialsRequest changeCredentialsRequest = null; + api.changeAssetCredentials(workspace, teamspace, changeCredentialsRequest); + // TODO: test validations + } + /** * List assets in a namespace * @@ -39,7 +54,8 @@ public class AssetsApiTest { */ @Test public void listAssetsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String assetType = null; String ownershipLevel = null; String depth = null; @@ -48,7 +64,7 @@ public void listAssetsTest() throws ApiException { Integer perPage = null; String orderBy = null; String expand = null; - AssetListResponse response = api.listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + AssetListResponse response = api.listAssets(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java index 495eefa..fc52832 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java @@ -46,9 +46,10 @@ public class FavoritesApiTest { */ @Test public void addArrayFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.addArrayFavorite(namespace, name); + api.addArrayFavorite(workspace, teamspace, name); // TODO: test validations } @@ -59,9 +60,10 @@ public void addArrayFavoriteTest() throws ApiException { */ @Test public void addMLModelFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.addMLModelFavorite(namespace, name); + api.addMLModelFavorite(workspace, teamspace, name); // TODO: test validations } @@ -72,9 +74,10 @@ public void addMLModelFavoriteTest() throws ApiException { */ @Test public void addNotebookFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.addNotebookFavorite(namespace, name); + api.addNotebookFavorite(workspace, teamspace, name); // TODO: test validations } @@ -85,9 +88,9 @@ public void addNotebookFavoriteTest() throws ApiException { */ @Test public void addUDFFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - api.addUDFFavorite(namespace, name); + api.addUDFFavorite(workspace, name); // TODO: test validations } @@ -98,9 +101,10 @@ public void addUDFFavoriteTest() throws ApiException { */ @Test public void deleteArrayFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.deleteArrayFavorite(namespace, name); + api.deleteArrayFavorite(workspace, teamspace, name); // TODO: test validations } @@ -111,9 +115,10 @@ public void deleteArrayFavoriteTest() throws ApiException { */ @Test public void deleteMLModelFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.deleteMLModelFavorite(namespace, name); + api.deleteMLModelFavorite(workspace, teamspace, name); // TODO: test validations } @@ -124,9 +129,10 @@ public void deleteMLModelFavoriteTest() throws ApiException { */ @Test public void deleteNotebookFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.deleteNotebookFavorite(namespace, name); + api.deleteNotebookFavorite(workspace, teamspace, name); // TODO: test validations } @@ -137,9 +143,9 @@ public void deleteNotebookFavoriteTest() throws ApiException { */ @Test public void deleteUDFFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - api.deleteUDFFavorite(namespace, name); + api.deleteUDFFavorite(workspace, name); // TODO: test validations } @@ -150,9 +156,10 @@ public void deleteUDFFavoriteTest() throws ApiException { */ @Test public void getArrayFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - ArrayFavorite response = api.getArrayFavorite(namespace, name); + ArrayFavorite response = api.getArrayFavorite(workspace, teamspace, name); // TODO: test validations } @@ -163,9 +170,10 @@ public void getArrayFavoriteTest() throws ApiException { */ @Test public void getMLModelFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - MLModelFavorite response = api.getMLModelFavorite(namespace, name); + MLModelFavorite response = api.getMLModelFavorite(workspace, teamspace, name); // TODO: test validations } @@ -176,9 +184,10 @@ public void getMLModelFavoriteTest() throws ApiException { */ @Test public void getNotebookFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - NotebookFavorite response = api.getNotebookFavorite(namespace, name); + NotebookFavorite response = api.getNotebookFavorite(workspace, teamspace, name); // TODO: test validations } @@ -189,9 +198,9 @@ public void getNotebookFavoriteTest() throws ApiException { */ @Test public void getUDFFavoriteTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - UDFFavorite response = api.getUDFFavorite(namespace, name); + UDFFavorite response = api.getUDFFavorite(workspace, name); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java index 8978371..0bd78a0 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java @@ -44,10 +44,11 @@ public class FilesApiTest { */ @Test public void handleCreateFileTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; FileCreate fileCreate = null; String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; - FileCreated response = api.handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + FileCreated response = api.handleCreateFile(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); // TODO: test validations } @@ -58,10 +59,11 @@ public void handleCreateFileTest() throws ApiException { */ @Test public void handleExportFileTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String _file = null; FileExport fileExport = null; - FileExported response = api.handleExportFile(namespace, _file, fileExport); + FileExported response = api.handleExportFile(workspace, teamspace, _file, fileExport); // TODO: test validations } @@ -72,12 +74,13 @@ public void handleExportFileTest() throws ApiException { */ @Test public void handleUploadFileTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; File inputFile = null; String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; String outputUri = null; String name = null; - FileUploaded response = api.handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + FileUploaded response = api.handleUploadFile(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java index 87baa46..c16f530 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java @@ -50,10 +50,11 @@ public class GroupsApiTest { */ @Test public void changeGroupContentsTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; GroupChanges groupChanges = null; - api.changeGroupContents(groupNamespace, groupName, groupChanges); + api.changeGroupContents(workspace, teamspace, groupName, groupChanges); // TODO: test validations } @@ -64,9 +65,10 @@ public void changeGroupContentsTest() throws ApiException { */ @Test public void createGroupTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; GroupCreate groupCreate = null; - api.createGroup(namespace, groupCreate); + api.createGroup(workspace, teamspace, groupCreate); // TODO: test validations } @@ -77,9 +79,10 @@ public void createGroupTest() throws ApiException { */ @Test public void deleteGroupTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; - api.deleteGroup(groupNamespace, groupName); + api.deleteGroup(workspace, teamspace, groupName); // TODO: test validations } @@ -90,9 +93,10 @@ public void deleteGroupTest() throws ApiException { */ @Test public void getGroupTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; - GroupInfo response = api.getGroup(groupNamespace, groupName); + GroupInfo response = api.getGroup(workspace, teamspace, groupName); // TODO: test validations } @@ -103,11 +107,12 @@ public void getGroupTest() throws ApiException { */ @Test public void getGroupActivityTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; Integer page = null; Integer perPage = null; - GroupContentActivityResponse response = api.getGroupActivity(groupNamespace, groupName, page, perPage); + GroupContentActivityResponse response = api.getGroupActivity(workspace, teamspace, groupName, page, perPage); // TODO: test validations } @@ -118,7 +123,8 @@ public void getGroupActivityTest() throws ApiException { */ @Test public void getGroupContentsTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; Integer page = null; Integer perPage = null; @@ -129,7 +135,7 @@ public void getGroupContentsTest() throws ApiException { List excludeTag = null; List memberType = null; List excludeMemberType = null; - GroupContents response = api.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + GroupContents response = api.getGroupContents(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); // TODO: test validations } @@ -140,9 +146,10 @@ public void getGroupContentsTest() throws ApiException { */ @Test public void getGroupSharingPoliciesTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; - List response = api.getGroupSharingPolicies(groupNamespace, groupName); + List response = api.getGroupSharingPolicies(workspace, teamspace, groupName); // TODO: test validations } @@ -187,10 +194,11 @@ public void groupsBrowserSharedFiltersGetTest() throws ApiException { * @throws ApiException if the Api call fails */ @Test - public void groupsGroupNamespaceGroupNameContentsFiltersGetTest() throws ApiException { - String groupNamespace = null; + public void groupsWorkspaceTeamspaceGroupNameContentsFiltersGetTest() throws ApiException { + String workspace = null; + String teamspace = null; String groupName = null; - GroupContentsFilterData response = api.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); + GroupContentsFilterData response = api.groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName); // TODO: test validations } @@ -271,10 +279,11 @@ public void listSharedGroupsTest() throws ApiException { */ @Test public void registerGroupTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; GroupRegister groupRegister = null; - api.registerGroup(namespace, array, groupRegister); + api.registerGroup(workspace, teamspace, array, groupRegister); // TODO: test validations } @@ -285,10 +294,11 @@ public void registerGroupTest() throws ApiException { */ @Test public void shareGroupTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; GroupSharingRequest groupSharingRequest = null; - api.shareGroup(groupNamespace, groupName, groupSharingRequest); + api.shareGroup(workspace, teamspace, groupName, groupSharingRequest); // TODO: test validations } @@ -299,10 +309,11 @@ public void shareGroupTest() throws ApiException { */ @Test public void updateGroupTest() throws ApiException { - String groupNamespace = null; + String workspace = null; + String teamspace = null; String groupName = null; GroupUpdate groupUpdate = null; - api.updateGroup(groupNamespace, groupName, groupUpdate); + api.updateGroup(workspace, teamspace, groupName, groupUpdate); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java index a8d4ff7..75fdca6 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java @@ -69,10 +69,11 @@ public void cancelJoinOrganizationTest() throws ApiException { */ @Test public void cancelShareArrayByInviteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String invitation = null; String array = null; - api.cancelShareArrayByInvite(namespace, invitation, array); + api.cancelShareArrayByInvite(workspace, teamspace, invitation, array); // TODO: test validations } @@ -83,10 +84,11 @@ public void cancelShareArrayByInviteTest() throws ApiException { */ @Test public void cancelShareGroupByInviteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String invitation = null; String groupName = null; - api.cancelShareGroupByInvite(namespace, invitation, groupName); + api.cancelShareGroupByInvite(workspace, teamspace, invitation, groupName); // TODO: test validations } @@ -97,9 +99,10 @@ public void cancelShareGroupByInviteTest() throws ApiException { */ @Test public void cancelSharePaymentTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String target = null; - api.cancelSharePayment(namespace, target); + api.cancelSharePayment(workspace, teamspace, target); // TODO: test validations } @@ -144,10 +147,11 @@ public void joinOrganizationTest() throws ApiException { */ @Test public void shareArrayByInviteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; InvitationArrayShareEmail emailInvite = null; - api.shareArrayByInvite(namespace, array, emailInvite); + api.shareArrayByInvite(workspace, teamspace, array, emailInvite); // TODO: test validations } @@ -158,10 +162,11 @@ public void shareArrayByInviteTest() throws ApiException { */ @Test public void shareGroupByInviteTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String group = null; InvitationGroupShareEmail emailInvite = null; - api.shareGroupByInvite(namespace, group, emailInvite); + api.shareGroupByInvite(workspace, teamspace, group, emailInvite); // TODO: test validations } @@ -172,9 +177,10 @@ public void shareGroupByInviteTest() throws ApiException { */ @Test public void sharePaymentTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; SharePaymentRequest emailInvite = null; - api.sharePayment(namespace, emailInvite); + api.sharePayment(workspace, teamspace, emailInvite); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java index 46da52d..d607fd9 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java @@ -44,8 +44,9 @@ public class NotebookApiTest { */ @Test public void getNotebookServerStatusTest() throws ApiException { - String namespace = null; - NotebookStatus response = api.getNotebookServerStatus(namespace); + String workspace = null; + String teamspace = null; + NotebookStatus response = api.getNotebookServerStatus(workspace, teamspace); // TODO: test validations } @@ -56,12 +57,13 @@ public void getNotebookServerStatusTest() throws ApiException { */ @Test public void handleCopyNotebookTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; NotebookCopy notebookCopy = null; String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; Integer endTimestamp = null; - NotebookCopied response = api.handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + NotebookCopied response = api.handleCopyNotebook(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); // TODO: test validations } @@ -72,12 +74,13 @@ public void handleCopyNotebookTest() throws ApiException { */ @Test public void handleUploadNotebookTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; File inputFile = null; String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; String outputUri = null; String name = null; - FileUploaded response = api.handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + FileUploaded response = api.handleUploadNotebook(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); // TODO: test validations } @@ -88,8 +91,9 @@ public void handleUploadNotebookTest() throws ApiException { */ @Test public void shutdownNotebookServerTest() throws ApiException { - String namespace = null; - api.shutdownNotebookServer(namespace); + String workspace = null; + String teamspace = null; + api.shutdownNotebookServer(workspace, teamspace); // TODO: test validations } @@ -100,10 +104,11 @@ public void shutdownNotebookServerTest() throws ApiException { */ @Test public void updateNotebookNameTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; ArrayInfoUpdate notebookMetadata = null; - api.updateNotebookName(namespace, array, notebookMetadata); + api.updateNotebookName(workspace, teamspace, array, notebookMetadata); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java index f5d9032..34cc361 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java @@ -38,12 +38,13 @@ public class NotebooksApiTest { * @throws ApiException if the Api call fails */ @Test - public void notebooksNamespaceArrayEndTimestampsGetTest() throws ApiException { - String namespace = null; + public void notebooksWorkspaceTeamspaceArrayEndTimestampsGetTest() throws ApiException { + String workspace = null; + String teamspace = null; String array = null; Integer page = null; Integer perPage = null; - ArrayEndTimestampData response = api.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + ArrayEndTimestampData response = api.notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); // TODO: test validations } @@ -53,11 +54,12 @@ public void notebooksNamespaceArrayEndTimestampsGetTest() throws ApiException { * @throws ApiException if the Api call fails */ @Test - public void notebooksNamespaceArrayPrunePostTest() throws ApiException { - String namespace = null; + public void notebooksWorkspaceTeamspaceArrayPrunePostTest() throws ApiException { + String workspace = null; + String teamspace = null; String array = null; Integer keepVersions = null; - api.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); + api.notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java index e420edb..f6b6448 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java @@ -45,9 +45,10 @@ public class OrganizationApiTest { */ @Test public void addAWSAccessCredentialsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; AWSAccessCredentials awsAccessCredentials = null; - api.addAWSAccessCredentials(namespace, awsAccessCredentials); + api.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); // TODO: test validations } @@ -71,8 +72,9 @@ public void addUserToOrganizationTest() throws ApiException { */ @Test public void checkAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - List response = api.checkAWSAccessCredentials(namespace); + String workspace = null; + String teamspace = null; + List response = api.checkAWSAccessCredentials(workspace, teamspace); // TODO: test validations } @@ -83,9 +85,10 @@ public void checkAWSAccessCredentialsTest() throws ApiException { */ @Test public void checkAWSAccessCredentialsByNameTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(namespace, name); + AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(workspace, teamspace, name); // TODO: test validations } @@ -134,9 +137,10 @@ public void createSSODomainTest() throws ApiException { */ @Test public void deleteAWSAccessCredentialsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.deleteAWSAccessCredentials(namespace, name); + api.deleteAWSAccessCredentials(workspace, teamspace, name); // TODO: test validations } @@ -246,10 +250,11 @@ public void getSSODomainsTest() throws ApiException { */ @Test public void updateAWSAccessCredentialsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; AWSAccessCredentials awsAccessCredentials = null; - api.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); + api.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java index 70d5f4f..ec6f13b 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java @@ -41,14 +41,15 @@ public class QueryApiTest { */ @Test public void finalizeQueryTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String type = null; String contentType = null; Query query = null; String xPayer = null; Integer openAt = null; - Query response = api.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); + Query response = api.finalizeQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt); // TODO: test validations } @@ -59,14 +60,15 @@ public void finalizeQueryTest() throws ApiException { */ @Test public void getEstResultSizesTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String type = null; String contentType = null; Query query = null; String xPayer = null; Integer openAt = null; - Query response = api.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); + Query response = api.getEstResultSizes(workspace, teamspace, array, type, contentType, query, xPayer, openAt); // TODO: test validations } @@ -77,11 +79,12 @@ public void getEstResultSizesTest() throws ApiException { */ @Test public void getFileTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; String xPayer = null; - File response = api.getFile(namespace, array, contentType, xPayer); + File response = api.getFile(workspace, teamspace, array, contentType, xPayer); // TODO: test validations } @@ -92,14 +95,15 @@ public void getFileTest() throws ApiException { */ @Test public void submitQueryTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String type = null; String contentType = null; Query query = null; String xPayer = null; Integer openAt = null; - Query response = api.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); + Query response = api.submitQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt); // TODO: test validations } @@ -110,12 +114,13 @@ public void submitQueryTest() throws ApiException { */ @Test public void submitQueryJsonTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; String contentType = null; QueryJson queryJson = null; String xPayer = null; - Object response = api.submitQueryJson(namespace, array, contentType, queryJson, xPayer); + Object response = api.submitQueryJson(workspace, teamspace, array, contentType, queryJson, xPayer); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java index 92537dd..25bbb5c 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java @@ -40,9 +40,9 @@ public class RegisteredTaskGraphsApiTest { */ @Test public void deleteRegisteredTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - api.deleteRegisteredTaskGraph(namespace, name); + api.deleteRegisteredTaskGraph(workspace, name); // TODO: test validations } @@ -53,9 +53,9 @@ public void deleteRegisteredTaskGraphTest() throws ApiException { */ @Test public void getRegisteredTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - RegisteredTaskGraph response = api.getRegisteredTaskGraph(namespace, name); + RegisteredTaskGraph response = api.getRegisteredTaskGraph(workspace, name); // TODO: test validations } @@ -66,9 +66,9 @@ public void getRegisteredTaskGraphTest() throws ApiException { */ @Test public void getRegisteredTaskGraphSharingPoliciesTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - List response = api.getRegisteredTaskGraphSharingPolicies(namespace, name); + List response = api.getRegisteredTaskGraphSharingPolicies(workspace, name); // TODO: test validations } @@ -79,10 +79,10 @@ public void getRegisteredTaskGraphSharingPoliciesTest() throws ApiException { */ @Test public void registerRegisteredTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; RegisteredTaskGraph graph = null; - api.registerRegisteredTaskGraph(namespace, name, graph); + api.registerRegisteredTaskGraph(workspace, name, graph); // TODO: test validations } @@ -93,10 +93,10 @@ public void registerRegisteredTaskGraphTest() throws ApiException { */ @Test public void shareRegisteredTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; TaskGraphSharing taskGraphSharing = null; - api.shareRegisteredTaskGraph(namespace, name, taskGraphSharing); + api.shareRegisteredTaskGraph(workspace, name, taskGraphSharing); // TODO: test validations } @@ -107,10 +107,10 @@ public void shareRegisteredTaskGraphTest() throws ApiException { */ @Test public void updateRegisteredTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; RegisteredTaskGraph graph = null; - api.updateRegisteredTaskGraph(namespace, name, graph); + api.updateRegisteredTaskGraph(workspace, name, graph); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java index 4c91f3b..35dfa82 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java @@ -39,10 +39,11 @@ public class SqlApiTest { */ @Test public void runSQLTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; SQLParameters sql = null; String acceptEncoding = null; - List> response = api.runSQL(namespace, sql, acceptEncoding); + List> response = api.runSQL(workspace, teamspace, sql, acceptEncoding); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java index 5e928e0..47ca575 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java @@ -42,9 +42,9 @@ public class TaskGraphLogsApiTest { */ @Test public void createTaskGraphLogTest() throws ApiException { - String namespace = null; + String workspace = null; TaskGraphLog log = null; - TaskGraphLog response = api.createTaskGraphLog(namespace, log); + TaskGraphLog response = api.createTaskGraphLog(workspace, log); // TODO: test validations } @@ -55,9 +55,9 @@ public void createTaskGraphLogTest() throws ApiException { */ @Test public void getTaskGraphLogTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - TaskGraphLog response = api.getTaskGraphLog(namespace, id); + TaskGraphLog response = api.getTaskGraphLog(workspace, id); // TODO: test validations } @@ -85,10 +85,10 @@ public void listTaskGraphLogsTest() throws ApiException { */ @Test public void reportClientNodeTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; TaskGraphClientNodeStatus report = null; - api.reportClientNode(namespace, id, report); + api.reportClientNode(workspace, id, report); // TODO: test validations } @@ -99,9 +99,9 @@ public void reportClientNodeTest() throws ApiException { */ @Test public void resubmitTaskGraphExecutionTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - TaskGraphLog response = api.resubmitTaskGraphExecution(namespace, id); + TaskGraphLog response = api.resubmitTaskGraphExecution(workspace, id); // TODO: test validations } @@ -112,9 +112,9 @@ public void resubmitTaskGraphExecutionTest() throws ApiException { */ @Test public void retryTaskGraphExecutionTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - TaskGraphLog response = api.retryTaskGraphExecution(namespace, id); + TaskGraphLog response = api.retryTaskGraphExecution(workspace, id); // TODO: test validations } @@ -125,9 +125,9 @@ public void retryTaskGraphExecutionTest() throws ApiException { */ @Test public void stopTaskGraphExecutionTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - api.stopTaskGraphExecution(namespace, id); + api.stopTaskGraphExecution(workspace, id); // TODO: test validations } @@ -138,9 +138,10 @@ public void stopTaskGraphExecutionTest() throws ApiException { */ @Test public void submitTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - TaskGraphLog response = api.submitTaskGraph(namespace, id); + String rootTaskGraphUuid = null; + TaskGraphLog response = api.submitTaskGraph(workspace, id, rootTaskGraphUuid); // TODO: test validations } @@ -151,10 +152,10 @@ public void submitTaskGraphTest() throws ApiException { */ @Test public void updateTaskGraphLogTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; TaskGraphLog log = null; - api.updateTaskGraphLog(namespace, id, log); + api.updateTaskGraphLog(workspace, id, log); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java index bc63a7b..3baf564 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java @@ -41,9 +41,9 @@ public class TaskGraphsApiTest { */ @Test public void createTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; TaskGraph graph = null; - TaskGraph response = api.createTaskGraph(namespace, graph); + TaskGraph response = api.createTaskGraph(workspace, graph); // TODO: test validations } @@ -54,9 +54,9 @@ public void createTaskGraphTest() throws ApiException { */ @Test public void getTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - TaskGraph response = api.getTaskGraph(namespace, id); + TaskGraph response = api.getTaskGraph(workspace, id); // TODO: test validations } @@ -67,8 +67,8 @@ public void getTaskGraphTest() throws ApiException { */ @Test public void listTaskGraphsTest() throws ApiException { - String namespace = null; - TaskGraphs response = api.listTaskGraphs(namespace); + String workspace = null; + TaskGraphs response = api.listTaskGraphs(workspace); // TODO: test validations } @@ -79,9 +79,10 @@ public void listTaskGraphsTest() throws ApiException { */ @Test public void submitTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; - TaskGraphLog response = api.submitTaskGraph(namespace, id); + String rootTaskGraphUuid = null; + TaskGraphLog response = api.submitTaskGraph(workspace, id, rootTaskGraphUuid); // TODO: test validations } @@ -92,10 +93,10 @@ public void submitTaskGraphTest() throws ApiException { */ @Test public void updateTaskGraphTest() throws ApiException { - String namespace = null; + String workspace = null; String id = null; TaskGraph graph = null; - api.updateTaskGraph(namespace, id, graph); + api.updateTaskGraph(workspace, id, graph); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java index a50188e..2bd411d 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java @@ -41,10 +41,11 @@ public class TasksApiTest { */ @Test public void runSQLTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; SQLParameters sql = null; String acceptEncoding = null; - List> response = api.runSQL(namespace, sql, acceptEncoding); + List> response = api.runSQL(workspace, teamspace, sql, acceptEncoding); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java index 6fbd5f5..c178e1c 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java @@ -47,9 +47,9 @@ public class UdfApiTest { */ @Test public void deleteUDFInfoTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - api.deleteUDFInfo(namespace, name); + api.deleteUDFInfo(workspace, name); // TODO: test validations } @@ -60,9 +60,9 @@ public void deleteUDFInfoTest() throws ApiException { */ @Test public void getUDFInfoTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - UDFInfo response = api.getUDFInfo(namespace, name); + UDFInfo response = api.getUDFInfo(workspace, name); // TODO: test validations } @@ -73,9 +73,9 @@ public void getUDFInfoTest() throws ApiException { */ @Test public void getUDFInfoSharingPoliciesTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; - List response = api.getUDFInfoSharingPolicies(namespace, name); + List response = api.getUDFInfoSharingPolicies(workspace, name); // TODO: test validations } @@ -86,12 +86,12 @@ public void getUDFInfoSharingPoliciesTest() throws ApiException { */ @Test public void handleCopyUDFTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; UDFCopy udFCopy = null; String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; Integer endTimestamp = null; - UDFCopied response = api.handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + UDFCopied response = api.handleCopyUDF(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); // TODO: test validations } @@ -102,10 +102,10 @@ public void handleCopyUDFTest() throws ApiException { */ @Test public void registerUDFInfoTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; UDFInfoUpdate udf = null; - api.registerUDFInfo(namespace, name, udf); + api.registerUDFInfo(workspace, name, udf); // TODO: test validations } @@ -116,10 +116,10 @@ public void registerUDFInfoTest() throws ApiException { */ @Test public void shareUDFInfoTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; UDFSharing udfSharing = null; - api.shareUDFInfo(namespace, name, udfSharing); + api.shareUDFInfo(workspace, name, udfSharing); // TODO: test validations } @@ -130,10 +130,10 @@ public void shareUDFInfoTest() throws ApiException { */ @Test public void submitGenericUDFTest() throws ApiException { - String namespace = null; + String workspace = null; GenericUDF udf = null; String acceptEncoding = null; - File response = api.submitGenericUDF(namespace, udf, acceptEncoding); + File response = api.submitGenericUDF(workspace, udf, acceptEncoding); // TODO: test validations } @@ -144,10 +144,10 @@ public void submitGenericUDFTest() throws ApiException { */ @Test public void submitMultiArrayUDFTest() throws ApiException { - String namespace = null; + String workspace = null; MultiArrayUDF udf = null; String acceptEncoding = null; - File response = api.submitMultiArrayUDF(namespace, udf, acceptEncoding); + File response = api.submitMultiArrayUDF(workspace, udf, acceptEncoding); // TODO: test validations } @@ -158,13 +158,14 @@ public void submitMultiArrayUDFTest() throws ApiException { */ @Test public void submitUDFTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String array = null; MultiArrayUDF udf = null; String xPayer = null; String acceptEncoding = null; String v2 = null; - File response = api.submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2); + File response = api.submitUDF(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2); // TODO: test validations } @@ -174,12 +175,12 @@ public void submitUDFTest() throws ApiException { * @throws ApiException if the Api call fails */ @Test - public void udfNamespaceArrayEndTimestampsGetTest() throws ApiException { - String namespace = null; + public void udfWorkspaceArrayEndTimestampsGetTest() throws ApiException { + String workspace = null; String array = null; Integer page = null; Integer perPage = null; - ArrayEndTimestampData response = api.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + ArrayEndTimestampData response = api.udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage); // TODO: test validations } @@ -190,10 +191,10 @@ public void udfNamespaceArrayEndTimestampsGetTest() throws ApiException { */ @Test public void updateUDFInfoTest() throws ApiException { - String namespace = null; + String workspace = null; String name = null; UDFInfoUpdate udf = null; - api.updateUDFInfo(namespace, name, udf); + api.updateUDFInfo(workspace, name, udf); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java index b84fd7a..dcd9e1c 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java @@ -16,6 +16,7 @@ import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; import io.tiledb.cloud.rest_api.model.Error; +import java.time.OffsetDateTime; import io.tiledb.cloud.rest_api.model.OrganizationUser; import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; import io.tiledb.cloud.rest_api.model.Token; @@ -45,9 +46,10 @@ public class UserApiTest { */ @Test public void addAWSAccessCredentialsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; AWSAccessCredentials awsAccessCredentials = null; - api.addAWSAccessCredentials(namespace, awsAccessCredentials); + api.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); // TODO: test validations } @@ -71,8 +73,9 @@ public void addUserToOrganizationTest() throws ApiException { */ @Test public void checkAWSAccessCredentialsTest() throws ApiException { - String namespace = null; - List response = api.checkAWSAccessCredentials(namespace); + String workspace = null; + String teamspace = null; + List response = api.checkAWSAccessCredentials(workspace, teamspace); // TODO: test validations } @@ -83,9 +86,10 @@ public void checkAWSAccessCredentialsTest() throws ApiException { */ @Test public void checkAWSAccessCredentialsByNameTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(namespace, name); + AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(workspace, teamspace, name); // TODO: test validations } @@ -119,9 +123,10 @@ public void createUserTest() throws ApiException { */ @Test public void deleteAWSAccessCredentialsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; - api.deleteAWSAccessCredentials(namespace, name); + api.deleteAWSAccessCredentials(workspace, teamspace, name); // TODO: test validations } @@ -171,7 +176,8 @@ public void getOrganizationUserTest() throws ApiException { @Test public void getSessionTest() throws ApiException { String rememberMe = null; - Token response = api.getSession(rememberMe); + OffsetDateTime expires = null; + Token response = api.getSession(rememberMe, expires); // TODO: test validations } @@ -274,10 +280,11 @@ public void tokensSessionGetTest() throws ApiException { */ @Test public void updateAWSAccessCredentialsTest() throws ApiException { - String namespace = null; + String workspace = null; + String teamspace = null; String name = null; AWSAccessCredentials awsAccessCredentials = null; - api.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); + api.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); // TODO: test validations } diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java index b532440..e9fd0d0 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java @@ -58,6 +58,14 @@ public void idTest() { // TODO: test id } + /** + * Test the property 'assetId' + */ + @Test + public void assetIdTest() { + // TODO: test assetId + } + /** * Test the property 'fileType' */ diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequestTest.java new file mode 100644 index 0000000..efd5284 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequestTest.java @@ -0,0 +1,58 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ChangeAssetCredentialsRequest + */ +public class ChangeAssetCredentialsRequestTest { + private final ChangeAssetCredentialsRequest model = new ChangeAssetCredentialsRequest(); + + /** + * Model tests for ChangeAssetCredentialsRequest + */ + @Test + public void testChangeAssetCredentialsRequest() { + // TODO: test ChangeAssetCredentialsRequest + } + + /** + * Test the property 'accessCredentials' + */ + @Test + public void accessCredentialsTest() { + // TODO: test accessCredentials + } + + /** + * Test the property 'assetUuids' + */ + @Test + public void assetUuidsTest() { + // TODO: test assetUuids + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java index de13834..ac1aa1d 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java @@ -53,6 +53,14 @@ public void fileNameTest() { // TODO: test fileName } + /** + * Test the property 'assetId' + */ + @Test + public void assetIdTest() { + // TODO: test assetId + } + /** * Test the property 'id' */ diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java index 640771d..8a53301 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; +import io.tiledb.cloud.rest_api.model.TGUDFStorage; import io.tiledb.cloud.rest_api.model.UDFLanguage; import java.io.IOException; import java.math.BigDecimal; @@ -116,11 +117,11 @@ public void timeoutTest() { } /** - * Test the property 'paths' + * Test the property 'storage' */ @Test - public void pathsTest() { - // TODO: test paths + public void storageTest() { + // TODO: test storage } } diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java index a1f0a25..f330c18 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java @@ -45,6 +45,14 @@ public void pathTest() { // TODO: test path } + /** + * Test the property 'tiledbUri' + */ + @Test + public void tiledbUriTest() { + // TODO: test tiledbUri + } + /** * Test the property 'size' */ diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java index cd3943f..66c1274 100644 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java @@ -191,4 +191,20 @@ public void cloudRegionTest() { // TODO: test cloudRegion } + /** + * Test the property 'rootTaskGraphUuid' + */ + @Test + public void rootTaskGraphUuidTest() { + // TODO: test rootTaskGraphUuid + } + + /** + * Test the property 'childrenTaskGraphUuids' + */ + @Test + public void childrenTaskGraphUuidsTest() { + // TODO: test childrenTaskGraphUuids + } + } From 38594bbca0acec0f068112f4567ed304c86a2793 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 15 May 2025 23:45:13 -0400 Subject: [PATCH 11/15] CustomCode, workspace patches --- src/main/java/examples/Examples.java | 22 +- src/main/java/io/tiledb/cloud/CustomCode.txt | 256 +++++++-------- src/main/java/io/tiledb/cloud/TileDBSQL.java | 11 +- src/main/java/io/tiledb/cloud/TileDBUDF.java | 12 +- .../io/tiledb/cloud/rest_api/api/SqlApi.java | 43 +++ .../io/tiledb/cloud/rest_api/api/UdfApi.java | 299 ++++++++++++++++++ .../rest_api/auth/OAuthOkHttpClient.java | 1 - .../cloud/rest_api/model/GroupActivity.java | 2 +- .../rest_api/model/GroupActivityResponse.java | 2 +- .../cloud/rest_api/model/UDFLanguage.java | 4 +- 10 files changed, 502 insertions(+), 150 deletions(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 18a7442..5a1cf4d 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -55,14 +55,14 @@ public static void main(String[] args) throws ApiException { private static void runSQL(TileDBClient tileDBClient) { SQLParameters sqlParameters = new SQLParameters(); sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); + TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "workspace", "unittest", sqlParameters); System.out.println(tileDBSQL.exec()); } private static void runSQLArrow(TileDBClient tileDBClient) { SQLParameters sqlParameters = new SQLParameters(); sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); + TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "workspace", "unittest", sqlParameters); Pair, Integer> a = tileDBSQL.execArrow(); } @@ -167,11 +167,12 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ */ private static void deregisterArray(TileDBClient tileDBClient) { + String workspace = ""; String namespace = ""; // String | namespace array is in (an organization name or user's username) String array = ""; // String | name/uri of array that is url-encoded ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - apiInstance.deregisterArray(namespace, array); + apiInstance.deregisterArray(workspace, namespace, array); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#deregisterArray"); System.err.println("Status code: " + e.getCode()); @@ -186,12 +187,13 @@ private static void deregisterArray(TileDBClient tileDBClient) */ private static void deleteArray(TileDBClient tileDBClient) { + String workspace = ""; String namespace = ""; // String | namespace array is in (an organization name or user's username) String array = ""; // String | name/uri of array that is url-encoded String contentType = "application/json"; // String | Content Type of input and return mime ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - apiInstance.deleteArray(namespace, array, contentType); + apiInstance.deleteArray(workspace, namespace, array, contentType); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#deleteArray"); System.err.println("Status code: " + e.getCode()); @@ -232,12 +234,13 @@ private static void listGroups(TileDBClient tileDBClient) private static void listArrays(TileDBClient tileDBClient) { + String workspace = "workspace"; String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) Boolean withMetadata = false; ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - List result = apiInstance.getArraysInNamespace(namespace, withMetadata); + List result = apiInstance.getArraysInNamespace(workspace, namespace, withMetadata); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); @@ -249,13 +252,14 @@ private static void listArrays(TileDBClient tileDBClient) } private static void getArray(TileDBClient tileDBClient){ + String workspace = "workspace"; String namespace = "TileDB-Inc"; // String | namespace array is in (an organization name or user's username) String array = "quickstart_sparse"; // String | name/uri of array that is url-encoded String contentType = "application/json"; // String | Content Type of input and return mime ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - ArraySchema result = apiInstance.getArray(namespace, array, contentType); + ArraySchema result = apiInstance.getArray(workspace, namespace, array, contentType); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArray"); @@ -267,6 +271,7 @@ private static void getArray(TileDBClient tileDBClient){ } private static void createArray(TileDBClient tileDBClient){ + String workspace = ""; String namespace = ""; // String | namespace array is in (an organization name or user's username) String arrayName = "s3:///my_array"; // String | name/uri of array that is url-encoded // String contentType = "application/json"; // String | Content Type of input and return mime @@ -319,7 +324,7 @@ private static void createArray(TileDBClient tileDBClient){ ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - apiInstance.createArray(namespace, arrayName, contentType, schema, null); + apiInstance.createArray(workspace, namespace, arrayName, contentType, schema, null); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#createArray"); System.err.println("Status code: " + e.getCode()); @@ -330,6 +335,7 @@ private static void createArray(TileDBClient tileDBClient){ } public static void registerArray(TileDBClient tileDBClient){ + String workspace = ""; String namespace = ""; // String | namespace array is in (an organization name or user's username) String array = "s3:////"; // String | name/uri of array that is url-encoded ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array @@ -338,7 +344,7 @@ public static void registerArray(TileDBClient tileDBClient){ ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - ArrayInfo result = apiInstance.registerArray(namespace, array, arrayMetadata); + ArrayInfo result = apiInstance.registerArray(workspace, namespace, array, arrayMetadata); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#registerArray"); 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/TileDBSQL.java b/src/main/java/io/tiledb/cloud/TileDBSQL.java index ee06055..0d0e3af 100644 --- a/src/main/java/io/tiledb/cloud/TileDBSQL.java +++ b/src/main/java/io/tiledb/cloud/TileDBSQL.java @@ -18,6 +18,8 @@ import org.apache.arrow.compression.CommonsCompressionFactory; public class TileDBSQL implements AutoCloseable{ + private String workspace; + private String namespace; private SQLParameters sql; @@ -38,10 +40,11 @@ public class TileDBSQL implements AutoCloseable{ * @param namespace namespace to run task under is in (an organization name or user's username) * @param sql sql being submitted */ - public TileDBSQL(TileDBClient tileDBClient, String namespace, SQLParameters sql) { + public TileDBSQL(TileDBClient tileDBClient, String workspace, String namespace, SQLParameters sql) { Objects.requireNonNull(tileDBClient, "TileDBClient can not be null"); Objects.requireNonNull(namespace, "Namespace can not be null"); Objects.requireNonNull(sql, "SQL parameters can not be null"); + this.workspace = workspace; this.namespace = namespace; this.sql = sql; this.tileDBClient = tileDBClient; @@ -62,7 +65,7 @@ public Pair, Integer> execArrow(){ "'execArrow()' you can not specify a different ResultFormat. "); } sql.setResultFormat(ResultFormat.ARROW); - byte[] bytes = apiInstance.runSQLBytes(namespace, sql, "none"); + byte[] bytes = apiInstance.runSQLBytes(workspace, namespace, sql, "none"); ArrayList valueVectors = null; int readBatchesCount = 0; @@ -101,9 +104,9 @@ public Pair, Integer> execArrow(){ public List> exec(){ try { if (sql.getResultFormat() == null ){ - return apiInstance.runSQL(namespace, sql, ResultFormat.TILEDB_JSON.toString()); + return apiInstance.runSQL(workspace, namespace, sql, ResultFormat.TILEDB_JSON.toString()); } else { - return apiInstance.runSQL(namespace, sql, sql.getResultFormat().toString()); + return apiInstance.runSQL(workspace, namespace, sql, sql.getResultFormat().toString()); } } catch (ApiException e) { System.err.println("Exception when calling SqlApi#runSQL/runSQLBytes"); diff --git a/src/main/java/io/tiledb/cloud/TileDBUDF.java b/src/main/java/io/tiledb/cloud/TileDBUDF.java index 1641105..97ad642 100644 --- a/src/main/java/io/tiledb/cloud/TileDBUDF.java +++ b/src/main/java/io/tiledb/cloud/TileDBUDF.java @@ -173,7 +173,7 @@ public String executeSingleArray(MultiArrayUDF multiArrayUDF, HashMap, Integer> executeSingleArrayArrow(MultiArrayU String[] split = breakdownFullURI(arrayURI); try { - byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], multiArrayUDF, xPayer, "none", ""); + byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); return TileDBUtils.createValueVectors(bytes); } catch (IOException | ApiException e) { e.printStackTrace(); @@ -374,7 +374,7 @@ public Pair, Integer> executeSingleArrayArrow(GenericUDF String[] split = breakdownFullURI(array.getUri()); try { - byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], multiArrayUDF, xPayer, "none", ""); + byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); return TileDBUtils.createValueVectors(bytes); } catch (IOException | ApiException e) { e.printStackTrace(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java index a8b47e3..13e46d2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java @@ -236,4 +236,47 @@ public okhttp3.Call runSQLAsync(String workspace, String teamspace, SQLParameter localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + + /** + * + * Run a sql query + * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse with byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response -
+ */ + public ApiResponse runSQLWithHttpInfoBytes(String 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); + } + + /** + * + * Run a sql query + * @param namespace namespace to run task under is in (an organization name or user's username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response -
+ */ + public byte[] runSQLBytes(String workspace, String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = runSQLWithHttpInfoBytes(workspace, namespace, sql, acceptEncoding); + return localVarResp.getData(); + } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java index 4cd93e8..8ddb5bc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java @@ -1760,4 +1760,303 @@ public okhttp3.Call updateUDFInfoAsync(String workspace, String name, UDFInfoUpd localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + + /** + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfoString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public String submitGenericUDFString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public byte[] submitGenericUDFBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfoBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfoObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitMultiArrayUDFWithHttpInfoString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * + * send a UDF to run against a specified array/URI registered to a group/project + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public String submitUDFString(String 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(); + } + + /** + * + * send a UDF to run against a specified array/URI registered to a group/project + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitUDFWithHttpInfoString(String 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); + } + + /** + * + * send a UDF to run against a specified array/URI registered to a group/project + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public byte[] submitUDFBytes(String 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(); + } + + /** + * + * send a UDF to run against a specified array/URI registered to a group/project + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. (optional) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitUDFWithHttpInfoBytes(String 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); + } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java index 40f121b..d50d3bc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java @@ -55,7 +55,6 @@ public T execute(OAuthClientRequest request, Map response.body().string(), response.body().contentType().toString(), response.code(), - response.headers().toMultimap(), responseClass); } catch (IOException e) { throw new OAuthSystemException(e); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java index 2e121ce..ea72559 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java @@ -209,7 +209,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `activity_log` if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { - ArrayActivityLog.validateJsonObject(jsonObj.getAsJsonObject("activity_log")); + ArrayActivityLog.validateJsonElement(jsonObj.getAsJsonObject("activity_log")); } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java index 8cd3c58..c309669 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java @@ -228,7 +228,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `pagination_metadata` if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + PaginationMetadata.validateJsonElement(jsonObj.getAsJsonObject("pagination_metadata")); } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java index 480951d..0d790fa 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java @@ -31,7 +31,9 @@ public enum UDFLanguage { PYTHON("python"), - R("r"); + R("r"), + + NEXTFLOW("nextflow"); private String value; From 1f076ebd38ebb76fb6bc164fce727d0fd2b1c2a4 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Fri, 16 May 2025 01:12:11 -0400 Subject: [PATCH 12/15] rm `TileDB{SQL,UDF}.java`, `update Examples.java` --- src/main/java/examples/Examples.java | 382 +++---------- src/main/java/io/tiledb/cloud/TileDBSQL.java | 131 ----- src/main/java/io/tiledb/cloud/TileDBUDF.java | 529 ------------------- 3 files changed, 64 insertions(+), 978 deletions(-) delete mode 100644 src/main/java/io/tiledb/cloud/TileDBSQL.java delete mode 100644 src/main/java/io/tiledb/cloud/TileDBUDF.java diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 5a1cf4d..7615b1a 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -1,10 +1,11 @@ package examples; // Import classes: -import io.tiledb.cloud.*; +import io.tiledb.cloud.Pair; +import io.tiledb.cloud.TileDBClient; +import io.tiledb.cloud.TileDBLogin; import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.api.GroupsApi; -import io.tiledb.cloud.rest_api.api.ArrayApi; +import io.tiledb.cloud.rest_api.api.TaskGraphsApi; import io.tiledb.cloud.rest_api.model.*; import org.apache.arrow.vector.ValueVector; @@ -19,16 +20,18 @@ public class Examples { public static void main(String[] args) throws ApiException { + String token = ""; + String URL = ""; // if using cloud for the first time create the client with a Login object to pass your credentials. TileDBClient tileDBClient = new TileDBClient( new TileDBLogin(null, null, - System.getenv("API_TOKEN"), + token, + false, true, true, - true, - "https://api.tiledb.com")); + URL)); // If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need // to pass any credentials from now on. Just create the client as follows: @@ -36,322 +39,65 @@ public static void main(String[] args) throws ApiException { tileDBClient.setDebugging(true); -// Uncomment to run whichever example you want - runGenericUDF(tileDBClient); - runArrayUDF(tileDBClient); - runMultiArrayUDF(tileDBClient); - getArray(tileDBClient); -// createArray(tileDBClient); -// registerArray(tileDBClient); - listArrays(tileDBClient); - listGroups(tileDBClient); -// deleteArray(tileDBClient); -// deregisterArray(tileDBClient); - runSQL(tileDBClient); - runSQLArrow(tileDBClient); - - } - - private static void runSQL(TileDBClient tileDBClient) { - SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "workspace", "unittest", sqlParameters); - System.out.println(tileDBSQL.exec()); - } - - private static void runSQLArrow(TileDBClient tileDBClient) { - SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "workspace", "unittest", sqlParameters); - Pair, Integer> a = tileDBSQL.execArrow(); - } - - /** - * Runs a generic UDF - * @param tileDBClient - */ - private static void runGenericUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); - GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("TileDB-Inc/args-udf"); - HashMap arguments = new HashMap<>(); - arguments.put("arg1", "a1"); - arguments.put("arg2", "a2"); - genericUDF.setArgument(serializeArgs(arguments)); - System.out.println(tileDBUDF.executeGeneric(genericUDF)); //could be JSON or Arrow - } - - /** - * Runs an array UDF on a TileDB Array - * @param tileDBClient - */ - public static void runArrayUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); - ArrayList range1 = new ArrayList<>(); - range1.add(BigDecimal.valueOf(1)); - range1.add(BigDecimal.valueOf(4)); - - ArrayList range2 = new ArrayList<>(); - range2.add(BigDecimal.valueOf(1)); - range2.add(BigDecimal.valueOf(4)); - - QueryRanges queryRanges = new QueryRanges(); - queryRanges.addRangesItem(range1); - queryRanges.addRangesItem(range2); - - HashMap argumentsForArrayUDF = new HashMap<>(); - argumentsForArrayUDF.put("attr", "rows"); - argumentsForArrayUDF.put("scale", 9); - - GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("TileDB-Inc/array-udf"); - genericUDF.setArgument(serializeArgs(argumentsForArrayUDF)); - - UDFArrayDetails array = new UDFArrayDetails(); - array.setUri("tiledb://TileDB-Inc/quickstart_sparse"); - - System.out.println(tileDBUDF.executeSingleArray(genericUDF, array, queryRanges, "unittest")); - } - - /** - * Runs a multi-array UDF on multiple TileDB arrays - * @param tileDBClient - */ - public static void runMultiArrayUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); - - ArrayList range1 = new ArrayList<>(); - range1.add(BigDecimal.valueOf(1)); - range1.add(BigDecimal.valueOf(4)); - - ArrayList range2 = new ArrayList<>(); - range2.add(BigDecimal.valueOf(1)); - range2.add(BigDecimal.valueOf(4)); - - QueryRanges queryRanges = new QueryRanges(); - queryRanges.addRangesItem(range1); - queryRanges.addRangesItem(range2); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setUdfInfoName("TileDB-Inc/multi-array-udf"); - - List arrays = new ArrayList<>(); - - //array1 - UDFArrayDetails array1 = new UDFArrayDetails(); - array1.setUri("tiledb://TileDB-Inc/quickstart_sparse"); - array1.setRanges(queryRanges); - array1.setBuffers(Arrays.asList("rows", "cols", "a")); - arrays.add(array1); - - //array2 - UDFArrayDetails array2 = new UDFArrayDetails(); - array2.setUri("tiledb://TileDB-Inc/quickstart_sparse-eu-west-2"); - array2.setRanges(queryRanges); - array2.setBuffers(Arrays.asList("rows", "cols", "a")); - arrays.add(array2); - - multiArrayUDF.setArrays(arrays); - - HashMap arguments = new HashMap<>(); - arguments.put("attr1", "a"); - arguments.put("attr2", "a"); - - multiArrayUDF.setArgument(serializeArgs(arguments)); - - System.out.println(tileDBUDF.executeMultiArray(multiArrayUDF)); - } - - /** - * Deregister an array - */ - private static void deregisterArray(TileDBClient tileDBClient) - { - String workspace = ""; - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String array = ""; // String | name/uri of array that is url-encoded - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - try { - apiInstance.deregisterArray(workspace, namespace, array); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deregisterArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - /** - * Delete an array - */ - private static void deleteArray(TileDBClient tileDBClient) - { - String workspace = ""; - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String array = ""; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - try { - apiInstance.deleteArray(workspace, namespace, array, contentType); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deleteArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - private static void listGroups(TileDBClient tileDBClient) - { - GroupsApi apiInstance = new GroupsApi(tileDBClient.getApiClient()); - Integer page = null; // Integer | pagination offset - Integer perPage = null; // Integer | pagination limit - String search = null; // String | search string that will look at name, namespace or description fields - String namespace = "unittest"; // String | namespace - String orderby = null; // String | sort by which field valid values include last_accessed, size, name - String permissions = null; // String | permissions valid values include read, read_write, write, admin - String groupType = "generic"; // String | filter by a specific group type - List tag = null; // List | tag to search for, more than one can be included - List excludeTag = null; // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = null; // String | search only the children of the groups with this uuid - Boolean withMetadata = false; - try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); - //or use api.listOwnedGroups(...) / api.listSharedGroups(...) - System.out.println(result.getGroups()); - } catch (ApiException e) { - 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(); - } - - } - - private static void listArrays(TileDBClient tileDBClient) - { - String workspace = "workspace"; - String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) - Boolean withMetadata = false; - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - - try { - List result = apiInstance.getArraysInNamespace(workspace, namespace, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - private static void getArray(TileDBClient tileDBClient){ - String workspace = "workspace"; - String namespace = "TileDB-Inc"; // String | namespace array is in (an organization name or user's username) - String array = "quickstart_sparse"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - - try { - ArraySchema result = apiInstance.getArray(workspace, namespace, array, contentType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - - private static void createArray(TileDBClient tileDBClient){ - String workspace = ""; - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String arrayName = "s3:///my_array"; // String | name/uri of array that is url-encoded // - String contentType = "application/json"; // String | Content Type of input and return mime - - Dimension d1 = new Dimension(); - - d1.setName("d1"); - - d1.setType(Datatype.INT64); - - DomainArray domainArray = new DomainArray(); - domainArray.addInt64Item(0L); - domainArray.addInt64Item(4L); - d1.setDomain(domainArray); - - DimensionTileExtent tileExtent = new DimensionTileExtent().int64(2L); - d1.setTileExtent(tileExtent); - d1.setNullTileExtent(false); - - // Create and set getDomain - Domain domain = new Domain(); - domain.setTileOrder(Layout.ROW_MAJOR); - domain.setCellOrder(Layout.ROW_MAJOR); - domain.setType(Datatype.INT64); - domain.addDimensionsItem(d1); - - // Create and add Attributes - Attribute a1 = new Attribute(); - a1.setName("a1"); - a1.setType(Datatype.INT32); - a1.setNullable(true); - - ArraySchema schema = new ArraySchema(); - schema.addVersionItem(10); - - FilterPipeline filterPipeline = new FilterPipeline(); - filterPipeline.addFiltersItem(new Filter().type(FilterType.ZSTD)); - - schema.setOffsetFilterPipeline(filterPipeline); - schema.setCoordsFilterPipeline(filterPipeline); + // If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need +// to pass any credentials from now on. Just create the client as follows: +// TileDBClient tileDBClient = new TileDBClient(); + tileDBClient.setDebugging(true); - schema.setDomain(domain); - schema.setCapacity(1000); - schema.addAttributesItem(a1); - schema.setArrayType(ArrayType.DENSE); - schema.setTileOrder(Layout.ROW_MAJOR); - schema.setCellOrder(Layout.ROW_MAJOR); - System.out.println(schema); +// runNextflowMethods(tileDBClient); - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - try { - apiInstance.createArray(workspace, namespace, arrayName, contentType, schema, null); - } 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 registerArray(TileDBClient tileDBClient){ - String workspace = ""; - String namespace = ""; // String | namespace array is in (an organization name or user's username) - String array = "s3:////"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array - arrayMetadata.setUri("s3:////"); - arrayMetadata.setName(""); - ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); - - try { - ArrayInfo result = apiInstance.registerArray(workspace, namespace, array, arrayMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#registerArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void runNextflowMethods(TileDBClient tileDBClient) throws ApiException { + String namespace = ""; + TaskGraphNode node = new TaskGraphNode(); + node.name("dstara"); + String uuid = "23be1141-e11a-4853-bf00-b5e5ec64315d"; + node.clientNodeId(uuid); + + // TODO: set retry strategy + node.retryStrategy(new RetryStrategy().limit(0)); + + // TODO: set timeout + // task.config.getTime() + + TGUDFNodeData nodeData = new TGUDFNodeData(); + + TGUDFArgument workDirArg = new TGUDFArgument(); + workDirArg.setName("workDirS3Path"); + workDirArg.setValue("s3://tiledb-dstara"); + nodeData.addArgumentsItem(workDirArg); + + TGUDFEnvironment environment = new TGUDFEnvironment(); + environment.setLanguage(UDFLanguage.NEXTFLOW); + environment.setImageName("debian:latest"); + environment.setAccessCredentialsName(""); + + TGUDFEnvironmentResources environmentResources = new TGUDFEnvironmentResources(); + environmentResources.setCpu("1"); +// environmentResources.setGpu(1); + environmentResources.setMemory("4Gi"); + environment.resources(environmentResources); + + //storage + TGUDFStorage storage = new TGUDFStorage(); + storage.setPath("/tmp"); + storage.setTiledbUri("tiledb:" + "" + "/" + ""); + List myStorageList = new ArrayList<>(); + myStorageList.add(storage); + environment.setStorage(myStorageList); + + nodeData.environment(environment); + node.setUdfNode(nodeData); + + + // Begin task graph + TaskGraph tg = new TaskGraph(); + tg.name("dstara"); + tg.addNodesItem(node); + TaskGraphsApi taskGraphsApi = new TaskGraphsApi(tileDBClient.getApiClient()); + TaskGraph res = taskGraphsApi.createTaskGraph(namespace, tg); + taskGraphsApi.submitTaskGraph(namespace, res.getUuid(), ""); } } diff --git a/src/main/java/io/tiledb/cloud/TileDBSQL.java b/src/main/java/io/tiledb/cloud/TileDBSQL.java deleted file mode 100644 index 0d0e3af..0000000 --- a/src/main/java/io/tiledb/cloud/TileDBSQL.java +++ /dev/null @@ -1,131 +0,0 @@ -package io.tiledb.cloud; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.api.SqlApi; -import io.tiledb.cloud.rest_api.model.ResultFormat; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import org.apache.arrow.memory.RootAllocator; -import org.apache.arrow.memory.unsafe.UnsafeAllocationManager; -import org.apache.arrow.vector.FieldVector; -import org.apache.arrow.vector.ValueVector; -import org.apache.arrow.vector.VectorSchemaRoot; -import org.apache.arrow.vector.ipc.ArrowStreamReader; -import org.apache.arrow.vector.util.TransferPair; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.util.*; -import org.apache.arrow.compression.CommonsCompressionFactory; - -public class TileDBSQL implements AutoCloseable{ - private String workspace; - - private String namespace; - - private SQLParameters sql; - - private TileDBClient tileDBClient; - - private SqlApi apiInstance; - - private ArrayList readBatches; - - private List results; - - private ArrowStreamReader reader; - - /** - * - * @param tileDBClient The TileDBClient - * @param namespace namespace to run task under is in (an organization name or user's username) - * @param sql sql being submitted - */ - public TileDBSQL(TileDBClient tileDBClient, String workspace, String namespace, SQLParameters sql) { - Objects.requireNonNull(tileDBClient, "TileDBClient can not be null"); - Objects.requireNonNull(namespace, "Namespace can not be null"); - Objects.requireNonNull(sql, "SQL parameters can not be null"); - this.workspace = workspace; - this.namespace = namespace; - this.sql = sql; - this.tileDBClient = tileDBClient; - this.apiInstance = new SqlApi(this.tileDBClient.getApiClient()); - this.readBatches = new ArrayList<>(); - } - - /** - * Exec an SQL query and get results in arrow format. - * - * @return A pair that consists of an ArrayList of all valueVectors and the - * number of batches read. - */ - public Pair, Integer> execArrow(){ - try { - if (sql.getResultFormat() != ResultFormat.ARROW && sql.getResultFormat() != null){ - throw new ApiException("The ResultFormat you specified is not 'ARROW'. Since you are calling " + - "'execArrow()' you can not specify a different ResultFormat. "); - } - sql.setResultFormat(ResultFormat.ARROW); - byte[] bytes = apiInstance.runSQLBytes(workspace, namespace, sql, "none"); - ArrayList valueVectors = null; - int readBatchesCount = 0; - -// RootAllocator allocator = new RootAllocator(Long.MAX_VALUE); - RootAllocator allocator = new RootAllocator(RootAllocator.configBuilder().allocationManagerFactory(UnsafeAllocationManager.FACTORY).build()); - ArrowStreamReader reader = new ArrowStreamReader(new ByteArrayInputStream(bytes), allocator, CommonsCompressionFactory.INSTANCE); - - VectorSchemaRoot root = reader.getVectorSchemaRoot(); - - while(reader.loadNextBatch()) { - readBatchesCount++; - valueVectors = new ArrayList<>(); - for (FieldVector f : root.getFieldVectors()) { - // transfer will not copy data but transfer ownership of memory - // from ArrowStreamReader to TileDBSQL. This is necessary because - // otherwise we are not able to close the reader and retain the - // data. - TransferPair t = f.getTransferPair(allocator); - t.transfer(); - valueVectors.add(t.getTo()); - } - } - reader.close(); - return new Pair<>(valueVectors, readBatchesCount); - - } catch (IOException | ApiException e) { - throw new RuntimeException(e); - } - } - - /** - * Exec an SQL query and get results in any format except arrow. - * - * @return - */ - public List> exec(){ - try { - if (sql.getResultFormat() == null ){ - return apiInstance.runSQL(workspace, namespace, sql, ResultFormat.TILEDB_JSON.toString()); - } else { - return apiInstance.runSQL(workspace, namespace, sql, sql.getResultFormat().toString()); - } - } catch (ApiException e) { - System.err.println("Exception when calling SqlApi#runSQL/runSQLBytes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - /** - * - */ - public void close(){ - try { - reader.close(); - } catch (IOException e) { - throw new RuntimeException(e); - } - } -} diff --git a/src/main/java/io/tiledb/cloud/TileDBUDF.java b/src/main/java/io/tiledb/cloud/TileDBUDF.java deleted file mode 100644 index 97ad642..0000000 --- a/src/main/java/io/tiledb/cloud/TileDBUDF.java +++ /dev/null @@ -1,529 +0,0 @@ -package io.tiledb.cloud; - -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.api.UdfApi; -import io.tiledb.cloud.rest_api.model.*; -import org.apache.arrow.vector.ValueVector; -import org.json.JSONArray; -import org.json.JSONObject; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; - -import static io.tiledb.cloud.TileDBUtils.serializeArgs; - -public class TileDBUDF { - private TileDBClient tileDBClient; - private String namespace; - private UdfApi apiInstance; - - public TileDBUDF(TileDBClient tileDBClient, String namespace) { - this.tileDBClient = tileDBClient; - this.namespace = namespace; - this.apiInstance = new UdfApi(this.tileDBClient.getApiClient()); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return The result in String format - */ - public String executeGeneric(GenericUDF genericUDF, HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - genericUDF.setArgument(serializedArgs); - try { - return apiInstance.submitGenericUDFString(namespace, genericUDF, "none"); - } 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(); - } - return null; - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return The result in String format - */ - public String executeGeneric(GenericUDF genericUDF){ - try { - return apiInstance.submitGenericUDFString(namespace, genericUDF, "none"); - } 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(); - } - return null; - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return The result as a JSON object - */ - public JSONObject executeGenericJSON(GenericUDF genericUDF, HashMap arguments){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF, arguments); - return new JSONObject(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return The result as a JSON object - */ - public JSONObject executeGenericJSON(GenericUDF genericUDF){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF); - return new JSONObject(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return The result as a JSON array object - */ - public JSONArray executeGenericJSONArray(GenericUDF genericUDF, HashMap arguments){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF, arguments); - return new JSONArray(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return The result as a JSON array object - */ - public JSONArray executeGenericJSONArray(GenericUDF genericUDF){ - genericUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeGeneric(genericUDF); - return new JSONArray(jsonString); - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @param arguments The UDF arguments - * @return A pair that consists of an ArrayList of all valueVectors and the number of batches read. - */ - public Pair, Integer> executeGenericArrow(GenericUDF genericUDF, - HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - genericUDF.setArgument(serializedArgs); - genericUDF.setResultFormat(ResultFormat.ARROW); - try { - byte[] bytes = apiInstance.submitGenericUDFBytes(namespace, genericUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes a generic-UDF. A generic-UDF is a UDF that is not using a TIleDB array. - * - * @param genericUDF The generic UDF definition - * @return A pair that consists of an ArrayList of all valueVectors and the number of batches read. - */ - public Pair, Integer> executeGenericArrow(GenericUDF genericUDF){ - genericUDF.setResultFormat(ResultFormat.ARROW); - try { - byte[] bytes = apiInstance.submitGenericUDFBytes(namespace, genericUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a String - * @apiNote is replaced by executeSingleArray(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public String executeSingleArray(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - - String[] split = breakdownFullURI(arrayURI); - - try { - return apiInstance.submitUDFString(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return null; - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a String - */ - public String executeSingleArray(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - - try { - return apiInstance.submitUDFString(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return null; - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON Object - * @apiNote Is replaced by executeSingleArrayJSON(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public JSONObject executeSingleArrayJSON(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeSingleArray(multiArrayUDF, arguments, arrayURI, xPayer); - return new JSONObject(jsonString); - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON Object - */ - public JSONObject executeSingleArrayJSON(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String result = ""; - try { - result = apiInstance.submitUDFString(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return new JSONObject(result); - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON array - * @apiNote Is replaced by executeSingleArrayJSONArray(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public JSONArray executeSingleArrayJSONArray(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeSingleArray(multiArrayUDF, arguments, arrayURI, xPayer); - return new JSONArray(jsonString); - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results as a JSON Object - */ - public JSONArray executeSingleArrayJSONArray(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String result = ""; - try { - result = apiInstance.submitUDFString(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); - } 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(); - } - return new JSONArray(result); - } - - @Deprecated - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param multiArrayUDF The array-UDF. Can reference one arrays - * @param arguments The UDF arguments - * @param arrayURI The array URI - * @param xPayer Name of organization or user who should be charged for this request - * @return The results in arrow format - * @apiNote Is replaced by executeSingleArrayArrow(GenericUDF genericUDF, UDFArrayDetails array, - * QueryRanges queryRanges, String xPayer) - */ - public Pair, Integer> executeSingleArrayArrow(MultiArrayUDF multiArrayUDF, HashMap arguments, String arrayURI, String xPayer){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - - String[] split = breakdownFullURI(arrayURI); - - try { - byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes an array-UDF. An array-UDF is a UDF applied to a TileDB array - * - * @param genericUDF The UDF to run - * @param array The Array to run the UDF on - * @param queryRanges the Query ranges - * @param xPayer Name of organization or user who should be charged for this request - * @return The results in arrow format - */ - public Pair, Integer> executeSingleArrayArrow(GenericUDF genericUDF, UDFArrayDetails array, - QueryRanges queryRanges, String xPayer){ - List arrays = new ArrayList<>(); - arrays.add(array); - - MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setArgument(genericUDF.getArgument()); - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - multiArrayUDF.setUdfInfoName(genericUDF.getUdfInfoName()); - multiArrayUDF.setRanges(queryRanges); - multiArrayUDF.setArrays(arrays); - String[] split = breakdownFullURI(array.getUri()); - - try { - byte[] bytes = apiInstance.submitUDFBytes(split[0], split[1], split[2], multiArrayUDF, xPayer, "none", ""); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results as a String - */ - public String executeMultiArray(MultiArrayUDF multiArrayUDF, HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - try { - return apiInstance.submitMultiArrayUDFString(this.namespace, multiArrayUDF, "none"); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDFString"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results as a String - */ - public String executeMultiArray(MultiArrayUDF multiArrayUDF){ - try { - return apiInstance.submitMultiArrayUDFString(this.namespace, multiArrayUDF, "none"); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDFString"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results as JSON object - */ - public JSONObject executeMultiArrayJSON(MultiArrayUDF multiArrayUDF, HashMap arguments){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF, arguments); - return new JSONObject(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results as JSON object - */ - public JSONObject executeMultiArrayJSON(MultiArrayUDF multiArrayUDF){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF); - return new JSONObject(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results as JSON Array - */ - public JSONArray executeMultiArrayJSONArray(MultiArrayUDF multiArrayUDF, HashMap arguments){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF, arguments); - return new JSONArray(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results as JSON Array - */ - public JSONArray executeMultiArrayJSONArray(MultiArrayUDF multiArrayUDF){ - multiArrayUDF.setResultFormat(ResultFormat.JSON); - String jsonString = this.executeMultiArray(multiArrayUDF); - return new JSONArray(jsonString); - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @param arguments The arguments - * @return The results in arrow format - */ - public Pair, Integer> executeMultiArrayArrow(MultiArrayUDF multiArrayUDF, HashMap arguments){ - String serializedArgs = serializeArgs(arguments); - multiArrayUDF.setArgument(serializedArgs); - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - - try { - byte[] bytes = apiInstance.submitMultiArrayUDFBytes(this.namespace, multiArrayUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Executes a multi-array-UDF. A multi- array-UDF is a UDF applied to multiple TileDB arrays - * - * @param multiArrayUDF The multiArrayUDF input object - * @return The results in arrow format - */ - public Pair, Integer> executeMultiArrayArrow(MultiArrayUDF multiArrayUDF){ - multiArrayUDF.setResultFormat(ResultFormat.ARROW); - - try { - byte[] bytes = apiInstance.submitMultiArrayUDFBytes(this.namespace, multiArrayUDF, "none"); - return TileDBUtils.createValueVectors(bytes); - } catch (IOException | ApiException e) { - e.printStackTrace(); - } - return null; - } - - /** - * Breaks down a full uri to its components - * @param arrayURI The input full uri - * @return An array of strings - */ - private String[] breakdownFullURI(String arrayURI) { - arrayURI = arrayURI.replaceAll("tiledb://", ""); //remove tiledb prefix - //split uri to get namespace and array name - String[] split = arrayURI.split("/"); - if (split.length != 2) - throw new RuntimeException( - "TileDB URI is in the wrong format. The format should be: tiledb://namespace/array_name"); - return split; - } -} From 6b44121ec715f5a7e3b2ce05367ed107d18a4693 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Fri, 16 May 2025 09:38:21 -0400 Subject: [PATCH 13/15] `Examples.java`: rm duplicated block --- src/main/java/examples/Examples.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 7615b1a..1f72375 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -38,15 +38,7 @@ public static void main(String[] args) throws ApiException { // TileDBClient tileDBClient = new TileDBClient(); tileDBClient.setDebugging(true); - - // If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need -// to pass any credentials from now on. Just create the client as follows: -// TileDBClient tileDBClient = new TileDBClient(); - tileDBClient.setDebugging(true); - // runNextflowMethods(tileDBClient); - - } public static void runNextflowMethods(TileDBClient tileDBClient) throws ApiException { From 174b2fd3b11b9d1510ebd87f42286f2d6643a5f6 Mon Sep 17 00:00:00 2001 From: dimitrisstaratzis Date: Tue, 20 May 2025 18:54:21 +0300 Subject: [PATCH 14/15] remove bad checks part1 --- .../cloud/rest_api/model/ArrayTask.java | 97 ------------------- .../cloud/rest_api/model/TaskGraphLog.java | 62 ------------ .../rest_api/model/TaskGraphLogsData.java | 27 ------ .../cloud/rest_api/model/TaskGraphs.java | 23 ----- .../io/tiledb/cloud/rest_api/model/User.java | 75 -------------- 5 files changed, 284 deletions(-) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java index df8cd92..4c7f7ff 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java @@ -967,103 +967,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTask is not found in the empty JSON string", ArrayTask.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayTask.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTask` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `array_metadata` - if (jsonObj.get("array_metadata") != null && !jsonObj.get("array_metadata").isJsonNull()) { - ArrayInfo.validateJsonElement(jsonObj.get("array_metadata")); - } - // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - DomainArray.validateJsonElement(jsonObj.get("subarray")); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonNull()) && !jsonObj.get("status_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); - } - // validate the optional field `query_type` - if (jsonObj.get("query_type") != null && !jsonObj.get("query_type").isJsonNull()) { - Querytype.validateJsonElement(jsonObj.get("query_type")); - } - if ((jsonObj.get("udf_code") != null && !jsonObj.get("udf_code").isJsonNull()) && !jsonObj.get("udf_code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `udf_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_code").toString())); - } - if ((jsonObj.get("udf_language") != null && !jsonObj.get("udf_language").isJsonNull()) && !jsonObj.get("udf_language").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `udf_language` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_language").toString())); - } - if ((jsonObj.get("sql_query") != null && !jsonObj.get("sql_query").isJsonNull()) && !jsonObj.get("sql_query").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sql_query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sql_query").toString())); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - ArrayTaskType.validateJsonElement(jsonObj.get("type")); - } - if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - ArrayActivityLog.validateJsonElement(jsonArrayactivity.get(i)); - }; - } - } - if ((jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonNull()) && !jsonObj.get("logs").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logs` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logs").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("sql_init_commands") != null && !jsonObj.get("sql_init_commands").isJsonNull() && !jsonObj.get("sql_init_commands").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sql_init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("sql_init_commands").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("sql_parameters") != null && !jsonObj.get("sql_parameters").isJsonNull() && !jsonObj.get("sql_parameters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sql_parameters` to be an array in the JSON string but got `%s`", jsonObj.get("sql_parameters").toString())); - } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); - } - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); - } - if ((jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonNull()) && !jsonObj.get("cloud_provider").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); - } - if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java index c66942e..4216b7b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java @@ -654,68 +654,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLog is not found in the empty JSON string", TaskGraphLog.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TaskGraphLog.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskGraphLogStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("execution_time") != null && !jsonObj.get("execution_time").isJsonNull()) && !jsonObj.get("execution_time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `execution_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("execution_time").toString())); - } - if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNodeMetadata.validateJsonElement(jsonArraynodes.get(i)); - }; - } - } - // validate the optional field `task_graph_type` - if (jsonObj.get("task_graph_type") != null && !jsonObj.get("task_graph_type").isJsonNull()) { - TaskGraphType.validateJsonElement(jsonObj.get("task_graph_type")); - } - if ((jsonObj.get("task_graph_id") != null && !jsonObj.get("task_graph_id").isJsonNull()) && !jsonObj.get("task_graph_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_id").toString())); - } - if ((jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonNull()) && !jsonObj.get("cloud_provider").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); - } - if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); - } - if ((jsonObj.get("root_task_graph_uuid") != null && !jsonObj.get("root_task_graph_uuid").isJsonNull()) && !jsonObj.get("root_task_graph_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `root_task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("root_task_graph_uuid").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("children_task_graph_uuids") != null && !jsonObj.get("children_task_graph_uuids").isJsonNull() && !jsonObj.get("children_task_graph_uuids").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `children_task_graph_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("children_task_graph_uuids").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java index 34d7e55..a754e69 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java @@ -178,33 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLogsData is not found in the empty JSON string", TaskGraphLogsData.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TaskGraphLogsData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphLogsData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("task_graph_logs") != null && !jsonObj.get("task_graph_logs").isJsonNull()) { - JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); - if (jsonArraytaskGraphLogs != null) { - // ensure the json data is an array - if (!jsonObj.get("task_graph_logs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); - } - - // validate the optional field `task_graph_logs` (array) - for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { - TaskGraphLog.validateJsonElement(jsonArraytaskGraphLogs.get(i)); - }; - } - } - // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java index 6910b39..7db1839 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphs is not found in the empty JSON string", TaskGraphs.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TaskGraphs.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphs` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("graphs") != null && !jsonObj.get("graphs").isJsonNull()) { - JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); - if (jsonArraygraphs != null) { - // ensure the json data is an array - if (!jsonObj.get("graphs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `graphs` to be an array in the JSON string but got `%s`", jsonObj.get("graphs").toString())); - } - - // validate the optional field `graphs` (array) - for (int i = 0; i < jsonArraygraphs.size(); i++) { - TaskGraph.validateJsonElement(jsonArraygraphs.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/User.java b/src/main/java/io/tiledb/cloud/rest_api/model/User.java index 3c333e6..a1e6893 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/User.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/User.java @@ -609,81 +609,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!User.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : User.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (!jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } - if ((jsonObj.get("company") != null && !jsonObj.get("company").isJsonNull()) && !jsonObj.get("company").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `company` to be a primitive type in the JSON string but got `%s`", jsonObj.get("company").toString())); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); - } - if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull()) { - JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); - if (jsonArrayorganizations != null) { - // ensure the json data is an array - if (!jsonObj.get("organizations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); - } - - // validate the optional field `organizations` (array) - for (int i = 0; i < jsonArrayorganizations.size(); i++) { - OrganizationUser.validateJsonElement(jsonArrayorganizations.get(i)); - }; - } - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull() && !jsonObj.get("enabled_features").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); - } - if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); - } - // validate the optional field `asset_locations` - if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonElement(jsonObj.get("asset_locations")); - } - if ((jsonObj.get("default_namespace_charged") != null && !jsonObj.get("default_namespace_charged").isJsonNull()) && !jsonObj.get("default_namespace_charged").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_namespace_charged` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_namespace_charged").toString())); - } - if ((jsonObj.get("default_region") != null && !jsonObj.get("default_region").isJsonNull()) && !jsonObj.get("default_region").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_region").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { From fc97b7bba37daf2e90e495d9e660ac8dc78b1884 Mon Sep 17 00:00:00 2001 From: st4tdb Date: Fri, 23 May 2025 13:57:10 +0300 Subject: [PATCH 15/15] remove bad checks part2 --- .../rest_api/model/AWSAccessCredentials.java | 25 ----- .../rest_api/model/ArrayActivityLog.java | 28 ------ .../model/ArrayConsolidationRequest.java | 17 ---- .../rest_api/model/ArrayFavoritesData.java | 27 ------ .../cloud/rest_api/model/ArrayInfoUpdate.java | 38 -------- .../cloud/rest_api/model/ArrayMetadata.java | 23 ----- .../rest_api/model/ArrayMetadataEntry.java | 19 ---- .../cloud/rest_api/model/ArraySample.java | 9 -- .../cloud/rest_api/model/ArraySchema.java | 47 ---------- .../cloud/rest_api/model/ArraySharing.java | 19 ---- .../cloud/rest_api/model/AssetLocations.java | 37 -------- .../cloud/rest_api/model/Attribute.java | 27 ------ .../rest_api/model/AttributeBufferSize.java | 19 ---- .../model/ChangeAssetCredentialsRequest.java | 25 ----- .../cloud/rest_api/model/Dimension.java | 31 ------ .../rest_api/model/DimensionCoordinate.java | 9 -- .../rest_api/model/DimensionTileExtent.java | 9 -- .../rest_api/model/DomainCheckResult.java | 13 --- .../cloud/rest_api/model/FileExport.java | 12 --- .../tiledb/cloud/rest_api/model/Filter.java | 22 ----- .../cloud/rest_api/model/FilterPipeline.java | 23 ----- .../cloud/rest_api/model/FragmentInfo.java | 27 ------ .../rest_api/model/FragmentInfoRequest.java | 13 --- .../cloud/rest_api/model/GroupChanges.java | 37 -------- .../rest_api/model/GroupContentActivity.java | 17 ---- .../model/GroupContentActivityAsset.java | 22 ----- .../model/GroupContentActivityResponse.java | 27 ------ .../cloud/rest_api/model/GroupContents.java | 27 ------ .../cloud/rest_api/model/GroupCreate.java | 37 -------- .../cloud/rest_api/model/GroupEntry.java | 20 ---- .../cloud/rest_api/model/GroupRegister.java | 37 -------- .../cloud/rest_api/model/GroupUpdate.java | 31 ------ .../model/InvitationArrayShareEmail.java | 28 ------ .../model/InvitationGroupShareEmail.java | 34 ------- .../InvitationOrganizationJoinEmail.java | 28 ------ .../model/LoadArraySchemaRequest.java | 13 --- .../model/LoadArraySchemaResponse.java | 13 --- .../model/LoadEnumerationsRequest.java | 17 ---- .../model/LoadEnumerationsResponse.java | 23 ----- .../cloud/rest_api/model/MLModelFavorite.java | 18 ---- .../rest_api/model/MetadataStringified.java | 23 ----- .../cloud/rest_api/model/MultiArrayUDF.java | 94 ------------------- .../cloud/rest_api/model/NotebookCopied.java | 28 ------ .../rest_api/model/NotebookFavorite.java | 18 ---- .../rest_api/model/NotebookFavoritesData.java | 27 ------ .../cloud/rest_api/model/Organization.java | 67 ------------- .../rest_api/model/PaginationMetadata.java | 9 -- .../tiledb/cloud/rest_api/model/Pricing.java | 44 --------- .../io/tiledb/cloud/rest_api/model/Query.java | 42 --------- .../cloud/rest_api/model/QueryJson.java | 17 ---- .../cloud/rest_api/model/QueryRanges.java | 17 ---- .../cloud/rest_api/model/QueryReader.java | 24 ----- .../cloud/rest_api/model/ReadState.java | 13 --- .../rest_api/model/RegisteredTaskGraph.java | 45 --------- .../model/SSODomainConfigResponse.java | 23 ----- .../cloud/rest_api/model/SSODomainSetup.java | 18 ---- .../rest_api/model/SharePaymentRequest.java | 13 --- .../rest_api/model/SingleFragmentInfo.java | 16 ---- .../cloud/rest_api/model/StorageLocation.java | 15 --- .../tiledb/cloud/rest_api/model/Subarray.java | 27 ------ .../rest_api/model/SubarrayPartitioner.java | 35 ------- .../model/SubarrayPartitionerState.java | 37 -------- .../cloud/rest_api/model/SubarrayRanges.java | 17 ---- .../cloud/rest_api/model/Subscription.java | 32 ------- .../cloud/rest_api/model/TGSQLNodeData.java | 27 ------ .../cloud/rest_api/model/TGUDFArgument.java | 12 --- .../cloud/rest_api/model/TGUDFStorage.java | 21 ----- .../cloud/rest_api/model/TaskGraph.java | 43 --------- .../rest_api/model/TaskGraphNodeMetadata.java | 44 --------- .../cloud/rest_api/model/TileDBConfig.java | 23 ----- .../model/TileDBConfigEntriesInner.java | 15 --- .../cloud/rest_api/model/UDFArrayDetails.java | 23 ----- .../tiledb/cloud/rest_api/model/UDFCopy.java | 18 ---- .../cloud/rest_api/model/UDFSharing.java | 19 ---- 74 files changed, 1894 deletions(-) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java index f09d23d..34e71ca 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java @@ -326,31 +326,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AWSAccessCredentials is not found in the empty JSON string", AWSAccessCredentials.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AWSAccessCredentials.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AWSAccessCredentials` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonNull()) && !jsonObj.get("secret_access_key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `secret_access_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret_access_key").toString())); - } - if ((jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonNull()) && !jsonObj.get("access_key_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_key_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_key_id").toString())); - } - if ((jsonObj.get("service_role_arn") != null && !jsonObj.get("service_role_arn").isJsonNull()) && !jsonObj.get("service_role_arn").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `service_role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service_role_arn").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("buckets") != null && !jsonObj.get("buckets").isJsonNull() && !jsonObj.get("buckets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `buckets` to be an array in the JSON string but got `%s`", jsonObj.get("buckets").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java index 66ad986..279f077 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java @@ -350,34 +350,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayActivityLog.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayActivityLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `action` - if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { - ActivityEventType.validateJsonElement(jsonObj.get("action")); - } - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if ((jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonNull()) && !jsonObj.get("array_task_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); - } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) && !jsonObj.get("query_ranges").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); - } - if ((jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonNull()) && !jsonObj.get("query_stats").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java index 7325882..efc479d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java @@ -177,23 +177,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayConsolidationRequest is not found in the empty JSON string", ArrayConsolidationRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayConsolidationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayConsolidationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("fragments") != null && !jsonObj.get("fragments").isJsonNull() && !jsonObj.get("fragments").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragments` to be an array in the JSON string but got `%s`", jsonObj.get("fragments").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java index 39baff5..13cd29d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java @@ -178,33 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavoritesData is not found in the empty JSON string", ArrayFavoritesData.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayFavoritesData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayFavoritesData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); - } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - ArrayInfo.validateJsonElement(jsonArrayarrays.get(i)); - }; - } - } - // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java index 64e9878..f64c74d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java @@ -433,44 +433,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfoUpdate is not found in the empty JSON string", ArrayInfoUpdate.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayInfoUpdate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayInfoUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - // validate the optional field `file_type` - if (jsonObj.get("file_type") != null && !jsonObj.get("file_type").isJsonNull()) { - FileType.validateJsonElement(jsonObj.get("file_type")); - } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java index 74cc434..8869e35 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadata is not found in the empty JSON string", ArrayMetadata.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - ArrayMetadataEntry.validateJsonElement(jsonArrayentries.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java index 9bb909d..d4f2bbc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java @@ -254,25 +254,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadataEntry is not found in the empty JSON string", ArrayMetadataEntry.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArrayMetadataEntry.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayMetadataEntry` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull() && !jsonObj.get("value").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be an array in the JSON string but got `%s`", jsonObj.get("value").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java index 30ec798..8edab91 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java @@ -140,15 +140,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySample is not found in the empty JSON string", ArraySample.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArraySample.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySample` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java index ec3224a..3b4316d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java @@ -432,53 +432,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchema is not found in the empty JSON string", ArraySchema.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArraySchema.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySchema` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ArraySchema.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - // ensure the required json array is present - if (jsonObj.get("version") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("version").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `version` to be an array in the JSON string but got `%s`", jsonObj.get("version").toString())); - } - // validate the required field `arrayType` - ArrayType.validateJsonElement(jsonObj.get("arrayType")); - // validate the required field `tileOrder` - Layout.validateJsonElement(jsonObj.get("tileOrder")); - // validate the required field `cellOrder` - Layout.validateJsonElement(jsonObj.get("cellOrder")); - // validate the required field `coordsFilterPipeline` - FilterPipeline.validateJsonElement(jsonObj.get("coordsFilterPipeline")); - // validate the required field `offsetFilterPipeline` - FilterPipeline.validateJsonElement(jsonObj.get("offsetFilterPipeline")); - // validate the required field `domain` - Domain.validateJsonElement(jsonObj.get("domain")); - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - // validate the required field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - Attribute.validateJsonElement(jsonArrayattributes.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java index cc4e2a3..b8c207c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java @@ -203,25 +203,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySharing is not found in the empty JSON string", ArraySharing.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ArraySharing.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySharing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java index 6384efa..8cdc980 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java @@ -297,43 +297,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AssetLocations is not found in the empty JSON string", AssetLocations.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AssetLocations.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AssetLocations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `arrays` - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("arrays")); - } - // validate the optional field `files` - if (jsonObj.get("files") != null && !jsonObj.get("files").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("files")); - } - // validate the optional field `groups` - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("groups")); - } - // validate the optional field `ml_models` - if (jsonObj.get("ml_models") != null && !jsonObj.get("ml_models").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("ml_models")); - } - // validate the optional field `notebooks` - if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("notebooks")); - } - // validate the optional field `task_graphs` - if (jsonObj.get("task_graphs") != null && !jsonObj.get("task_graphs").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("task_graphs")); - } - // validate the optional field `udfs` - if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { - StorageLocation.validateJsonElement(jsonObj.get("udfs")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java index 06c78bd..a3db767 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java @@ -286,33 +286,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Attribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Attribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the required field `type` - Datatype.validateJsonElement(jsonObj.get("type")); - // validate the required field `filterPipeline` - FilterPipeline.validateJsonElement(jsonObj.get("filterPipeline")); - // ensure the optional json data is an array if present - if (jsonObj.get("fillValue") != null && !jsonObj.get("fillValue").isJsonNull() && !jsonObj.get("fillValue").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fillValue` to be an array in the JSON string but got `%s`", jsonObj.get("fillValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java index 1d1601e..df3e5cd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java @@ -195,25 +195,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferSize is not found in the empty JSON string", AttributeBufferSize.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeBufferSize.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AttributeBufferSize` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AttributeBufferSize.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("attribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `attribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attribute").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java index b2340bd..b52988e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java @@ -178,31 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeAssetCredentialsRequest is not found in the empty JSON string", ChangeAssetCredentialsRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ChangeAssetCredentialsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ChangeAssetCredentialsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ChangeAssetCredentialsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("access_credentials").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials").toString())); - } - // ensure the required json array is present - if (jsonObj.get("asset_uuids") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("asset_uuids").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `asset_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("asset_uuids").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java index bce6948..777dde2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java @@ -277,37 +277,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Dimension is not found in the empty JSON string", Dimension.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Dimension.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Dimension` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Dimension.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the required field `type` - Datatype.validateJsonElement(jsonObj.get("type")); - // validate the required field `domain` - DomainArray.validateJsonElement(jsonObj.get("domain")); - // validate the optional field `tileExtent` - if (jsonObj.get("tileExtent") != null && !jsonObj.get("tileExtent").isJsonNull()) { - DimensionTileExtent.validateJsonElement(jsonObj.get("tileExtent")); - } - // validate the optional field `filterPipeline` - if (jsonObj.get("filterPipeline") != null && !jsonObj.get("filterPipeline").isJsonNull()) { - FilterPipeline.validateJsonElement(jsonObj.get("filterPipeline")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java index c473787..bd80325 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java @@ -374,15 +374,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionCoordinate is not found in the empty JSON string", DimensionCoordinate.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DimensionCoordinate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DimensionCoordinate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java index 4875f99..8c38452 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java @@ -374,15 +374,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionTileExtent is not found in the empty JSON string", DimensionTileExtent.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DimensionTileExtent.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DimensionTileExtent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java index caaeeab..8ad3205 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java @@ -168,19 +168,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in DomainCheckResult is not found in the empty JSON string", DomainCheckResult.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DomainCheckResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DomainCheckResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DomainCheckStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java index 360966b..98fe037 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java @@ -140,18 +140,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FileExport is not found in the empty JSON string", FileExport.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FileExport.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileExport` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java index e941c0f..faf701f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java @@ -169,28 +169,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Filter is not found in the empty JSON string", Filter.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Filter.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Filter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Filter.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - FilterType.validateJsonElement(jsonObj.get("type")); - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - FilterData.validateJsonElement(jsonObj.get("data")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java index 639b2a4..f61f437 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FilterPipeline is not found in the empty JSON string", FilterPipeline.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FilterPipeline.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FilterPipeline` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { - JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); - if (jsonArrayfilters != null) { - // ensure the json data is an array - if (!jsonObj.get("filters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); - } - - // validate the optional field `filters` (array) - for (int i = 0; i < jsonArrayfilters.size(); i++) { - Filter.validateJsonElement(jsonArrayfilters.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java index 87f4d84..57b5702 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java @@ -222,33 +222,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfo is not found in the empty JSON string", FragmentInfo.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FragmentInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FragmentInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("fragmentInfo") != null && !jsonObj.get("fragmentInfo").isJsonNull()) { - JsonArray jsonArrayfragmentInfo = jsonObj.getAsJsonArray("fragmentInfo"); - if (jsonArrayfragmentInfo != null) { - // ensure the json data is an array - if (!jsonObj.get("fragmentInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentInfo` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentInfo").toString())); - } - - // validate the optional field `fragmentInfo` (array) - for (int i = 0; i < jsonArrayfragmentInfo.size(); i++) { - SingleFragmentInfo.validateJsonElement(jsonArrayfragmentInfo.get(i)); - }; - } - } - // ensure the optional json data is an array if present - if (jsonObj.get("toVacuum") != null && !jsonObj.get("toVacuum").isJsonNull() && !jsonObj.get("toVacuum").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `toVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("toVacuum").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java index 630cd6d..5e1a14d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java @@ -141,19 +141,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfoRequest is not found in the empty JSON string", FragmentInfoRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FragmentInfoRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FragmentInfoRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java index 9868f1d..521e4b1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java @@ -185,43 +185,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupChanges is not found in the empty JSON string", GroupChanges.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupChanges.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupChanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("add") != null && !jsonObj.get("add").isJsonNull()) { - JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); - if (jsonArrayadd != null) { - // ensure the json data is an array - if (!jsonObj.get("add").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); - } - - // validate the optional field `add` (array) - for (int i = 0; i < jsonArrayadd.size(); i++) { - GroupMember.validateJsonElement(jsonArrayadd.get(i)); - }; - } - } - if (jsonObj.get("remove") != null && !jsonObj.get("remove").isJsonNull()) { - JsonArray jsonArrayremove = jsonObj.getAsJsonArray("remove"); - if (jsonArrayremove != null) { - // ensure the json data is an array - if (!jsonObj.get("remove").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `remove` to be an array in the JSON string but got `%s`", jsonObj.get("remove").toString())); - } - - // validate the optional field `remove` (array) - for (int i = 0; i < jsonArrayremove.size(); i++) { - GroupMember.validateJsonElement(jsonArrayremove.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java index afc814d..99b88d2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java @@ -168,23 +168,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivity is not found in the empty JSON string", GroupContentActivity.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupContentActivity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentActivity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `asset` - if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { - GroupContentActivityAsset.validateJsonElement(jsonObj.get("asset")); - } - // validate the optional field `activity_log` - if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { - ArrayActivityLog.validateJsonElement(jsonObj.get("activity_log")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java index 41ccbc4..5e5c7fa 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java @@ -219,28 +219,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityAsset is not found in the empty JSON string", GroupContentActivityAsset.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupContentActivityAsset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentActivityAsset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - // validate the optional field `asset_type` - if (jsonObj.get("asset_type") != null && !jsonObj.get("asset_type").isJsonNull()) { - AssetType.validateJsonElement(jsonObj.get("asset_type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java index c5556f4..ca9d66c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java @@ -178,33 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityResponse is not found in the empty JSON string", GroupContentActivityResponse.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupContentActivityResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentActivityResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { - JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); - if (jsonArrayactivity != null) { - // ensure the json data is an array - if (!jsonObj.get("activity").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); - } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - GroupContentActivity.validateJsonElement(jsonArrayactivity.get(i)); - }; - } - } - // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java index 20e8e37..ca914e3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java @@ -178,33 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContents is not found in the empty JSON string", GroupContents.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupContents.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContents` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - GroupEntry.validateJsonElement(jsonArrayentries.get(i)); - }; - } - } - // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java index a5fae01..c9ae5e5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java @@ -358,43 +358,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreate is not found in the empty JSON string", GroupCreate.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupCreate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupCreate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonNull()) && !jsonObj.get("parent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); - } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java index 3ebbb26..06c86e8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java @@ -193,26 +193,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupEntry is not found in the empty JSON string", GroupEntry.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupEntry.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupEntry` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("member_id") != null && !jsonObj.get("member_id").isJsonNull()) && !jsonObj.get("member_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `member_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("member_id").toString())); - } - // validate the optional field `group` - if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - GroupInfo.validateJsonElement(jsonObj.get("group")); - } - // validate the optional field `array` - if (jsonObj.get("array") != null && !jsonObj.get("array").isJsonNull()) { - ArrayInfo.validateJsonElement(jsonObj.get("array")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java index 7da7da6..333ff51 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java @@ -358,43 +358,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegister is not found in the empty JSON string", GroupRegister.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupRegister.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupRegister` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonNull()) && !jsonObj.get("parent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); - } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java index 5d110ad..819e7c3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java @@ -318,37 +318,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in GroupUpdate is not found in the empty JSON string", GroupUpdate.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GroupUpdate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java index 1b61279..315c44c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java @@ -187,34 +187,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationArrayShareEmail is not found in the empty JSON string", InvitationArrayShareEmail.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InvitationArrayShareEmail.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationArrayShareEmail` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : InvitationArrayShareEmail.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("actions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - // ensure the required json array is present - if (jsonObj.get("invitee_email") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("invitee_email").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `invitee_email` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java index 20c1d4a..aa8056e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java @@ -223,40 +223,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationGroupShareEmail is not found in the empty JSON string", InvitationGroupShareEmail.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InvitationGroupShareEmail.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationGroupShareEmail` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : InvitationGroupShareEmail.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("array_actions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("array_actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); - } - // ensure the required json array is present - if (jsonObj.get("group_actions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("group_actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); - } - // ensure the required json array is present - if (jsonObj.get("invitee_email_or_name") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("invitee_email_or_name").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `invitee_email_or_name` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email_or_name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java index 9d28069..71771b8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java @@ -214,34 +214,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationOrganizationJoinEmail is not found in the empty JSON string", InvitationOrganizationJoinEmail.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InvitationOrganizationJoinEmail.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationOrganizationJoinEmail` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : InvitationOrganizationJoinEmail.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - // validate the required field `organization_role` - OrganizationRoles.validateJsonElement(jsonObj.get("organization_role")); - // ensure the required json array is present - if (jsonObj.get("invitee_email") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("invitee_email").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `invitee_email` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java index bcc0850..34f1ef5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java @@ -141,19 +141,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaRequest is not found in the empty JSON string", LoadArraySchemaRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LoadArraySchemaRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadArraySchemaRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java index e38c36f..51c32aa 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java @@ -177,19 +177,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaResponse is not found in the empty JSON string", LoadArraySchemaResponse.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LoadArraySchemaResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadArraySchemaResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `latest_array_schema` - if (jsonObj.get("latest_array_schema") != null && !jsonObj.get("latest_array_schema").isJsonNull()) { - ArraySchema.validateJsonElement(jsonObj.get("latest_array_schema")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java index af42919..b9f9ad8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java @@ -177,23 +177,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsRequest is not found in the empty JSON string", LoadEnumerationsRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LoadEnumerationsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadEnumerationsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonElement(jsonObj.get("config")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull() && !jsonObj.get("enumerations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java index def76b0..ef40543 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsResponse is not found in the empty JSON string", LoadEnumerationsResponse.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LoadEnumerationsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LoadEnumerationsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull()) { - JsonArray jsonArrayenumerations = jsonObj.getAsJsonArray("enumerations"); - if (jsonArrayenumerations != null) { - // ensure the json data is an array - if (!jsonObj.get("enumerations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); - } - - // validate the optional field `enumerations` (array) - for (int i = 0; i < jsonArrayenumerations.size(); i++) { - Enumeration.validateJsonElement(jsonArrayenumerations.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java index 2ce3a1c..0723228 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java @@ -192,24 +192,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavorite is not found in the empty JSON string", MLModelFavorite.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MLModelFavorite.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MLModelFavorite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("mlmodel_uuid") != null && !jsonObj.get("mlmodel_uuid").isJsonNull()) && !jsonObj.get("mlmodel_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `mlmodel_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mlmodel_uuid").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java index d24b4b8..a451ab4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringified is not found in the empty JSON string", MetadataStringified.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MetadataStringified.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MetadataStringified` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - MetadataStringifiedEntry.validateJsonElement(jsonArrayentries.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java index 71cfdbf..41a0f43 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java @@ -738,100 +738,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in MultiArrayUDF is not found in the empty JSON string", MultiArrayUDF.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MultiArrayUDF.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MultiArrayUDF` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); - } - // validate the optional field `language` - if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { - UDFLanguage.validateJsonElement(jsonObj.get("language")); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); - } - if ((jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonNull()) && !jsonObj.get("image_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `image_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image_name").toString())); - } - if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); - } - if ((jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonNull()) && !jsonObj.get("resource_class").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resource_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_class").toString())); - } - if ((jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) && !jsonObj.get("exec").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `exec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec").toString())); - } - if ((jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonNull()) && !jsonObj.get("exec_raw").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `exec_raw` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec_raw").toString())); - } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonNull()) && !jsonObj.get("task_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_name").toString())); - } - if ((jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonNull()) && !jsonObj.get("argument").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `argument` to be a primitive type in the JSON string but got `%s`", jsonObj.get("argument").toString())); - } - if (jsonObj.get("arguments_json") != null && !jsonObj.get("arguments_json").isJsonNull()) { - JsonArray jsonArrayargumentsJson = jsonObj.getAsJsonArray("arguments_json"); - if (jsonArrayargumentsJson != null) { - // ensure the json data is an array - if (!jsonObj.get("arguments_json").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arguments_json` to be an array in the JSON string but got `%s`", jsonObj.get("arguments_json").toString())); - } - - // validate the optional field `arguments_json` (array) - for (int i = 0; i < jsonArrayargumentsJson.size(); i++) { - TGUDFArgument.validateJsonElement(jsonArrayargumentsJson.get(i)); - }; - } - } - // ensure the optional json data is an array if present - if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull() && !jsonObj.get("stored_param_uuids").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `stored_param_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("stored_param_uuids").toString())); - } - // validate the optional field `ranges` - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - QueryRanges.validateJsonElement(jsonObj.get("ranges")); - } - // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - UDFSubarray.validateJsonElement(jsonObj.get("subarray")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull() && !jsonObj.get("buffers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); - } - if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); - } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - UDFArrayDetails.validateJsonElement(jsonArrayarrays.get(i)); - }; - } - } - if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); - } - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java index 5f89721..036b6d5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java @@ -219,34 +219,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopied is not found in the empty JSON string", NotebookCopied.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!NotebookCopied.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookCopied` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NotebookCopied.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java index 8dcad66..3092546 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java @@ -192,24 +192,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavorite is not found in the empty JSON string", NotebookFavorite.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!NotebookFavorite.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookFavorite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("notebook_uuid") != null && !jsonObj.get("notebook_uuid").isJsonNull()) && !jsonObj.get("notebook_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `notebook_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notebook_uuid").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java index 97da8f7..5ab416d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java @@ -178,33 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavoritesData is not found in the empty JSON string", NotebookFavoritesData.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!NotebookFavoritesData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookFavoritesData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { - JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); - if (jsonArraynotebooks != null) { - // ensure the json data is an array - if (!jsonObj.get("notebooks").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notebooks` to be an array in the JSON string but got `%s`", jsonObj.get("notebooks").toString())); - } - - // validate the optional field `notebooks` (array) - for (int i = 0; i < jsonArraynotebooks.size(); i++) { - ArrayInfo.validateJsonElement(jsonArraynotebooks.get(i)); - }; - } - } - // validate the optional field `pagination_metadata` - if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java index ab12201..ef48190 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java @@ -580,73 +580,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Organization is not found in the empty JSON string", Organization.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Organization.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Organization` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Organization.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - // validate the optional field `role` - if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { - OrganizationRoles.validateJsonElement(jsonObj.get("role")); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); - } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - OrganizationUser.validateJsonElement(jsonArrayusers.get(i)); - }; - } - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull() && !jsonObj.get("enabled_features").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); - } - if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); - } - if ((jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonNull()) && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_s3_path_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path_credentials_name").toString())); - } - // validate the optional field `asset_locations` - if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonElement(jsonObj.get("asset_locations")); - } - if ((jsonObj.get("assume_role_arn") != null && !jsonObj.get("assume_role_arn").isJsonNull()) && !jsonObj.get("assume_role_arn").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `assume_role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assume_role_arn").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java index 56f9922..5188ba7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java @@ -219,15 +219,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", PaginationMetadata.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PaginationMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PaginationMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java index df69a90..f30e307 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java @@ -457,50 +457,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Pricing is not found in the empty JSON string", Pricing.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Pricing.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Pricing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonNull()) && !jsonObj.get("array_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `array_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_uuid").toString())); - } - if ((jsonObj.get("pricing_name") != null && !jsonObj.get("pricing_name").isJsonNull()) && !jsonObj.get("pricing_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `pricing_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pricing_name").toString())); - } - // validate the optional field `pricing_type` - if (jsonObj.get("pricing_type") != null && !jsonObj.get("pricing_type").isJsonNull()) { - PricingType.validateJsonElement(jsonObj.get("pricing_type")); - } - if ((jsonObj.get("product_name") != null && !jsonObj.get("product_name").isJsonNull()) && !jsonObj.get("product_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `product_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product_name").toString())); - } - if ((jsonObj.get("product_statement_descriptor") != null && !jsonObj.get("product_statement_descriptor").isJsonNull()) && !jsonObj.get("product_statement_descriptor").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `product_statement_descriptor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product_statement_descriptor").toString())); - } - // validate the optional field `product_unit_label` - if (jsonObj.get("product_unit_label") != null && !jsonObj.get("product_unit_label").isJsonNull()) { - PricingUnitLabel.validateJsonElement(jsonObj.get("product_unit_label")); - } - // validate the optional field `currency` - if (jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) { - PricingCurrency.validateJsonElement(jsonObj.get("currency")); - } - // validate the optional field `aggregate_usage` - if (jsonObj.get("aggregate_usage") != null && !jsonObj.get("aggregate_usage").isJsonNull()) { - PricingAggregateUsage.validateJsonElement(jsonObj.get("aggregate_usage")); - } - // validate the optional field `interval` - if (jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull()) { - PricingInterval.validateJsonElement(jsonObj.get("interval")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java index c74277d..18c3cd5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java @@ -371,48 +371,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Query is not found in the empty JSON string", Query.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Query.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Query` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Query.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - Querytype.validateJsonElement(jsonObj.get("type")); - // validate the required field `layout` - Layout.validateJsonElement(jsonObj.get("layout")); - // validate the required field `status` - Querystatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); - } - - JsonArray jsonArrayattributeBufferHeaders = jsonObj.getAsJsonArray("attributeBufferHeaders"); - // validate the required field `attributeBufferHeaders` (array) - for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { - AttributeBufferHeader.validateJsonElement(jsonArrayattributeBufferHeaders.get(i)); - }; - // validate the optional field `writer` - if (jsonObj.get("writer") != null && !jsonObj.get("writer").isJsonNull()) { - Writer.validateJsonElement(jsonObj.get("writer")); - } - // validate the optional field `reader` - if (jsonObj.get("reader") != null && !jsonObj.get("reader").isJsonNull()) { - QueryReader.validateJsonElement(jsonObj.get("reader")); - } - // validate the required field `array` - Array.validateJsonElement(jsonObj.get("array")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java index c36dd4d..81c8da4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java @@ -177,23 +177,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in QueryJson is not found in the empty JSON string", QueryJson.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!QueryJson.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryJson` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `query_ranges` - if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) { - QueryRanges.validateJsonElement(jsonObj.get("query_ranges")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull() && !jsonObj.get("fields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fields` to be an array in the JSON string but got `%s`", jsonObj.get("fields").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java index 4b79707..07fbea8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java @@ -178,23 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in QueryRanges is not found in the empty JSON string", QueryRanges.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!QueryRanges.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryRanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull() && !jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java index b23995e..c05d023 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java @@ -273,30 +273,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in QueryReader is not found in the empty JSON string", QueryReader.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!QueryReader.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryReader` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } - // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonElement(jsonObj.get("subarray")); - } - // validate the optional field `readState` - if (jsonObj.get("readState") != null && !jsonObj.get("readState").isJsonNull()) { - ReadState.validateJsonElement(jsonObj.get("readState")); - } - if ((jsonObj.get("varOffsetsMode") != null && !jsonObj.get("varOffsetsMode").isJsonNull()) && !jsonObj.get("varOffsetsMode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `varOffsetsMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("varOffsetsMode").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java index cb7e71d..bfa2bb7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java @@ -219,19 +219,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in ReadState is not found in the empty JSON string", ReadState.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ReadState.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ReadState` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `subarrayPartitioner` - if (jsonObj.get("subarrayPartitioner") != null && !jsonObj.get("subarrayPartitioner").isJsonNull()) { - SubarrayPartitioner.validateJsonElement(jsonObj.get("subarrayPartitioner")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java index c664f48..c842525 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java @@ -353,51 +353,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in RegisteredTaskGraph is not found in the empty JSON string", RegisteredTaskGraph.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RegisteredTaskGraph.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RegisteredTaskGraph` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonNull()) && !jsonObj.get("readme").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `readme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("readme").toString())); - } - if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); - } - if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNode.validateJsonElement(jsonArraynodes.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java index f4dc407..fffe1b8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfigResponse is not found in the empty JSON string", SSODomainConfigResponse.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SSODomainConfigResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SSODomainConfigResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("domain_configs") != null && !jsonObj.get("domain_configs").isJsonNull()) { - JsonArray jsonArraydomainConfigs = jsonObj.getAsJsonArray("domain_configs"); - if (jsonArraydomainConfigs != null) { - // ensure the json data is an array - if (!jsonObj.get("domain_configs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `domain_configs` to be an array in the JSON string but got `%s`", jsonObj.get("domain_configs").toString())); - } - - // validate the optional field `domain_configs` (array) - for (int i = 0; i < jsonArraydomainConfigs.size(); i++) { - SSODomainConfig.validateJsonElement(jsonArraydomainConfigs.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java index 1e914f5..a0f7927 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java @@ -192,24 +192,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainSetup is not found in the empty JSON string", SSODomainSetup.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SSODomainSetup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SSODomainSetup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("txt") != null && !jsonObj.get("txt").isJsonNull()) && !jsonObj.get("txt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `txt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("txt").toString())); - } - if ((jsonObj.get("cname_src") != null && !jsonObj.get("cname_src").isJsonNull()) && !jsonObj.get("cname_src").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cname_src` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname_src").toString())); - } - if ((jsonObj.get("cname_dst") != null && !jsonObj.get("cname_dst").isJsonNull()) && !jsonObj.get("cname_dst").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `cname_dst` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname_dst").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java index f7a04dc..befe0b5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java @@ -150,19 +150,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SharePaymentRequest is not found in the empty JSON string", SharePaymentRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SharePaymentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SharePaymentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !jsonObj.get("namespaces").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java index 6260d10..da84925 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java @@ -167,22 +167,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SingleFragmentInfo is not found in the empty JSON string", SingleFragmentInfo.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SingleFragmentInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SingleFragmentInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("ArraySchemaName") != null && !jsonObj.get("ArraySchemaName").isJsonNull()) && !jsonObj.get("ArraySchemaName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ArraySchemaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ArraySchemaName").toString())); - } - // validate the optional field `meta` - if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { - FragmentMetadata.validateJsonElement(jsonObj.get("meta")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java index 4d62a25..644cb06 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java @@ -178,21 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in StorageLocation is not found in the empty JSON string", StorageLocation.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StorageLocation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `StorageLocation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("credentials_name") != null && !jsonObj.get("credentials_name").isJsonNull()) && !jsonObj.get("credentials_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentials_name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java index 2df4e24..09b80a8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java @@ -178,33 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Subarray is not found in the empty JSON string", Subarray.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Subarray.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Subarray` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `layout` - if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { - Layout.validateJsonElement(jsonObj.get("layout")); - } - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); - if (jsonArrayranges != null) { - // ensure the json data is an array - if (!jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); - } - - // validate the optional field `ranges` (array) - for (int i = 0; i < jsonArrayranges.size(); i++) { - SubarrayRanges.validateJsonElement(jsonArrayranges.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java index 1dcf77f..82733ec 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java @@ -284,41 +284,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitioner is not found in the empty JSON string", SubarrayPartitioner.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SubarrayPartitioner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitioner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `subarray` - if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonElement(jsonObj.get("subarray")); - } - if (jsonObj.get("budget") != null && !jsonObj.get("budget").isJsonNull()) { - JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); - if (jsonArraybudget != null) { - // ensure the json data is an array - if (!jsonObj.get("budget").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); - } - - // validate the optional field `budget` (array) - for (int i = 0; i < jsonArraybudget.size(); i++) { - AttributeBufferSize.validateJsonElement(jsonArraybudget.get(i)); - }; - } - } - // validate the optional field `current` - if (jsonObj.get("current") != null && !jsonObj.get("current").isJsonNull()) { - SubarrayPartitionerCurrent.validateJsonElement(jsonObj.get("current")); - } - // validate the optional field `state` - if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { - SubarrayPartitionerState.validateJsonElement(jsonObj.get("state")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java index 76777ac..986df85 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java @@ -237,43 +237,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerState is not found in the empty JSON string", SubarrayPartitionerState.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SubarrayPartitionerState.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitionerState` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("singleRange") != null && !jsonObj.get("singleRange").isJsonNull()) { - JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); - if (jsonArraysingleRange != null) { - // ensure the json data is an array - if (!jsonObj.get("singleRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); - } - - // validate the optional field `singleRange` (array) - for (int i = 0; i < jsonArraysingleRange.size(); i++) { - Subarray.validateJsonElement(jsonArraysingleRange.get(i)); - }; - } - } - if (jsonObj.get("multiRange") != null && !jsonObj.get("multiRange").isJsonNull()) { - JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); - if (jsonArraymultiRange != null) { - // ensure the json data is an array - if (!jsonObj.get("multiRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); - } - - // validate the optional field `multiRange` (array) - for (int i = 0; i < jsonArraymultiRange.size(); i++) { - Subarray.validateJsonElement(jsonArraymultiRange.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java index 74090f4..3d8c761 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java @@ -203,23 +203,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayRanges is not found in the empty JSON string", SubarrayRanges.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SubarrayRanges.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayRanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - Datatype.validateJsonElement(jsonObj.get("type")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonNull() && !jsonObj.get("buffer").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `buffer` to be an array in the JSON string but got `%s`", jsonObj.get("buffer").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java index ae50ba5..930db30 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java @@ -229,38 +229,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in Subscription is not found in the empty JSON string", Subscription.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Subscription.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Subscription` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonNull()) && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `owner_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owner_namespace_uuid").toString())); - } - if ((jsonObj.get("customer_namespace_uuid") != null && !jsonObj.get("customer_namespace_uuid").isJsonNull()) && !jsonObj.get("customer_namespace_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `customer_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customer_namespace_uuid").toString())); - } - if (jsonObj.get("pricing") != null && !jsonObj.get("pricing").isJsonNull()) { - JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); - if (jsonArraypricing != null) { - // ensure the json data is an array - if (!jsonObj.get("pricing").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); - } - - // validate the optional field `pricing` (array) - for (int i = 0; i < jsonArraypricing.size(); i++) { - Pricing.validateJsonElement(jsonArraypricing.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java index 965c5b0..cf90ffc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java @@ -275,33 +275,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGSQLNodeData is not found in the empty JSON string", TGSQLNodeData.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TGSQLNodeData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGSQLNodeData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull() && !jsonObj.get("init_commands").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("init_commands").toString())); - } - if ((jsonObj.get("query") != null && !jsonObj.get("query").isJsonNull()) && !jsonObj.get("query").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull() && !jsonObj.get("parameters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `parameters` to be an array in the JSON string but got `%s`", jsonObj.get("parameters").toString())); - } - // validate the optional field `result_format` - if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { - ResultFormat.validateJsonElement(jsonObj.get("result_format")); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java index 190ef9f..668c138 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java @@ -178,18 +178,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFArgument is not found in the empty JSON string", TGUDFArgument.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TGUDFArgument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFArgument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java index 0944a66..cd59e23 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java @@ -218,27 +218,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFStorage is not found in the empty JSON string", TGUDFStorage.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TGUDFStorage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFStorage` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonNull()) && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); - } - if ((jsonObj.get("size") != null && !jsonObj.get("size").isJsonNull()) && !jsonObj.get("size").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `size` to be a primitive type in the JSON string but got `%s`", jsonObj.get("size").toString())); - } - if ((jsonObj.get("storage_class") != null && !jsonObj.get("storage_class").isJsonNull()) && !jsonObj.get("storage_class").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `storage_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storage_class").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java index 2cb0d93..9964774 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java @@ -387,49 +387,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraph is not found in the empty JSON string", TaskGraph.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TaskGraph.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraph` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); - } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNode.validateJsonElement(jsonArraynodes.get(i)); - }; - } - } - // validate the optional field `retry_strategy` - if (jsonObj.get("retry_strategy") != null && !jsonObj.get("retry_strategy").isJsonNull()) { - RetryStrategy.validateJsonElement(jsonObj.get("retry_strategy")); - } - // validate the optional field `task_graph_type` - if (jsonObj.get("task_graph_type") != null && !jsonObj.get("task_graph_type").isJsonNull()) { - TaskGraphType.validateJsonElement(jsonObj.get("task_graph_type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java index 17de8a6..d83311e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java @@ -320,50 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNodeMetadata is not found in the empty JSON string", TaskGraphNodeMetadata.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TaskGraphNodeMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphNodeMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull() && !jsonObj.get("depends_on").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `depends_on` to be an array in the JSON string but got `%s`", jsonObj.get("depends_on").toString())); - } - // validate the optional field `run_location` - if (jsonObj.get("run_location") != null && !jsonObj.get("run_location").isJsonNull()) { - TaskGraphLogRunLocation.validateJsonElement(jsonObj.get("run_location")); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonNull()) && !jsonObj.get("status_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); - } - if (jsonObj.get("executions") != null && !jsonObj.get("executions").isJsonNull()) { - JsonArray jsonArrayexecutions = jsonObj.getAsJsonArray("executions"); - if (jsonArrayexecutions != null) { - // ensure the json data is an array - if (!jsonObj.get("executions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `executions` to be an array in the JSON string but got `%s`", jsonObj.get("executions").toString())); - } - - // validate the optional field `executions` (array) - for (int i = 0; i < jsonArrayexecutions.size(); i++) { - ArrayTask.validateJsonElement(jsonArrayexecutions.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java index 057aee4..adc13fb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java @@ -151,29 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfig is not found in the empty JSON string", TileDBConfig.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TileDBConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TileDBConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { - JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); - if (jsonArrayentries != null) { - // ensure the json data is an array - if (!jsonObj.get("entries").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); - } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - TileDBConfigEntriesInner.validateJsonElement(jsonArrayentries.get(i)); - }; - } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java index 0237561..7fd5ef2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java @@ -166,21 +166,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfigEntriesInner is not found in the empty JSON string", TileDBConfigEntriesInner.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TileDBConfigEntriesInner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TileDBConfigEntriesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java index 2212f1a..216cb52 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java @@ -241,29 +241,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFArrayDetails is not found in the empty JSON string", UDFArrayDetails.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UDFArrayDetails.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFArrayDetails` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("parameter_id") != null && !jsonObj.get("parameter_id").isJsonNull()) && !jsonObj.get("parameter_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `parameter_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parameter_id").toString())); - } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); - } - // validate the optional field `ranges` - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - QueryRanges.validateJsonElement(jsonObj.get("ranges")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull() && !jsonObj.get("buffers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java index 706af77..0f52a05 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java @@ -192,24 +192,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopy is not found in the empty JSON string", UDFCopy.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UDFCopy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFCopy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java index 625c710..6a0144c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java @@ -203,25 +203,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSharing is not found in the empty JSON string", UDFSharing.openapiRequiredFields.toString())); } } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UDFSharing.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSharing` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); - } - if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory {